-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Crash when closing current macOS native tab #167936
Comments
It does not crash when I close any native tab other than the current one. |
Now it no longer occurs. Let me know if there is anything I should try to reproduce. |
Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks! |
It started again after I installed an update of VS Code Insiders. The dumps folder looks like the dumps didn't finish, I'll send you the files by email:
|
Also attaching here. |
|
Crash has similar story to electron/electron@c8a3a00 where a re-focus is triggered on a WebContents that is already destroyed. In the commit scenario, it was a race during multiple child windows and in this case it is with native tabs. I will investigate a solution in January milestone. |
👏 , agree January is fine. |
I hit the same bug with my Macbook M1 Pro. Let me know if I need to do anything. |
Having the same issue with Version: 1.75.1 on Apple M1 Max. Both when closing with a Cmd+W shortcut or manually clicking the cross button in a tab. |
Today I accidentally triggered "Toggle window tabs bar" from the command palette, and this seems to have made the above problem completely go away (until then, vscode would crash nearly every time I quit the app, for at least the last 6 months or so). Not sure if this is related to the problem or just a coincidence, but maybe it will help someone else too. |
I am unable to repro the issue on macOS 14.0 and 13.4.1 (c) with latest insiders. Can anyone else still repro the issue with insiders ? |
@deepak1556 It still crashes. MacBook:
Insiders:
What I did is I created 3 new windows, closed Insiders, opened it again, and, closed the active window → 💥 It doesn't crash only if I manually switch to windows and then I could close them. |
@deepak1556 BTW: Tried with exploration builds based on Electron 25 and issue is still the same. |
Thanks for the detailed repro steps, I am able to confirm the issue now. |
@deepak1556 I can't believe this is fixed. Amazing work, thank you very much. Please, let me know when I can test it ❤️ |
The fix is now available in our latest insiders https://code.visualstudio.com/insiders, please give it a try. |
@deepak1556 It works perfectly 🎉 |
Type: Bug
VS Code crashes when I close the current macOS native tab.
VS Code version: Code - Insiders 1.74.0-insider (Universal) (493a541, 2022-12-02T05:25:16.689Z)
OS version: Darwin arm64 22.1.0
Modes:
Sandboxed: Yes
Remote OS version: Linux arm64 5.15.49-linuxkit
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (41)
The text was updated successfully, but these errors were encountered: