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

Crash on Linux when attempting to open "File" menu #2082

Closed
3 tasks done
Svankle1 opened this issue Nov 2, 2024 · 102 comments
Closed
3 tasks done

Crash on Linux when attempting to open "File" menu #2082

Svankle1 opened this issue Nov 2, 2024 · 102 comments
Labels
bug Something isn't working

Comments

@Svankle1
Copy link

Svankle1 commented Nov 2, 2024

(First time writing one of these, so sorry if I've fail to provide good information)
Describe the bug
After a recent update, trying to use the File menu/dropdown results in a crash after about a second of the program freezing.

Please confirm that this problem is VSCodium-specific

  • I temporarily installed Visual Studio Code via the Linux 64 deb package on code.visualstudio.com. The crash does not occur there.
  • The crash also does not occur on VSCodium's flatpak option it seems. Only the deb package.

Please confirm that the issue/resolution isn't already documented

To Reproduce
Steps to reproduce the behavior:

  1. Update VSCodium to 1.95.1.24307
  2. Open VSCodium
  3. Hover over "File" in top right and click.
  4. Encounter crash after 1 or 2 seconds.
    Its notable that all the other drop downs such as Edit and Terminal seem to render without issue.
    Expected behavior
    The File dropdown to render and allow options to be selected.

Desktop (please complete the following information):

  • OS: Linux Mint 21.3 MATE Edition
  • Architecture amd64 (I believe)
  • Version 1.95.1.24307
  • App Manager apt / mintUpdate
  • Sandboxed Flatpack and Snap are both enabled, but not being relevant to this bug.

Additional context
This bug did not happen on version 1.94.2.24286

@Svankle1 Svankle1 added the bug Something isn't working label Nov 2, 2024
@lichenaut
Copy link

lichenaut commented Nov 2, 2024

This is happening to me too. Reinstalling and clearing cached/local data did not fix it. LMDE, installed with apt.

@orangecoloured
Copy link

Same here. Fedora 40.

@lincolnjpg
Copy link

It's happening here as well. Debian 12

@mattaroni
Copy link

Also happening here. Using Linux Mint 22 Cinnamon.

@schwartzenheimer
Copy link

Same issue, Manjaro KDE 6.1.5

@Redsskull
Copy link

Linux Mint 21. I actually thought it was my settings or product.json after the update today, but the crash logs show it dumping a core and having issues itself.

@cocoanaut
Copy link

Same issue on Debian 12.7. dmesg shows this error:

traps: codium[9145] trap int3 ip:55cf909cc46c sp:7fffa5030a70 error:0 in codium[55cf8ca40000+8972000]

@zero-stacks
Copy link

same on fedora 41

@xgrind
Copy link

xgrind commented Nov 3, 2024

same on mageia 9

I get this message in the terminal when I click on File:

[20022:1102/222029.178647:FATAL:check.cc(376)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!

@g5ostXa
Copy link

g5ostXa commented Nov 3, 2024

same on arch

@awsms
Copy link

awsms commented Nov 3, 2024

Same on EndeavourOS+i3. Does VSCodium also crash for you when right-clicking on a text area?

@hyprmann
Copy link

hyprmann commented Nov 3, 2024

Crash on arch, hyprland too, v1.95.1.24307-1

I've made a note on to downgrade the package if anyone wants to downgrade it.

# Downgrade AUR packages

# Method 1: CLI

# Clone the AUR repository
# git clone https://aur.archlinux.org/aur_package.git
git clone https://aur.archlinux.org/vscodium-bin.git

# Change directory to AUR package folder
# cd aur_package_directory
cd vscodium-bin

# View the git changelog of the AUR package
git log

# Copy the hash of the specific commit
b7ca24ade76bb56d09851132bfa362c47233c657

# Press q to quit

# Switch branches or restore working tree files
# Updates files in the working tree to match the version in the index or the specified tree
# git checkout commit_hash
git checkout b7ca24ade76bb56d09851132bfa362c47233c657

# Build the package using the makepkg script
makepkg -si

# Delete the AUR package folder (Optional)

# Change directory to home
cd ~

# Delete the AUR package folder recursively with privilege escalation
sudo rm -r vscodium-bin

# Ignore AUR package update

# Edit pacman.conf
sudo nano /etc/pacman.conf

# Remove "#" from "IgnorePkg" and add AUR package to ignore updates
---
IgnorePkg   = vscodium-bin
---

# Press Ctrl + O to save

# Press Ctrl + X to exit



# Method 2: GUI

# Visit the AUR page
https://aur.archlinux.org/

# Find the AUR package
# Search the AUR package name using the "Package Search" box on the right side
https://aur.archlinux.org/packages/vscodium-bin

# View the changelog of the AUR package
# Click "View Changes" on "Package Actions" box located on the right side
https://aur.archlinux.org/cgit/aur.git/log/?h=vscodium-bin

# Pick specific commit
# Click specific "Commit message" link
https://aur.archlinux.org/cgit/aur.git/commit/?h=vscodium-bin&id=b7ca24ade76bb56d09851132bfa362c47233c657

# Download specific commit .tar.gz file
# Under the "Commit" tab, click the link beside the "download" text
https://aur.archlinux.org/cgit/aur.git/snapshot/aur-b7ca24ade76bb56d09851132bfa362c47233c657.tar.gz

# Extract the AUR package .tar.gz file recursively with verbose log
# tar -xzvf aur_package.tar.gz -C extract_directory
tar -xzvf ~/Downloads/aur-b7ca24ade76bb56d09851132bfa362c47233c657.tar.gz -C ~/Downloads/vscodium/

# Change directory to AUR package folder
# cd aur-commit_hash_directory
cd ~/Downloads/aur-b7ca24ade76bb56d09851132bfa362c47233c657/

# Build the package using the makepkg script
makepkg -si

# Delete the AUR package folder (Optional)

# Change directory to home
cd ~

# Delete the AUR package folder recursively with privilege escalation
sudo rm -r vscodium-bin

# Ignore AUR package update

# Edit pacman.conf
sudo nano /etc/pacman.conf

# Remove "#" from "IgnorePkg" and add AUR package to ignore updates
---
IgnorePkg   = vscodium-bin
---

# Press Ctrl + O to save

# Press Ctrl + X to exit

@daiyam
Copy link
Member

daiyam commented Nov 3, 2024

I have the issue:

[main 2024-11-03T09:01:42.617Z] menubarService#updateMenubar 1
[7930:1103/100144.116291:FATAL:check.cc(376)] Check failed: false. NOTREACHED log messages are omitted in official builds. Sorry!

@kxxt
Copy link
Contributor

kxxt commented Nov 3, 2024

Some Links:

I suspect this issue is fixed in microsoft's distribution of electron but not the upstream ones.

@daiyam
Copy link
Member

daiyam commented Nov 3, 2024

@kxxt Thx for the update. So it's not VSCodium specific.

I'm testing/building on my VM, I will try to play around with the Electron version.

@daiyam
Copy link
Member

daiyam commented Nov 3, 2024

Here the related issues: microsoft/vscode#230604 and microsoft/vscode#232723

Based on the comments in microsoft/vscode#232723, Visual Studio Code has shipped with a custom Electron with the fix.
And by using the setting "window.titleBarStyle": "custom", it does fix the issue (It stops to use the system menu...)

I've tested it and it's working.
You can do it with Ctrl+, then search titleBarStyle and select custom.

@daiyam daiyam pinned this issue Nov 3, 2024
@daiyam daiyam changed the title Crash on Linux (deb package) when attempting to open "File" menu Crash on Linux when attempting to open "File" menu Nov 3, 2024
@daiyam
Copy link
Member

daiyam commented Nov 3, 2024

@zero-stacks Which version are you using?

@kyberdrb
Copy link

kyberdrb commented Nov 3, 2024

@daiyam
code-insiders-bin: latest version 1.96.0 is working stable.
vscodium-insiders-bin : latest version 1.95.0 crashes.
Arch Linux with latest updates up to Nov 3rd.

So I guess 1.96 has the bug fixed. We just need to wait until the VSCode upstream gets merged into VSCodium release branch.

@xgrind
Copy link

xgrind commented Nov 3, 2024

Here the related issues: microsoft/vscode#230604 and microsoft/vscode#232723

Based on the comments in microsoft/vscode#232723, Visual Studio Code has shipped with a custom Electron with the fix. And by using the setting "window.titleBarStyle": "custom", it does fix the issue (It stops to use the system menu...)

I've tested it and it's working. You can do it with Ctrl+, then search titleBarStyle and select custom.

This solution was perfect and even makes the look better. It could come custom by default.

@kyberdrb
Copy link

kyberdrb commented Nov 3, 2024

@xgrind

I can confirm that the setting adjustment has cosmetic effect on VSCode 1.96.0-insiders

image

and fixes the File menu crash for 1.95.0-insiders

image

image

Still an interesting bug. But I like the "custom" menu bar design better. I'm almost glad it broke :)

@daiyam
Copy link
Member

daiyam commented Nov 3, 2024

I agree with you that the custom menu is better ;)

code-insiders-bin: latest version 1.96.0 is working stable.

Yes, code-insiders-bin is using the binary from MS (https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=code-insiders-bin#n16)

@imgustavo
Copy link

same here since today, using LMDE6

@jon-nfc
Copy link

jon-nfc commented Nov 3, 2024

same issue too. v1.95.1. can confirm setting the title bar to custom does address the issue

@negativeExponent
Copy link

thanks for custom

@daniel-ambriz
Copy link

Same crash issue for me on ZorinOS 17.2

@fr0st-iwnl
Copy link

I've tested it and it's working. You can do it with Ctrl+, then search titleBarStyle and select custom.

I tried it out too and it works setting titleBarStyle to custom using Ctrl+, fixed the issue for me. Still the native title bar crashes for me but honestly i’m liking the custom one better anyway. Thanks for the tip!

@mtovmassian
Copy link

mtovmassian commented Nov 4, 2024

Ubuntu 22.04 same behavior and using the custom Title Bar Style is a good workaround.

@importcjj
Copy link

In arch, setting window.titleBarStyle to custom fixes my crash

@mahula
Copy link

mahula commented Nov 15, 2024

In arch, setting window.titleBarStyle to custom fixes my crash

Exactly.
As written above in #2082 (comment), this is a worthy fix.

@nPHYN1T3
Copy link

nPHYN1T3 commented Nov 15, 2024

It works but now I'm stuck with a piece of UI I had hidden for a reason.

@MelihDarcanxyz
Copy link

I can reproduce this error both on Pop!OS and Arch Linux, on different machines.

@boxerab
Copy link

boxerab commented Nov 15, 2024

I was just going to open a new issue on this - happens to me every time on Fedora 41.

@hafiz-muhammad
Copy link

Happening to me also on Fedora 41.

@distinctjuggle
Copy link

hey guys guess what - it's happening to everyone on everything.

Neat how this was troubleshooted and then solved via workaround a while ago, huh? No need to keep posting about it with irrelevant information that helps no one and only obfuscates the real answers.

@daiyam
Copy link
Member

daiyam commented Nov 15, 2024

Good news, it has been backported (electron/electron#44623) and Electron v32.2.5 has been released.
I'm making the updates and will release a new version soon.

@daiyam
Copy link
Member

daiyam commented Nov 16, 2024

v1.95.3.24321 is fixing the issue.

@daiyam daiyam unpinned this issue Nov 16, 2024
@daiyam daiyam added downstream something awry downstream and removed downstream something awry downstream labels Nov 16, 2024
@strasharo
Copy link

Fix works on Fedora 40, thank you!

@nPHYN1T3
Copy link

Working on Arch - also thanks.

@boxerab
Copy link

boxerab commented Nov 16, 2024

Works on Fedora 41, thanks you !!!

@kaze-neko
Copy link

Works on Debian 12, thanks a lot =^ ^=

@daiyam daiyam closed this as completed Nov 17, 2024
@Plumeros
Copy link

thanks a lot :-)

@archiron
Copy link

Version 1.95.3 working on my Ubuntu 24.10.
Many thanks !

@peaceAndHodl
Copy link

ubuntu / gnome

the file menu doesn't crash the app anymore

HOWEVER it is still not possible to resize windows with mouse from window borders (full screen / minimize buttons are fine).

@drekorig
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests