Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code crashes at startup with 1.86 version on Ubuntu 22.04 #204159

Open
Tracked by #214525
delacko opened this issue Feb 2, 2024 · 56 comments
Open
Tracked by #214525

VS Code crashes at startup with 1.86 version on Ubuntu 22.04 #204159

delacko opened this issue Feb 2, 2024 · 56 comments
Assignees
Labels
chromium Issues and items related to Chromium freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues gpu Issues concerning GPU related items mitigated Issue has workaround in place upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@delacko
Copy link

delacko commented Feb 2, 2024

Type: Bug

Logs says it is because of GPU crash, disable gpu with --disable-gpu doesn't help.
After downgrade to 1.85.1 it works fine. Report was made on 1.85.1 version as 1.86.0 is crashing immediately.
OS: Ubuntu 22.04

[main 2024-02-02T16:06:20.571Z] IPC Object URL: Registered new channel vscode:981b32c9-da60-4c41-a4f3-b421ee9b1233.
[main 2024-02-02T16:06:20.571Z] window#validateWindowState: validating window state on 3 display(s) { mode: 0, x: 838, y: 52, width: 855, height: 445 }
[main 2024-02-02T16:06:20.571Z] window#validateWindowState: multi-monitor working area { x: 0, y: 28, width: 1684, height: 919 }
[main 2024-02-02T16:06:20.571Z] window#ctor: using window state { mode: 0, x: 838, y: 52, width: 855, height: 445 }
[main 2024-02-02T16:06:20.617Z] window#load: attempt to load window (id: 2)
[main 2024-02-02T16:06:20.621Z] StorageMainService: creating workspace storage (b13d82f963dfe78b145cc7ed7aa145cc)
[main 2024-02-02T16:06:20.622Z] windowsManager#open used window count 2 (workspacesToOpen: 0, foldersToOpen: 3, emptyToRestore: 0, emptyToOpen: 0)
[main 2024-02-02T16:06:20.623Z] lifecycle (main): phase changed (value: 3)
[main 2024-02-02T16:06:20.623Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2024-02-02T16:06:20.624Z] update#setState idle
[1990896:0202/170620.671564:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=5
[1990896:0202/170620.671585:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 5 time(s)
[1990896:0202/170620.708963:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=5
[1990896:0202/170620.708974:WARNING:gpu_process_host.cc(1364)] The GPU process has crashed 6 time(s)
[1990896:0202/170620.708980:FATAL:gpu_data_manager_impl_private.cc(448)] GPU process isn't usable. Goodbye.
[0202/170620.714640:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0202/170620.714726:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0202/170620.714765:ERROR:elf_dynamic_array_reader.h(64)] tag not found

VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:47:11.635Z)
OS version: Linux x64 6.5.0-14-generic
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 3348)
GPU Status 2d_canvas: disabled_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: disabled_off
webgl2: disabled_off
webgpu: disabled_off
Load (avg) 6, 6, 5
Memory (System) 23.19GB (15.02GB free)
Process Argv --crash-reporter-id 40aad8c6-6c3f-4033-a1c9-c63f3eba2f97
Screen Reader no
VM 0%
DESKTOP_SESSION plasma
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP plasma
XDG_SESSION_TYPE x11
Extensions (124)
Extension Author (truncated) Version
10minions 10C 0.9.12
android-emulator-launcher 343 0.9.0
vscode-openapi 42C 4.21.1
go-outliner 766 0.1.21
android-dev-ext ade 1.4.0
gptbrushes Akz 1.2.0
project-manager ale 12.7.0
cloudflare-devtools Ale 1.0.4
androidify ara 0.0.1
swagger-viewer Arj 3.1.2
codegenie ast 0.7.4
atlascode atl 3.0.9
vscode-django bat 1.15.0
Bito Bit 1.2.7
freezed bla 0.9.6
chatgpt-reborn chr 3.20.2
gitignore cod 0.9.0
wrangler cod 0.0.1
Riverpod-Snippets-Bit com 0.0.2
custom-window-zoom cra 1.1.4
doxdocgen csc 1.4.0
dbclient-jdbc cwe 1.3.4
vscode-es-client2 cwe 7.0.4
dscodegpt Dan 3.1.7
dart-code Dar 3.82.0
flutter Dar 3.82.0
jenkins-runner dav 1.3.0
vscode-eslint dba 2.4.4
git-extension-pack don 0.1.3
githistory don 0.6.20
python-environment-manager don 1.2.4
python-extension-pack don 1.7.0
xml Dot 2.5.1
swagger-generator dwa 0.1.1
gitlens eam 14.7.0
vscode-kibana eri 0.0.1
prettier-vscode esb 10.1.0
git-project-manager fel 1.8.2
android-system-tools fli 0.0.2
kotlin fwc 0.2.34
build-runner gae 0.8.0
copilot Git 1.156.0
copilot-chat Git 0.11.1
go gol 0.40.3
githd hui 2.3.3
jenkins-pipeline-linter-connector jan 1.2.0
better-cpp-syntax jef 1.17.2
vscode-go-template jin 0.2.1
cmake-language-support-vscode jos 0.0.9
compare-helper kee 1.1.1
vsc-python-indent Kev 1.18.0
vscode-codemetrics kis 1.26.1
git-tree-compare let 1.16.0
flutter-tree mar 1.0.0
groovy Mel 1.0.0
git-graph mhu 1.30.0
vscode-clang mit 0.2.4
compare-folders mos 0.24.2
vscode-docker ms- 1.28.0
csharp ms- 2.15.30
vscode-dotnet-runtime ms- 2.0.1
debugpy ms- 2024.0.0
isort ms- 2023.10.1
python ms- 2024.0.0
vscode-pylance ms- 2023.12.1
jupyter ms- 2023.11.1100101639
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.17
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-containers ms- 0.327.0
remote-ssh ms- 0.107.1
remote-ssh-edit ms- 0.86.0
remote-wsl ms- 0.81.9
cmake-tools ms- 1.16.32
cpptools ms- 1.18.5
cpptools-extension-pack ms- 1.3.0
makefile-tools ms- 0.8.22
remote-explorer ms- 0.4.1
go-doc msy 1.0.1
gradle-language nac 0.2.3
awesome-flutter-snippets Nas 3.0.3
vscode-groovy-lint Nic 3.2.0
autodocstring njp 0.6.1
jenkins p1c 0.1.0
riverpodsnippets Pyt 0.0.3
bitbucket-pull-requests Ram 0.3.10
java red 1.27.0
vscode-commons red 0.0.6
vscode-xml red 0.26.1
vscode-yaml red 1.14.0
delve Rel 1.0.6
elastic ria 0.13.3
flutter-riverpod-snippets rob 1.2.2
vs-code-prettier-eslint rve 5.1.0
code-complexity-report-generator sel 1.1.7
git-merger sha 0.4.1
markdown-preview-enhanced shd 0.8.11
svelte-vscode sve 108.2.1
swagger-tools The 0.5.0
ansible-autocomplete tim 0.0.2
solidity-metrics tin 0.0.23
designeditor tiz 1.1.0
taurine tiz 1.1.0
tizenweb tiz 1.1.0
wappl tiz 1.1.2
cmake twx 0.0.17
errorlens use 3.16.0
intellicode-api-usage-examples Vis 0.2.8
vscodeintellicode Vis 1.2.30
vscode-gradle vsc 3.13.5
vscode-java-debug vsc 0.56.0
vscode-java-dependency vsc 0.23.4
vscode-java-pack vsc 0.25.2023121402
vscode-java-test vsc 0.40.1
vscode-maven vsc 0.44.0
vim vsc 1.27.2
gitblame wad 10.8.0
webostv web 1.2.1
jinja who 0.0.8
swagger wyv 0.0.5
markdown-all-in-one yzh 3.6.2
vscode-ansible zbr 0.4.6
vscode-open-in-github ziy 1.3.6

(8 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30951796
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019bcf:30953938
3ef8e399:30949928

@Robbe1612
Copy link

I am also experiencing this issue

@deepak1556
Copy link
Contributor

Please attach the crash logs following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report

@deepak1556
Copy link
Contributor

Does it also crash when disabling the sandbox, code --disable-chromium-sandbox ?

@deepak1556 deepak1556 added the info-needed Issue requires more information from poster label Feb 2, 2024
@Robbe1612
Copy link

Robbe1612 commented Feb 2, 2024

It does also crash when using code --disable-chromium-sandbox. My output does look slightly different (after installing with snap instead of apt, because when i installed with apt i also got GPU process exited unexpectedly ):
code --verbose
[0202/185449.300654:ERROR:file_io_posix.cc(152)] open /home/robbe/.config/Code/Crashpad/pending/a2fe88a0-8a5e-4518-ae01-9248d488c909.lock: File exists (17)
[0202/185449.300954:ERROR:file_io_posix.cc(152)] open /home/robbe/.config/Code/Crashpad/pending/b4d0d435-71f2-4158-950b-3ff9652383a5.lock: File exists (17)
[0202/185449.302085:ERROR:directory_reader_posix.cc(42)] opendir /home/robbe/.config/Code/Crashpad/attachments/cf3f93e4-2c96-46c7-aded-e375a3da7301: No such file or directory (2)
[13191:0202/185449.455493:WARNING:bluez_dbus_manager.cc(247)] Floss manager not present, cannot set Floss enable/disable.
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
[13221:0202/185449.545173:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13221:0202/185449.545242:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13221:0202/185449.545252:ERROR:gl_display.cc(795)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[13221:0202/185449.546385:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13221:0202/185449.546403:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13221:0202/185449.546412:ERROR:gl_display.cc(795)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[13221:0202/185449.546420:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[13221:0202/185449.546428:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[13221:0202/185449.568136:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13221:0202/185449.568170:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13221:0202/185449.568190:ERROR:gl_display.cc(795)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[13221:0202/185449.569416:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13221:0202/185449.569434:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13221:0202/185449.569446:ERROR:gl_display.cc(795)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[13221:0202/185449.569459:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[13221:0202/185449.569472:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[13221:0202/185449.571381:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[main 2024-02-02T17:54:49.766Z] [File Watcher (node.js)] Request to start watching: /home/robbe/.config/Code/User (excludes: , includes: , correlationId: ),/home/robbe/.config/Code/User/settings.json (excludes: , includes: , correlationId: )
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
[13256:0202/185449.798850:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13256:0202/185449.798927:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13256:0202/185449.798937:ERROR:gl_display.cc(795)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[13256:0202/185449.800185:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13256:0202/185449.800207:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13256:0202/185449.800216:ERROR:gl_display.cc(795)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[13256:0202/185449.800225:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[13256:0202/185449.800234:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[main 2024-02-02T17:54:49.804Z] Starting VS Code
[main 2024-02-02T17:54:49.804Z] from: /snap/code/150/usr/share/code/resources/app
[main 2024-02-02T17:54:49.805Z] 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-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': '83c17b02-ab04-4ea6-a5e8-df0b3ffbebcd',
'skip-add-to-recently-opened': false,
'unity-launch': 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/robbe/.config/Code/logs/20240202T185449'
}
[main 2024-02-02T17:54:49.805Z] Resolving machine identifier...
[main 2024-02-02T17:54:49.806Z] Resolved machine identifier: 019f2735ec081d26def35c5da14b879459931ba323faa0546ab0d6444d034249
[main 2024-02-02T17:54:49.807Z] Main->SharedProcess#connect
[main 2024-02-02T17:54:49.815Z] [File Watcher (node.js)] Started watching: '/home/robbe/.config/Code/User'
[main 2024-02-02T17:54:49.817Z] [File Watcher (node.js)] Error: ENOENT: no such file or directory, stat '/home/robbe/.config/Code/User/settings.json'
[main 2024-02-02T17:54:49.819Z] StorageMainService: creating application storage
[13256:0202/185449.823639:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13256:0202/185449.823672:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13256:0202/185449.823680:ERROR:gl_display.cc(795)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[main 2024-02-02T17:54:49.824Z] update#setState idle
[13256:0202/185449.824919:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13256:0202/185449.824942:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13256:0202/185449.824950:ERROR:gl_display.cc(795)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[13256:0202/185449.824959:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[13256:0202/185449.824967:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[13256:0202/185449.826480:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[main 2024-02-02T17:54:49.830Z] ElectronURLListener: waiting for window to be ready to handle URLs...
[main 2024-02-02T17:54:49.830Z] lifecycle (main): phase changed (value: 2)
[main 2024-02-02T17:54:49.832Z] windowsManager#open
[main 2024-02-02T17:54:49.833Z] windowsManager#open pathsToOpen [
{
backupPath: '/home/robbe/.config/Code/Backups/1706892469731',
remoteAuthority: undefined
}
]
[main 2024-02-02T17:54:49.834Z] windowsManager#doOpenEmpty {
restore: true,
remoteAuthority: undefined,
filesToOpen: undefined,
forceNewWindow: true
}
[main 2024-02-02T17:54:49.837Z] IPC Object URL: Registered new channel vscode:2da478f6-8a3d-48e6-8c09-e523c66000d3.
[main 2024-02-02T17:54:49.838Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 256, y: 77, width: 1024, height: 769 }
[main 2024-02-02T17:54:49.838Z] window#validateWindowState: 1 monitor working area { x: 0, y: 27, width: 1536, height: 837 }
[main 2024-02-02T17:54:49.838Z] window#ctor: using window state { mode: 1, x: 256, y: 77, width: 1024, height: 769 }
[main 2024-02-02T17:54:49.925Z] window#load: attempt to load window (id: 1)
[main 2024-02-02T17:54:49.937Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
[main 2024-02-02T17:54:49.938Z] lifecycle (main): phase changed (value: 3)
[main 2024-02-02T17:54:49.938Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
[13276:0202/185450.061293:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13276:0202/185450.061371:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13276:0202/185450.061382:ERROR:gl_display.cc(795)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[13276:0202/185450.062574:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13276:0202/185450.062591:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13276:0202/185450.062600:ERROR:gl_display.cc(795)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[13276:0202/185450.062625:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[13276:0202/185450.062638:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[13276:0202/185450.083978:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13276:0202/185450.084013:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13276:0202/185450.084021:ERROR:gl_display.cc(795)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[13276:0202/185450.085164:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[13276:0202/185450.085182:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.
[13276:0202/185450.085189:ERROR:gl_display.cc(795)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[13276:0202/185450.085198:ERROR:gl_display.cc(829)] Initialization of all EGL display types failed.
[13276:0202/185450.085206:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[13276:0202/185450.087338:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[0202/185450.196871:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196899:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196913:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196932:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196942:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196961:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196974:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196985:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.196996:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197006:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197015:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197026:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197038:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197048:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197059:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197070:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197086:ERROR:process_memory_range.cc(75)] read out of range
[0202/185450.197097:ERROR:process_memory_range.cc(75)] read out of range

dumpfile.zip
There were multiple dumpfiles in that directory though
1.85 works fine

@letsgitcracking
Copy link

Same issue as OP

  • Version 1.86 doesn't work

  • Version 1.85.2 is fine

Still crashes with: code --disable-gpu and code --disable-chromium-sandbox

@delacko
Copy link
Author

delacko commented Feb 2, 2024

For me it also crashes with: --disable-gpu and code --disable-chromium-sandbox

Attached you will find ziped files produced with --crash-reporter-directory flag.
crash_1.86.zip

@tregua87
Copy link

tregua87 commented Feb 3, 2024

I experience the same problem. Here is the crash from --crash-reporter-director.

code-1.86.0-ubuntu22.04.03.zip

@deepak1556 deepak1556 added freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues and removed info-needed Issue requires more information from poster labels Feb 5, 2024
@gabriellaguerre
Copy link

I have the same issue.

@Sneppys
Copy link

Sneppys commented Feb 6, 2024

I've slowly been having this issue over the last few months with Electron programs as they update, I believe it's likely due to a recent Electron change?
I've been able to mitigate the issue by launching with the --disable-accelerated-video-decode flag in all cases.

@deepak1556
Copy link
Contributor

Thanks for the crash logs, it does indicate an OOM crash in the accelerated video decode code path. Please try the workaround mentioned by @Sneppys

Operating system: Linux
                  6.5.0 -15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64
CPU: amd64
     family 6 model 142 stepping 9
     4 CPUs

GPU: UNKNOWN

Crash reason:  SIGTRAP
Crash address: 0x0
Process uptime: 0 seconds

Thread 0 (crashed)
 0  code!partition_alloc::internal::OnNoMemoryInternal(unsigned long) [oom.cc : 58 + 0x1]
    rax = 0x00007ffd358b9f68   rdx = 0x0000000000000002
    rcx = 0xffffffffffffffea   rbx = 0xffffffffffffffea
    rsi = 0x000055692223dfc0   rdi = 0x00007ffd358b9f68
    rbp = 0x00007ffd358b9f70   rsp = 0x00007ffd358b9f60
     r8 = 0x0000000000004000    r9 = 0x00007ffd358ba0cf
    r10 = 0x0000000000000001   r11 = 0x0000000000000246
    r12 = 0x0000000000004000   r13 = 0xffffffffffffffea
    r14 = 0x00007ffd358ba0cf   r15 = 0x000020e0002a9200
    rip = 0x000055691a9f36ff
    Found by: given as instruction pointer in context
 1  code!partition_alloc::TerminateBecauseOutOfMemory(unsigned long) [oom.cc : 65 + 0x5]
    rbx = 0xffffffffffffffea   rbp = 0x00007ffd358b9f80
    rsp = 0x00007ffd358b9f80   r12 = 0x0000000000004000
    r13 = 0xffffffffffffffea   r14 = 0x00007ffd358ba0cf
    r15 = 0x000020e0002a9200   rip = 0x000055691a9f3719
    Found by: call frame info
 2  code!partition_alloc::internal::OnNoMemory(unsigned long) [oom.cc : 75 + 0x8]
    rbx = 0xffffffffffffffea   rbp = 0x00007ffd358b9fa0
    rsp = 0x00007ffd358b9f90   r12 = 0x0000000000004000
    r13 = 0xffffffffffffffea   r14 = 0x00007ffd358ba0cf
    r15 = 0x000020e0002a9200   rip = 0x000055691a9f3736
    Found by: call frame info
 3  code!partition_alloc::internal::PartitionExcessiveAllocationSize(unsigned long) [partition_oom.cc : 19 + 0x8]
    rbx = 0xffffffffffffffea   rbp = 0x00007ffd358b9fc0
    rsp = 0x00007ffd358b9fb0   r12 = 0x0000000000004000
    r13 = 0xffffffffffffffea   r14 = 0x00007ffd358ba0cf
    r15 = 0x000020e0002a9200   rip = 0x000055691a9f7660
    Found by: call frame info
 4  code!partition_alloc::internal::PartitionBucket::SlowPathAlloc(partition_alloc::PartitionRoot*, unsigned int, unsigned long, unsigned long, bool*) [partition_bucket.cc : 228 + 0x8]
    rbx = 0x000055692223f3c8   rbp = 0x00007ffd358ba0a0
    rsp = 0x00007ffd358b9fd0   r12 = 0x0000000000004000
    r13 = 0xffffffffffffffea   r14 = 0x00007ffd358ba0cf
    r15 = 0x000020e0002a9200   rip = 0x000055691a9f6174
    Found by: call frame info
 5  code!allocator_shim::internal::PartitionCalloc(allocator_shim::AllocatorDispatch const*, unsigned long, unsigned long, void*) [partition_root.h : 1209 + 0xd]
    rbx = 0x0000000000000280   rbp = 0x00007ffd358ba110
    rsp = 0x00007ffd358ba0b0   r12 = 0x000055692223f3c8
    r13 = 0xffffffffffffffea   r14 = 0x000055692223dfc0
    r15 = 0x000020e0002a9200   rip = 0x000055691aa0be9b
    Found by: call frame info
 6  code!calloc [allocator_shim.cc : 239 + 0xf]
    rbx = 0xffffffffffffffea   rbp = 0x00007ffd358ba140
    rsp = 0x00007ffd358ba120   r12 = 0x00007f646825f600
    r13 = 0x0000000000000013   r14 = 0x0000000000000001
    r15 = 0x0000556921f92650   rip = 0x000055691aa0a8e6
    Found by: call frame info
 7  iHD_drv_video.so + 0x110478
    rbx = 0x00007ffd358ba1c0   rbp = 0x00007ffd358ba240
    rsp = 0x00007ffd358ba150   r12 = 0x00007f646825f600
    r13 = 0x0000000000000013   r14 = 0x000020e000229000
    r15 = 0x00007ffd358ba190   rip = 0x00007f6465b10478
    Found by: call frame info
 8  iHD_drv_video.so + 0x37e1da
    rbp = 0x00007ffd358c87d0   rsp = 0x00007ffd358ba250
    rip = 0x00007f6465d7e1da
    Found by: previous frame's frame pointer
 9  iHD_drv_video.so + 0x37ec6b
    rbp = 0x00007ffd358c8800   rsp = 0x00007ffd358c87e0
    rip = 0x00007f6465d7ec6b
    Found by: previous frame's frame pointer
10  libva.so.2 + 0x3fec
    rsp = 0x00007ffd358c8810   rip = 0x00007f6469eeafec
    Found by: stack scanning
11  iHD_drv_video.so + 0x37ec20
    rsp = 0x00007ffd358c8818   rip = 0x00007f6465d7ec20
    Found by: stack scanning

@deepak1556 deepak1556 added upstream Issue identified as 'upstream' component related (exists outside of VS Code) gpu Issues concerning GPU related items chromium Issues and items related to Chromium labels Feb 7, 2024
@deepak1556
Copy link
Contributor

Looks like it is tracked in https://issues.chromium.org/issues/40285787

@deepak1556 deepak1556 added the upstream-issue-linked This is an upstream issue that has been reported upstream label Feb 7, 2024
@delacko
Copy link
Author

delacko commented Feb 7, 2024

I can confirm that this workaround works from command line (--disable-accelerated-video-decode) with additional warning:
Warning: 'disable-accelerated-video-decode' is not in the list of known options, but still passed to Electron/Chromium.

However it does not work if put in vscode config file argv.json.

@deepak1556
Copy link
Contributor

Thanks for confirming!

However it does not work if put in vscode config file argv.json.

We don't support all chromium flags in this file, only a subset defined here

@deepak1556 deepak1556 added the mitigated Issue has workaround in place label Feb 7, 2024
@eduardomiranda
Copy link

Thank you @Sneppys.

I've been trying to find a solution to this problem for many months and after trying several things, what worked here for me was the parameter you indicated --disable-accelerated-video-decode. It solved the problem in both Google Chrome and Visual Studio Code, which I imagine uses Chrome for parts of the solution.

@AyrtonFabrizioAlvarez
Copy link

i try this

code --disable-accelerated-video-decode

and then i get this output

Warning: 'disable-accelerated-video-decode' is not in the list of known options, but still passed to Electron/Chromium.

@magick93
Copy link

magick93 commented Jun 6, 2024

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

@maartens1991
Copy link

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

Can confirm that this works also on Ubuntu 22.04.

@thomascallahan
Copy link

Funny @magick93 you posted that 38 minutes ago as of the time I'm writing this, and I spent the last hour or so trying to fix this. Good timing!

@nnmer
Copy link

nnmer commented Jun 6, 2024

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

1. I uninstalled the snap version

2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable

3. then run `sudo dpkg -i code_1.89.1-1715060508_amd64.deb` and it is now working again.

just now tried to go with https://update.code.visualstudio.com/1.90.0/linux-deb-x64/stable - worked for me

@mguetta1
Copy link

mguetta1 commented Jun 6, 2024

Just tested that sudo snap remove code sudo snap install --revision 159 --classic code works on Ubuntu 22.04. I am not sure why this is happening since I do not recall updating it yesterday, when it was working. The errors that I was constantly getting were: ERROR:process_memory_range.cc(75)] read out of range

Same for me. Works on Fedora release 36
Thanks a lot!

@SoftCysec
Copy link

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

1. I uninstalled the snap version

2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable

3. then run `sudo dpkg -i code_1.89.1-1715060508_amd64.deb` and it is now working again.

just now tried to go with https://update.code.visualstudio.com/1.90.0/linux-deb-x64/stable - worked for me

Thank this worked for my Ubuntu 23.10

@brrbaral
Copy link

brrbaral commented Jun 6, 2024

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

Thank you. This worked for me.

@nazarcatkiller
Copy link

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

Can confirm that this works also on Ubuntu 20.04.

@deepak1556
Copy link
Contributor

Hi all, seems like there is a bit of confusion here. The crash on startup using 1.90 snap package is tracked in #212494. This issue is unrelated to it.

@paulius-bulotas
Copy link

Hi all, seems like there is a bit of confusion here. The crash on startup using 1.90 snap package is tracked in #212494. This issue is unrelated to it.

Hi, I'm experiencing the same issue.
Does anyone know how to fix it?

@NicolasCaronPro
Copy link

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

1. I uninstalled the snap version

2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable

3. then run `sudo dpkg -i code_1.89.1-1715060508_amd64.deb` and it is now working again.

just now tried to go with https://update.code.visualstudio.com/1.90.0/linux-deb-x64/stable - worked for me

Thank this worked for my Ubuntu 23.10

This worked for me

@mherman22
Copy link

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

Can confirm that this works also on Ubuntu 20.04.

this solution has worked for me and i agree it seems there is a breaking change that has been introduced

@FelixDombek
Copy link

FelixDombek commented Jun 6, 2024

You guys don't need to downgrade to 1.89. The latest 1.90.0 deb version from https://code.visualstudio.com/download works just fine. It's just the snap version that is broken. (And the correct ticket for that is #212494 as mentioned above.)

@domia0
Copy link

domia0 commented Jun 6, 2024

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

Can confirm that this works also on Ubuntu 22.04.

Perfect, this works also for me. Thank you very much!

@rajdip-b
Copy link

rajdip-b commented Jun 6, 2024

Installing the 1.90.0 deb version works! Thank you guys!

@valmirnjr
Copy link

Hi, using the solution pointed in #212494 worked for me, no need to reinstall / downgrade:
code --in-process-gpu

@mbolano42
Copy link

A fix to revert snap version from @Tasemo from #214398 Same problem here after starting the working day. sudo snap revert code --revision 159

user@username:~$ snap list code --all Name Version Rev Tracking Publisher Notes code dc96b83 159 latest/stable vscode✓ disabled,classic code 89de5a8 160 latest/stable vscode✓ classic

user@username:~$ code --version 1.90.0 89de5a8 x64

user@username:~$ sudo snap revert code --revision 159 Enter PW code reverted to dc96b83

Now its working again!

Thanks a lot for the solution!!!

@devkult
Copy link

devkult commented Jun 6, 2024

Hi, using the solution pointed in #212494 worked for me, no need to reinstall / downgrade: code --in-process-gpu

This works, thanks a lot!

@isaacmsl
Copy link

isaacmsl commented Jun 6, 2024

It works here too.

@dviererbe
Copy link

Hi, using the solution pointed in #212494 worked for me, no need to reinstall / downgrade: code --in-process-gpu

Can confirm that this worked for me on Ubuntu 24.04, but I think that I will just snap revert until there is a fix.

@keha12345
Copy link

i have ubuntu and got this error.
This resolve helped for me:

  1. I uninstalled the snap version
  2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable
  3. then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working again.

@RubTalha
Copy link

RubTalha commented Jun 6, 2024

@chiukapoor
Copy link

sudo snap install --revision 159 --classic code - this worked after removing the snap

This worked for me, thank you!

@tcsenpai
Copy link

tcsenpai commented Jun 6, 2024

It seems the May release of vscode is breaking on Ubuntu 24.04 (at least it is for me).

Solution

1. I uninstalled the snap version

2. Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable

3. then run `sudo dpkg -i code_1.89.1-1715060508_amd64.deb` and it is now working again.

Works on Ubuntu 23.10 too

@Harmonyblue Harmonyblue mentioned this issue Jun 6, 2024
@richi-coder
Copy link

richi-coder commented Jun 6, 2024

For me vscode started to break just today. I have this version installed: 1.90.0
89de5a8
x64
and Linux Mint 21.1

I just solved it following steps said by @magick93

@microsoft microsoft locked as off-topic and limited conversation to collaborators Jun 7, 2024
@deepak1556
Copy link
Contributor

I am locking this issue, since the comments about 1.90 crash is unrelated and is diverging the original issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chromium Issues and items related to Chromium freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues gpu Issues concerning GPU related items mitigated Issue has workaround in place upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests