-
Notifications
You must be signed in to change notification settings - Fork 110
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
panic in cosmic-comp @ 6eb8b82 when launching flatpak apps with wayland socket permission #247
Comments
Okay, I tried out this cosmic-epoch commit again: pop-os/cosmic-epoch@cd10271 That has a submodule reference to f6ea7fa Anyhow, that does launch, and can run Firefox in flatpak, helvum in flatpak, Minecraft in flatpak, GNOME Console, GNOME Clocks, etc without the panic I'll try a few more cosmic-epoch commits in a sort of bisect and see if I can work it out |
I just tried pop-os/cosmic-epoch@e67428f which has a submodule reference to https://github.com/pop-os/cosmic-comp/commits/db3e372b8f81f174513b4a9f82a876d267d0145c That's also completely fine here, hmmm.... |
I tried pop-os/cosmic-epoch@543abf1 which references 809eeaf and that's also completely fine I'm starting to wonder if I imagined the panic somehow... |
I just tried pop-os/cosmic-epoch@4fd53f7 which references b33c1dc I can once again reproduce the crash with Firefox in flatpak (same stack trace as in the original report) Although, Element in flatpak and Discord in flatpak do work fine, so it's not a problem that is specific to flatpaks |
Okay, after playing around with this a bit, I can get Firefox in flatpak and Chrome in flatpak to work without crashing the entire compositor, but only if I block their wayland socket permissions in flatpak, e.g. This does cause them to run in Xwayland mode which is a downside, but the upside is they don't cause cosmic-comp to crash Separately, I tried cleaning up the nVidia vulkan drivers on my system (leftovers from an old experiment, I don't have an nVidia GPU in there at all now), and I also tried disabling the AMD iGPU, and neither of these had any effect |
So far I haven't been able to replicate this, but that might just be, because my packages are not recent enough. My theory is, that this is a subtle error in our security-context implementation, that is now triggered by the latest version of flatpak making use of that protocol. |
@Drakulix yep, amazing I can confirm that this patch resolves the issue Firefox-in-flatpak loads just fine now when it had permission to access the wayland socket, with flatpak 1.15.6 |
Thanks for testing, the fix is merged. That should unblock pop-os/cosmic-epoch#158 now. |
This was broken in epoch even prior to my chore PR But I'll update my chore PR to carry this latest commit :) |
Fixed by #250 And epoch PR updated to include this: pop-os/cosmic-epoch#158 |
Howdie, thanks for sharing this project! I'm so excited! <3
I've just been preparing a PR to bump the git submodules over in cosmic-epoch, and I've noticed that I don't seem to be able to launch Firefox (in flatpak) or Chrome (in flatpak)
GNOME Clocks works, and so does alacritty, so it's not all apps
I haven't narrowed it down to whether or not it's flatpak, but I do have a stack trace:
That's with this commit: 6eb8b82
And I believe the panic is from the
unwrap()
on this line:cosmic-comp/src/backend/kms/socket.rs
Line 53 in 6eb8b82
I'm on a fairly recent system with an AMD CPU, AMD iGPU, and AMD dGPU, running Arch Linux
Anyhow, I'm mostly posting this just in case someone else runs into the same thing, and so that I have an issue I can point at from the submodules PR
I understand that COSMIC is pre-alpha, and this might very well be expected for now
The text was updated successfully, but these errors were encountered: