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

Program crashes when i try to open Files menu #232873

Closed
justOtto opened this issue Nov 1, 2024 · 10 comments
Closed

Program crashes when i try to open Files menu #232873

justOtto opened this issue Nov 1, 2024 · 10 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@justOtto
Copy link

justOtto commented Nov 1, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: Code OSS 1.95.1-1 (also happens on 1.95.0-1)
  • OS Version: Arch Linux, Kernel 6.11.5.arch1-1, Gnome 47 Wayland

Steps to Reproduce:

  1. Open VS Code (Code OSS).
  2. Try to open Files Menu.

VS Code is crashing when i try to open the Files menu. It happens when i click on "File" in the menu bar or when i e.g. click on "Edit" and move the mouse to "File" while the Edit menu is opened. (Other menus are opening without problems, just "File" is closing/crashing the program.)

Here is a Systemd Coredump, maybe it helps.
code-oss-1.95.1-1-coredump-crash-filesmenu-2024.11.01.txt

@HanabishiRecca
Copy link

Arch Linux package internal report: https://gitlab.archlinux.org/archlinux/packaging/packages/code/-/issues/5
Official VS Code binaries by Microsoft are not affected. So we are not likely to find help here.

@Lenn-Al
Copy link

Lenn-Al commented Nov 2, 2024

I can reproduce the issue.

Bisecting the code indicates that the first bad commit is this one.

So the issue is likely caused by the update to Electron 32.

@HanabishiRecca
Copy link

Yup, I addressed that in the issue above.

starting it with older Electron version mitigates the issue

@IronRocket
Copy link

I have the same issue and I just downgraded code, which fixed the problem.

Assuming you installed visual studio code from AUR follow these steps

If you don't have yay:

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Install Downgrade

yay -S downgrade

Downgrade Code

Finally run this and select a version(I downgraded to 1.94.2):

sudo downgrade code

@archusXIV
Copy link

Downgrading can also be done by downloading/installing this version:
https://archive.archlinux.org/packages/c/code/code-1.94.2-1-x86_64.pkg.tar.zst
and in /etc/pacman.conf by adding:

IgnorePkg = code

So pacman won't upgrade the package until you noticed that the bug is fixed, so you can remove the pacman.conf modification.

@HanabishiRecca
Copy link

Fix is on Electron side: electron/electron#44341

The easiest workaround for now is to simply set window.titleBarStyle to custom.

@archusXIV
Copy link

Thanks @HanabishiRecca

@MrMagne
Copy link

MrMagne commented Nov 5, 2024

The easiest workaround for now is to simply set window.titleBarStyle to custom.

It needs to be set in user settings (press F1 > "Preferences: User settings"), it does not work in workspace settings.

@cribbageSTARSHIP
Copy link

I have the same issue and I just downgraded code, which fixed the problem.

Assuming you installed visual studio code from AUR follow these steps

If you don't have yay:

git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Install Downgrade

yay -S downgrade

Downgrade Code

Finally run this and select a version(I downgraded to 1.94.2):

sudo downgrade code

This allowed me to finish something just under the wire. Thank you.

@deepak1556
Copy link
Collaborator

/duplicate #232723

@deepak1556 deepak1556 assigned deepak1556 and unassigned ulugbekna Nov 8, 2024
@vs-code-engineering vs-code-engineering bot added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 8, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

9 participants