-
Notifications
You must be signed in to change notification settings - Fork 527
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
[Bug]: Crash on start (Ubuntu 24.04) #2007
Comments
looks like a path or shortcut issue but doesn't make much sense (Maybe this info will be more helpful to someone who knows Linux better then me). If I go to "/opt/YouTube Music" in the files app and double click on the executable youtube-music it will launch the app. This is strange because the "/usr/share/applications/youtube-music.desktop" points directly to that same file. I also tried running "/usr/bin/youtube-music" or changing the desktop file to that location and still get the same error. Unsure why I can go directly to the app in files and run it but not as a shortcut, so very strange. I can run it from files app directly but not from the terminal. So very strange. |
Maybe the desktop file is configured for Wayland and you are in x11? Can you share ur desktop file? |
The initial setup was on wayland, now i've change to x11. Same error. [Desktop Entry] |
I also receive the error if I try to run it directly from terminal |
This comment was marked as spam.
This comment was marked as spam.
The reason is, that in Ubuntu 24.04 we have restricted user namespaces (which affects electron being able to spawn a sandbox) See https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces See here for some fixes regarding bwrap, (which we could use similar fixes, I am currently testing that) |
SolutionsThere are two possible solutions fro this problem in Ubuntu 24.04: Solution 1 :Add a apparmor profile for youtube-music, so that it can use user namespaces (userns) To do this this, create this file
and than run
Taken from here and modified accordingly. Tested locally, it works. Solution 2:disable this restriction ( might also help for other apps, that crash otherwise) sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 And then you have to reboot. this disables the restriction against unprivileged user namespaces. |
This app should ship the Edit: It is not possible to add a file to The first option is a better option, but for that we need to do submit a PR doing that to |
guy, just update your kernel to version 6.9.12 and everything fix |
Preflight Checklist
YouTube Music (Application) Version
3.3.6
Checklists
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu 24.04
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
$ youtube-music
Expected Behavior
Open
Actual Behavior
Crash at start
Enabled plugins
None
Additional Information
LaunchProcess: failed to execvp:
/opt/YouTube
[5924:0425/165253.026537:FATAL:zygote_host_impl_linux.cc(202)] Check failed: . : Argumento inválido (22)
«trap» para punto de parada/seguimiento (`core' generado)
The text was updated successfully, but these errors were encountered: