您尚未登录。

#1 2024-01-13 23:46:29

evangelion_air
会员
注册时间: 2024-01-13
帖子: 10

vscode最大化闪退(涉及electron在KDE wayland下的配置)

我在今天的更新之后出现了vscode最大化直接闪退的情况,只要不最大化就不会闪退。我使用的是aur中的visual studio code bin

经过我排查,这是由于我在vscode.desktop快捷方式中的Exec字段添加了  `--enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime`后缀导致的,只要删除 `--ozone-platform=wayland`, vscode最大化就不会出现闪退问题

上述修改与在`~/.config/code-flags.conf`直接添加内容效果相同。

但是,在今天的更新之前,这个快捷方式的修改是不会带来任何问题的。

我添加上述后缀内容的原因在于,在wayland环境下使用基于electron开发的程序时,fcitx5输入法框架即使在KDE系统设置中开启“在程序中显示预编辑文本”,也无法实现输入法的“单行模式”效果。根据fcitx5的官方文档,在KDE wayland情况下,对于基于electron开发的程序需要额外修改启动命令,内容就是我上方给出的后缀。ref:https://fcitx-im.org/wiki/Using_Fcitx_5 … KDE_Plasma

现在,即使只删除`--ozone-platform=wayland`避免闪退,也无法实现输入法的“单行模式”效果。

然而作出同样后缀修改的基于electron开发的程序,例如linuxqq和fluent reader,他们都没有出现类似的最大化闪退情况

今天更新的软件包如下:

[2024-01-13T19:01:55+0800] [ALPM] upgraded mesa (1:23.3.2-2 -> 1:23.3.3-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded attica5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded ki18n5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded karchive5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kconfig5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kcoreaddons5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kfilemetadata5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kidletime5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded solid5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kwidgetsaddons5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kjobwidgets5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kdbusaddons5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kwindowsystem5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kcrash5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kglobalaccel5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kauth5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kcodecs5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kguiaddons5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kconfigwidgets5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:55+0800] [ALPM] upgraded kiconthemes5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kitemviews5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kxmlgui5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kbookmarks5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded knotifications5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kservice5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kwallet5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kcompletion5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded sonnet5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded ktextwidgets5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kded5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded kio5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded baloo5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:56+0800] [ALPM] upgraded bluez-qt5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded breeze-icons (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kpackage5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded syndication5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded knewstuff5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded frameworkintegration5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded iwd (2.12-1 -> 2.13-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kactivities5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kactivities-stats5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kdeclarative5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kcmutils5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kunitconversion5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:58+0800] [ALPM] upgraded kitemmodels5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kemoticons (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kparts5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kdelibs4support (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kpty5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kdesu5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kdnssd5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kholidays5 (1:5.113.0-1 -> 1:5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kirigami2 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded knotifyconfig5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kpeople5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kquickcharts5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded kwayland5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded plasma-framework5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded threadweaver5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded krunner5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded syntax-highlighting5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded ktexteditor5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:01:59+0800] [ALPM] upgraded lib32-mesa (1:23.3.2-2 -> 1:23.3.3-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded lib32-vulkan-intel (1:23.3.2-2 -> 1:23.3.3-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded libpipewire (1:1.0.0-2 -> 1:1.0.1-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded modemmanager-qt5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded networkmanager-qt5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded pipewire (1:1.0.0-2 -> 1:1.0.1-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded prison5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded purpose5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded qqc2-desktop-style5 (5.113.0-1 -> 5.114.0-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded thunderbird-dark-reader (4.9.74-1 -> 4.9.75-1)
[2024-01-13T19:02:00+0800] [ALPM] upgraded vulkan-intel (1:23.3.2-2 -> 1:23.3.3-1)
[2024-01-13T19:03:30+0800] [ALPM] upgraded linuxqq (2:3.2.5_20670-1 -> 2:3.2.5_20811-1)
[2024-01-13T22:35:54+0800] [ALPM] upgraded libmaxminddb (1.8.0-1 -> 1.9.1-1)

最近编辑记录 evangelion_air (2024-01-14 00:04:59)

离线

#2 2024-01-14 14:01:30

evangelion_air
会员
注册时间: 2024-01-13
帖子: 10

Re: vscode最大化闪退(涉及electron在KDE wayland下的配置)

我在vscode仓库提了相关issue,有回复称这是已知的问题,可以追溯到去年,与electron版本有关,在vscode insider中已经解决,之后将推送给正式版。

不过奇怪的是我并没有在昨天更新前出现该问题。

https://github.com/microsoft/vscode/issues/202416
https://github.com/microsoft/vscode/issues/184124

离线

页脚