Closed KaeLL closed 1 week ago
Hello,
Same problem here, except it's on fedora 39 with gnome. instead on 40 with KDE.
Vs code sometimes starts, but mainly crashes with the coredump.
@KaeLL perhaps you could confirm but in my case, it seems to be user-data related, as the only option that allow starting vscode is passing
--user-data-dir /tmp/vscode
Starting code with --verbose mode prints
color: #888 Error while resolving configuration file 'vscode-userdata:/home/myuser/.config/VSCode/User/tasks.json': Unable to read file 'vscode-userdata:/home/myuser/.config/VSCode/User/tasks.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/home/myuser/.config/VSCode/User/tasks.json')", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (655)
I am not sure if this "tasks.json" is really needed, and why sometimes vscode starts without it :thinking: (And why it disappeared in the first place ^^" )
Should note that the problem seems to occurs since 1.90.1, still present in 1.90.2
I would be interested by any tests and/or providing information needed to help solve the problem :)
Thanks!
In my case, vscode crashes occasionally. Considering the logs below, seems to me it's not related to your issue.
Hello,
Same problem here, except it's on fedora 39 with gnome. instead on 40 with KDE.
Vs code sometimes starts, but mainly crashes with the coredump.
@KaeLL perhaps you could confirm but in my case, it seems to be user-data related, as the only option that allow starting vscode is passing
--user-data-dir /tmp/vscode
Starting code with --verbose mode prints
color: #888 Error while resolving configuration file 'vscode-userdata:/home/myuser/.config/VSCode/User/tasks.json': Unable to read file 'vscode-userdata:/home/myuser/.config/VSCode/User/tasks.json' (Error: Unable to resolve nonexistent file 'vscode-userdata:/home/myuser/.config/VSCode/User/tasks.json')", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (655)
I am not sure if this "tasks.json" is really needed, and why sometimes vscode starts without it 🤔 (And why it disappeared in the first place ^^" )
Should note that the problem seems to occurs since 1.90.1, still present in 1.90.2
I would be interested by any tests and/or providing information needed to help solve the problem :)
Thanks!
I am seeing the exact same behavior on both my laptop and my desktop (Fedora 40, Gnome). In the end I used this to get it working: mv ~/.config/Code ~/.config/Code.dump cp -pr ~/.config/Code.dump ~/.config/Code.dump touch ~/.config/Code/User/tasks.json
Note sure which step actually did the trick but the coredump crashes are gone (for now).
https://github.com/microsoft/vscode/issues/216856#issue-2367300489
@KaeLL, I have the same problem, also using cpe:/o:fedoraproject:fedora:40
:
kcmshell6 kcm_about-distro
Operating System: Fedora Linux 40 KDE Plasma Version: 6.1.1 KDE Frameworks Version: 6.3.0 Qt Version: 6.7.2 Kernel Version: 6.9.8-200.fc40.x86_64 (64-bit) Graphics Platform: Wayland Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor Memory: 30.5 GiB of RAM Graphics Processor: AMD Radeon RX 5700 Manufacturer: ASRock Product Name: X670E Taichi
code-insiders --disable-extensions && `
code-insiders --verbose
```log PS /home/RokeJulianLockhart> code-insiders --disable-extensions PS /home/RokeJulianLockhart> code-insiders --verbose [188552:0711/210623.634002:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. [main 2024-07-11T20:06:23.680Z] [File Watcher (node.js)] Request to start watching: /home/RokeJulianLockhart/.config/Code - Insiders/User (excludes:, includes: , filter: , correlationId: ),/home/RokeJulianLockhart/.config/Code - Insiders/User/settings.json (excludes: , includes: , filter: , correlationId: ) [main 2024-07-11T20:06:23.688Z] Starting VS Code [main 2024-07-11T20:06:23.688Z] from: /usr/share/code-insiders/resources/app [main 2024-07-11T20:06:23.688Z] args: { _: [], diff: false, merge: false, add: false, goto: false, 'new-window': false, 'reuse-window': false, wait: false, help: false, 'list-extensions': false, 'show-versions': false, 'pre-release': false, 'update-extensions': false, version: false, verbose: true, status: false, 'prof-startup': false, 'no-cached-data': false, 'prof-v8-extensions': false, 'disable-extensions': false, 'disable-lcd-text': false, 'disable-gpu': false, 'disable-chromium-sandbox': false, sandbox: false, telemetry: false, debugRenderer: false, 'enable-smoke-test-driver': false, logExtensionHostCommunication: false, 'skip-release-notes': false, 'skip-welcome': false, 'disable-telemetry': false, 'disable-updates': false, 'use-inmemory-secretstorage': false, 'disable-workspace-trust': false, 'disable-crash-reporter': false, 'crash-reporter-id': 'b31fe3fe-c34f-4598-a1f0-afcdd50662f5', 'skip-add-to-recently-opened': false, 'open-url': false, 'file-write': false, 'file-chmod': false, force: false, 'do-not-sync': false, trace: false, 'preserve-env': false, 'force-user-env': false, 'force-disable-user-env': false, 'open-devtools': false, 'disable-gpu-sandbox': false, '__enable-file-policy': false, 'enable-coi': false, 'no-proxy-server': false, 'no-sandbox': false, nolazy: false, 'force-renderer-accessibility': false, 'ignore-certificate-errors': false, 'allow-insecure-localhost': false, 'disable-dev-shm-usage': false, 'profile-temp': false, logsPath: '/home/RokeJulianLockhart/.config/Code - Insiders/logs/20240711T210623' } [main 2024-07-11T20:06:23.689Z] Resolving machine identifier... [main 2024-07-11T20:06:23.689Z] Resolved machine identifier: 4cd266a56610c1545f38fe1bac460a9fce7cfdd86281387c93092ff9e918744b [main 2024-07-11T20:06:23.689Z] Main->SharedProcess#connect [main 2024-07-11T20:06:23.691Z] StorageMainService: creating application storage [main 2024-07-11T20:06:23.692Z] update#setState idle [main 2024-07-11T20:06:23.693Z] ElectronURLListener: waiting for window to be ready to handle URLs... [main 2024-07-11T20:06:23.693Z] lifecycle (main): phase changed (value: 2) [main 2024-07-11T20:06:23.693Z] windowsManager#open [main 2024-07-11T20:06:23.693Z] windowsManager#open pathsToOpen [ { backupPath: '/home/RokeJulianLockhart/.config/Code - Insiders/Backups/1720728343702', remoteAuthority: undefined } ] [main 2024-07-11T20:06:23.693Z] windowsManager#doOpenEmpty { restore: true, remoteAuthority: undefined, filesToOpen: undefined, forceNewWindow: true } [main 2024-07-11T20:06:23.693Z] IPC Object URL: Registered new channel vscode:ab56700f-1829-4d33-8f74-79736b985709. [main 2024-07-11T20:06:23.693Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 768, y: 336, width: 1024, height: 768 } [main 2024-07-11T20:06:23.693Z] window#validateWindowState: single monitor working area { x: 0, y: 0, width: 2560, height: 1440 } [main 2024-07-11T20:06:23.693Z] window#ctor: using window state { mode: 0, x: 768, y: 336, width: 1024, height: 768 } [188585:0711/210623.737656:WARNING:sandbox_linux.cc(420)] InitializeSandbox() called with multiple threads in process gpu-process. [main 2024-07-11T20:06:23.746Z] window#load: attempt to load window (id: 1) [main 2024-07-11T20:06:23.749Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0) [main 2024-07-11T20:06:23.749Z] lifecycle (main): phase changed (value: 3) [main 2024-07-11T20:06:23.749Z] resolveShellEnv(): skipped (VSCODE_CLI is set) [188653:0711/210623.750699:WARNING:runtime_features.cc(730)] AttributionReportingCrossAppWeb cannot be enabled in this configuration. Use --enable-features=ConversionMeasurement,AttributionReportingCrossAppWeb in addition. [main 2024-07-11T20:06:23.758Z] [File Watcher (node.js)] Started watching: '/home/RokeJulianLockhart/.config/Code - Insiders/User' [main 2024-07-11T20:06:23.762Z] [File Watcher (node.js)] Started watching: '/home/RokeJulianLockhart/.config/Code - Insiders/User/settings.json' [main 2024-07-11T20:06:23.786Z] resolveShellEnv(): skipped (VSCODE_CLI is set) <--- Last few GCs ---> [1:0x71000578000] 65 ms: Mark-Compact (reduce) 1.8 (6.6) -> 1.8 (3.4) MB, pooled: 0 MB, 1.27 / 0.00 ms (average mu = 0.195, current mu = 0.014) last resort; GC in old space requested [1:0x71000578000] 66 ms: Mark-Compact (reduce) 1.8 (3.4) -> 1.8 (3.1) MB, pooled: 0 MB, 0.76 / 0.00 ms (average mu = 0.122, current mu = 0.013) last resort; GC in old space requested <--- JS stacktrace ---> [188653:0711/210623.819398:ERROR:v8_initializer.cc(811)] V8 javascript OOM (CALL_AND_RETRY_LAST). [0711/210623.826166:ERROR:directory_reader_posix.cc(43)] opendir /home/RokeJulianLockhart/.config/Code - Insiders/Crashpad/attachments/25c27804-7722-4f68-84be-3dea3130619b: No such file or directory (2) Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information. [main 2024-07-11T20:06:24.121Z] CodeWindow: renderer process gone (reason: crashed, code: 132) [main 2024-07-11T20:06:26.251Z] lifecycle (main): phase changed (value: 4) [188552:0711/210628.081955:ERROR:browser_main_loop.cc(280)] GLib-GObject: ../gobject/gsignal.c:2685: instance '0x10b400e7c3c0' has no handler with id '2814' [main 2024-07-11T20:06:28.083Z] windowsManager#open [main 2024-07-11T20:06:28.083Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ] [main 2024-07-11T20:06:28.083Z] windowsManager#doOpenEmpty { restore: false, remoteAuthority: undefined, filesToOpen: undefined, forceNewWindow: true } [main 2024-07-11T20:06:28.083Z] IPC Object URL: Registered new channel vscode:4593f61f-153c-4ccf-9d20-e8f81e79dfd3. [main 2024-07-11T20:06:28.083Z] window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 768, y: 336, width: 1024, height: 768 } [main 2024-07-11T20:06:28.083Z] window#validateWindowState: single monitor working area { x: 0, y: 0, width: 2560, height: 1440 } [main 2024-07-11T20:06:28.083Z] window#ctor: using window state { mode: 0, x: 768, y: 336, width: 1024, height: 768 } [main 2024-07-11T20:06:28.102Z] window#load: attempt to load window (id: 2) [main 2024-07-11T20:06:28.103Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, emptyToOpen: 1) [main 2024-07-11T20:06:28.106Z] IPC Object URL: Removed channel vscode:ab56700f-1829-4d33-8f74-79736b985709. [main 2024-07-11T20:06:28.106Z] Lifecycle#window.on('closed') - window ID 1 [188804:0711/210628.107087:WARNING:runtime_features.cc(730)] AttributionReportingCrossAppWeb cannot be enabled in this configuration. Use --enable-features=ConversionMeasurement,AttributionReportingCrossAppWeb in addition. [main 2024-07-11T20:06:28.125Z] resolveShellEnv(): skipped (VSCODE_CLI is set) <--- Last few GCs ---> [1:0x71000578000] 50 ms: Mark-Compact (reduce) 1.8 (6.4) -> 1.8 (3.1) MB, pooled: 0 MB, 1.59 / 0.00 ms (average mu = 0.178, current mu = 0.012) last resort; GC in old space requested [1:0x71000578000] 51 ms: Mark-Compact (reduce) 1.8 (3.1) -> 1.8 (3.1) MB, pooled: 0 MB, 0.75 / 0.00 ms (average mu = 0.120, current mu = 0.012) last resort; GC in old space requested <--- JS stacktrace ---> [188804:0711/210628.160541:ERROR:v8_initializer.cc(811)] V8 javascript OOM (CALL_AND_RETRY_LAST). [0711/210628.168653:ERROR:directory_reader_posix.cc(43)] opendir /home/RokeJulianLockhart/.config/Code - Insiders/Crashpad/attachments/3b229d54-c037-49b5-a8fd-a1ec667c6e63: No such file or directory (2) Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information. [main 2024-07-11T20:06:28.478Z] CodeWindow: renderer process gone (reason: crashed, code: 132) [main 2024-07-11T20:06:29.887Z] Lifecycle#window.on('close') - window ID 2 [main 2024-07-11T20:06:29.887Z] Lifecycle#onBeforeCloseWindow.fire() - window ID 2 [main 2024-07-11T20:06:29.890Z] IPC Object URL: Removed channel vscode:4593f61f-153c-4ccf-9d20-e8f81e79dfd3. [main 2024-07-11T20:06:29.890Z] Lifecycle#window.on('closed') - window ID 2 [main 2024-07-11T20:06:29.890Z] Lifecycle#onWillShutdown.fire() [main 2024-07-11T20:06:29.890Z] Lifecycle#onWillShutdown - begin 'instanceLockfile' [main 2024-07-11T20:06:29.891Z] storageMainService#onWillShutdown() [main 2024-07-11T20:06:29.891Z] Lifecycle#onWillShutdown - begin 'applicationStorage' [main 2024-07-11T20:06:29.891Z] Lifecycle#onWillShutdown - begin 'extHostStarter' [main 2024-07-11T20:06:29.891Z] Lifecycle#onWillShutdown - end 'extHostStarter' [main 2024-07-11T20:06:29.891Z] Lifecycle#app.on(window-all-closed) [main 2024-07-11T20:06:29.891Z] Lifecycle#app.on(before-quit) [main 2024-07-11T20:06:29.891Z] Lifecycle#onBeforeShutdown.fire() [main 2024-07-11T20:06:29.891Z] [WindowsStateHandler] onBeforeShutdown { lastActiveWindow: { workspaceIdentifier: undefined, folder: undefined, backupPath: '/home/RokeJulianLockhart/.config/Code - Insiders/Backups/1720728388232', remoteAuthority: undefined, uiState: [Object: null prototype] { mode: 0, x: 0, y: 0, width: 1024, height: 768, zoomLevel: undefined } }, lastPluginDevelopmentHostWindow: undefined, openedWindows: [] } [main 2024-07-11T20:06:29.891Z] Lifecycle#app.on(will-quit) - begin [main 2024-07-11T20:06:29.892Z] Lifecycle#onWillShutdown - end 'instanceLockfile' [main 2024-07-11T20:06:29.892Z] [File Watcher (node.js)] Request to stop watching: /home/RokeJulianLockhart/.config/Code - Insiders/User (excludes: , includes: , filter: , correlationId: ),/home/RokeJulianLockhart/.config/Code - Insiders/User/settings.json (excludes: , includes: , filter: , correlationId: ) [main 2024-07-11T20:06:29.892Z] [File Watcher (node.js)] stopping file watcher (/home/RokeJulianLockhart/.config/Code - Insiders/User (excludes: , includes: , filter: , correlationId: )) [main 2024-07-11T20:06:29.892Z] [File Watcher (node.js)] stopping file watcher (/home/RokeJulianLockhart/.config/Code - Insiders/User/settings.json (excludes: , includes: , filter: , correlationId: )) [main 2024-07-11T20:06:29.894Z] StorageMainService: closed application storage [main 2024-07-11T20:06:29.894Z] Lifecycle#onWillShutdown - end 'applicationStorage' [main 2024-07-11T20:06:29.895Z] Lifecycle#app.on(will-quit) - after fireOnWillShutdown [main 2024-07-11T20:06:29.895Z] Lifecycle#app.on(will-quit) - calling app.quit() PS /home/RokeJulianLockhart> ```
Of note is:
[main 2024-07-11T20:06:28.478Z] CodeWindow: renderer process gone (reason: crashed, code: 132)
It might have something to do with the recent changes to SELinux policy that is causing a bunch of execheap denies, but I'm not sure. I think it would make VSCode not work at all instead of crippling it, but Idk. https://discussion.fedoraproject.org/t/selinux-execheap-denials/120638
$ lsb_release -a
LSB Version: n/a
Distributor ID: Fedora
Description: Fedora Linux 40 (KDE Plasma)
Release: 40
Codename: n/a
$ code --version
1.91.1
f1e16e1e6214d7c44d078b1f0607b2388f29d729
x64
Crashing with following error
$ code --disable-extensions --verbose --log debug
[1322872:0724/085626.690016:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable.
[1322906:0724/085626.800886:WARNING:sandbox_linux.cc(418)] InitializeSandbox() called with multiple threads in process gpu-process.
<--- Last few GCs --->
[1322872:0x828002a8000] 676 ms: Mark-Compact (reduce) 5.1 (10.0) -> 5.1 (6.5) MB, pooled: 0 MB, 3.07 / 0.00 ms (average mu = 0.016, current mu = 0.011) last resort; GC in old space requested
[1322872:0x828002a8000] 679 ms: Mark-Compact (reduce) 5.1 (6.5) -> 5.1 (6.5) MB, pooled: 0 MB, 2.33 / 0.00 ms (average mu = 0.010, current mu = 0.003) last resort; GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[0724/085627.251489:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0724/085627.251547:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0724/085627.255036:ERROR:directory_reader_posix.cc(43)] opendir /home/joe/.config/Code/Crashpad/attachments/bef41337-6b90-42c4-a474-cd4e4950dfbe: No such file or directory (2
Same here.
Even with:
rm -rf ~/.vscode ~/.config/Code
code --log trace --verbose --disable-extensions
Edit: Happens too with the Flatpak version.
NODE_OPTIONS='--max-old-space-size=16384' code
doesn't help either :)
I'm also getting startup crashes, trying to change permissions on /dev/shm
(Ubuntu 24.04) won't do it.
[11092:0813/145956.916960:ERROR:platform_shared_memory_region_posix.cc(214)] Creating shared memory in /dev/shm/.org.chromium.Chromium.3Kgc9b failed: No such file or directory (2)
[11092:0813/145956.917056:ERROR:platform_shared_memory_region_posix.cc(217)] Unable to access(W_OK|X_OK) /dev/shm: No such file or directory (2)
[11092:0813/145956.917099:FATAL:platform_shared_memory_region_posix.cc(219)] This is frequently caused by incorrect permissions on /dev/shm. Try 'sudo chmod 1777 /dev/shm' to fix.
[0813/145956.924955:ERROR:directory_reader_posix.cc(43)] opendir /home/alex/.config/Code/Crashpad/attachments/5ddae144-c59e-42a5-941e-3d3bdc32c3df: No such file or directory (2)
Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.
[main 2024-08-13T12:59:57.057Z] CodeWindow: renderer process gone (reason: crashed, code: 132)
@marcodiiga yours seems to be a different problem enough for you to file a new issue.
If any of you want to debug it, gdb --args bash /usr/share/code-insiders/bin/code-insiders
^1 (then run
) appears to work. I've not yet been able to get it to crash though, so I can't test whether bt
shall give me a useful trace.
On account of the Chromium-based programs triggering execheap
blocks by SELinux issue getting fixed on Fedora, I'll close this issue.
https://github.com/microsoft/vscode/issues/216856#issuecomment-2307581237
@KaeLL, do you have a URI to where you got that information from? A RedHat Bugzilla ticket, perhaps?
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
code
on the terminal, with--disable-extensions --disable-gpu --ozone-platform=wayland
, any combination of them, or none at all.Sometimes it works, sometimes it crashes before the window shows up, and other times, with this result![Screenshot_20240621_173429](https://github.com/microsoft/vscode/assets/4423144/6c4938c6-2b3b-47f2-aa50-d0434c1b312f)
But all of them dump core. Worth noting that
--crash-reporter-directory
didn't do anything, so I only have the systemd-coredump files. If needed, give me an email so I can send the files.