mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4960] Brave crashes on multiple browser profiles with PWAs under Wayland #2837
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2837
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @samsapti on GitHub (Feb 18, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4960
Description
When starting Spotify (installed as a PWA under its own Brave profile), then starting another PWA (say Discord, also installed under its own Brave profile), and then clicking play in Spotify, Brave crashes (all windows). This only happens under Wayland and when running with Firejail. Running without Firejail (either with
--noprofileor just without Firejail at all) and/or under XWayland works fine.Steps to Reproduce
LC_ALL=C firejail brave --profile-directory="Profile 1" --app-id=pjibgclleladliembfgfagdaldikeohfto open SpotifyLC_ALL=C firejail brave --profile-directory="Profile 3" --app-id=magkoliahgffibhgfkmoealggombgknlto open DiscordERROR:wayland_event_watcher.cc(292)] Fatal Wayland protocol error 3 on interface xdg_surface (object 37). Shutting down..Expected behavior
Brave doesn't crash
Actual behavior
Brave crashes
Behavior without a profile
Brave works as expected
Additional context
brave-flags.confbrave.local(in combination with official Brave Firejail profile)chromium-common.localfirejail.configEnvironment
s6init system)firejail 0.9.68-1from Artixgalaxyrepo)brave-bin 1:1.35.103-1from AUR)Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail brave --profile-directory="Profile 1" --app-id=pjibgclleladliembfgfagdaldikeohf(relevant events commented in log)brave-spotify.log
Output of
LC_ALL=C firejail brave --profile-directory="Profile 3" --app-id=magkoliahgffibhgfkmoealggombgknlbrave-discord.log
Output of
LC_ALL=C firejail --debug brave --profile-directory="Profile 1" --app-id=pjibgclleladliembfgfagdaldikeohf(relevant events commented in log)brave-spotify-debug.log
Output of
LC_ALL=C firejail --debug brave --profile-directory="Profile 3" --app-id=magkoliahgffibhgfkmoealggombgknlbrave-discord-debug.log
@rusty-snake commented on GitHub (Feb 18, 2022):
Does it work if you add
join-or-restart bravejoin-or-start bravetobrave.local?Exemplary bug report, thanks.
FYI, this should no longer be needed with firejail 0.9.68.
@samsapti commented on GitHub (Feb 18, 2022):
It says:
Error: line 4 in /home/user/.config/firejail/brave.local is invalidafter adding that.@rusty-snake commented on GitHub (Feb 18, 2022):
Gotch
join-or-start, norestart.But this doesn't make real sense either.
@samsapti commented on GitHub (Feb 18, 2022):
Nope, it causes the following error when trying to launch Discord:
Even if I start it without the
--app-idflag, manually navigate to Discord, and then clickopen in Discord, it still crashes when clicking play in Spotify.@rusty-snake commented on GitHub (Feb 18, 2022):
I've no real idea what could be the cause, try commenting stuff until it work to find the problematic line.
@reinerh commented on GitHub (Feb 18, 2022):
Error: invalid option --app-id=magkoliahgffibhgfkmoealggombgknl after --joinThis sounds like firejail thinks it's a firejail option.
Can you try to end the firejail options list with
--?E.g.:
firejail -- brave --appid=...@samsapti commented on GitHub (Feb 18, 2022):
That does fix the second Brave window (Discord) not launching, but Brave still crashes when clicking play in Spotify.
@samsapti commented on GitHub (Feb 18, 2022):
Okay, I think this is a Brave issue. I've found that removing
no3doption fixes the bug, but only when 3D acceleration is turned on in Brave settings. Turning 3D acceleration off in Brave settings results in the faulty behavior regardless of it running in Firejail or not. I'm closing this issue and opening one in Brave's repo.nodbus#4553