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

vscode closes/crashes when tiling it #188566

Closed
Tracked by #189320
carlonluca opened this issue Jul 22, 2023 · 10 comments
Closed
Tracked by #189320

vscode closes/crashes when tiling it #188566

carlonluca opened this issue Jul 22, 2023 · 10 comments
Assignees

Comments

@carlonluca
Copy link

Type: Bug

  1. Open vscode from the command line.
  2. As soon as the window is shown, even before the view is completely loaded, tile the window to the left or to the right.
  3. vscode often immediately closes or crashes. I do not see any message in dmesg, like a segfault.

Please note that while this happens very frequently, it does not happen with 100% probability. Waiting for the complete load of the project before tiling sometimes work and sometimes doesn't. In some cases, it was impossible to tile the window at all, even by waiting or restarting the vscode process.

Observed results
The window closes or crashes, and I have to open it again.

Expected results
The window should change its geometry as requested, should not close nor crash, and the project/file should be loaded and shown.

I tried to switch from electron22 to electron25, but I could reproduce anyway.

VS Code version: Code - OSS 1.79.2 (695af09, 2023-06-17T15:54:35.168Z)
OS version: Linux x64 6.4.3-1-MANJARO
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E3-1505M v6 @ 3.00GHz (8 x 3599)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 6, 3, 2
Memory (System) 23.33GB (16.24GB free)
Process Argv --ozone-platform-hint=auto .
Screen Reader no
VM 0%
DESKTOP_SESSION plasmawayland
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP KDE
XDG_SESSION_TYPE wayland
Extensions (1)
Extension Author (truncated) Version
rust-analyzer rus 0.3.1591

(1 theme extensions excluded)

@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.80.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@carlonluca
Copy link
Author

Also happens with the snap package code-insiders.

@deepak1556
Copy link
Collaborator

It would be great if you can attach the crash logs following the steps at https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report

@deepak1556 deepak1556 added the info-needed Issue requires more information from poster label Jul 24, 2023
@carlonluca
Copy link
Author

Hello,
this is a dump of the crash: cd3a45e3-5381-4f43-8d66-0c1d940eb2c1.dmp.zip

@deepak1556
Copy link
Collaborator

Thanks for the crash logs but it seems to be generated with a system installed version of Electron in which case you would need to file issue against the electron package. If you can provide crash logs with builds from https://code.visualstudio.com/download, that would be great.

@carlonluca
Copy link
Author

Is the snap package of code-insiders ok? I just reproduced the crash with:

Version: 1.81.0-insider
Commit: fda9726
Date: 2023-07-25T08:12:28.011Z
Electron: 22.3.17
ElectronBuildId: 22432899
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.4.3-1-MANJARO snap

Here is the dump: adafe984-7213-4192-b273-839eb4a13a29.dmp.zip

@deepak1556
Copy link
Collaborator

Thanks for the crash logs, can you check if the issue is present with our exploration builds based on a newer version of the runtime #184021 (comment)

@carlonluca
Copy link
Author

carlonluca commented Jul 27, 2023

Yes, I confirm the crash can be reproduced even in the snap code-exploration-x64-1690213326.snap.

More info: I opened code-exploration 5 times and immediately crashed 5 out of 5 times with this command:

code-exploration --ozone-platform-hint=auto .

it was impossible to tile it. Then I opened it with:

code-exploration --ozone-platform-hint=auto

and I could tile it. Then tried again the first command and I could now tile. Something similar happened before. It is somehow random, but luckily pretty frequent.

@MaximMaximS
Copy link

I can confirm, when using --ozone-platform-hint=auto, it crashes unpredictably. Usually takes around five tries until it starts, sometimes even more.

@deepak1556 deepak1556 removed the info-needed Issue requires more information from poster label Jul 31, 2023
@beto811 beto811 mentioned this issue Jul 31, 2023
@deepak1556
Copy link
Collaborator

Merging to #184124 which now has a tracking upstream issue.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants