code-oss在执行一些常见的操作后莫名崩溃

我的code-oss在双开两个窗口后,关闭任意窗口,打开help-about等其他行为会导致两个窗口先后崩溃

PID: 23121 (code-oss)

UID: 1000 (Lycham)

GID: 1000 (Lycham)

Signal: 11 (SEGV)

Timestamp: Mon 2026-06-22 14:26:56 CST (1min 45s ago)

Command Line: $'/usr/lib/electron42/electron /usr/lib/code/code.mjs'

Executable: /usr/lib/electron42/electron

Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-code-oss-23121.scope

Unit: user@1000.service

User Unit: app-code-oss-23121.scope

Slice: user-1000.slice

Owner UID: 1000 (Lycham)

Boot ID: [CENSORED]

Machine ID: [CENSORED]

Hostname: Lycham

Storage: /var/lib/systemd/coredump/core.code-oss.1000.48dfeacd62be400d83f82211196c3eae.23121.1782109616000000.zst (truncated)

Size on Disk: 8.8M

Message: Process 23121 (code-oss) of user 1000 dumped core.

Stack trace of thread 23121:

#0 0x0000556d8c992abb n/a (n/a + 0x0)

ELF object binary architecture: AMD x86-64

-- Notice: 2 systemd-coredump@.service units are running, output may be incomplete.

这时我所使用的插件:

OS: Arch Linux x86_64
Host: ASUS TUF Gaming F16 FX607JV_FX607JV (1.0)
Kernel: Linux 7.0.5-arch1-1-g14
Uptime: 1 hour, 37 mins
Packages: 8 (flatpak), 2329 (pacman)
Shell: zsh 5.9.1
Display (B160QAN02.7 ): 2560x1600 @ 1.49x in 16", 165 Hz [Built-in]
DE: KDE Plasma 6.7.0
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Dark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3/4]
Icons: breeze-dark [Qt], breeze-dark [GTK2/3/4]
Font: Noto Sans (10pt) [Qt], Noto Sans (10pt) [GTK2/3/4]
Cursor: breeze (24px)
Terminal: konsole 26.4.2
CPU: 13th Gen Intel(R) Core(TM) i7-13650HX (20) @ 4.90 GHz
GPU 1: NVIDIA GeForce RTX 4060 Max-Q / Mobile [Discrete]
GPU 2: Intel Raptor Lake-S UHD Graphics @ 1.55 GHz [Integrated]
Memory: 10.44 GiB / 15.24 GiB (69%)
Swap: 11.28 GiB / 32.00 GiB (35%)

补充:code-oss --enable-features=UseOzonePlatform --ozone-platform=wayland无法解决问题

补充:DRI_PRIME=0 code-oss无法解决问题

code-oss --disable-gpu无法解决问题

打算安装 VSCodium试试

之前群里有人提过类似的问题, 可以看下 https://github.com/microsoft/vscode/issues/321312

hero!

解决了诶