lilyinstarlight / nixos-cosmic

Flake for using COSMIC on NixOS
MIT License
431 stars 27 forks source link

Unable to login 'Failed to submit rendering: Failed to submit result for display' #453

Closed foldfree closed 3 weeks ago

foldfree commented 3 weeks ago

Since i updated about 12 hours ago i cannot login anymore. i have an error on cosmic-comp. Hope this is the right place to report such thing

Oct 31 19:16:05 nixos cosmic-greeter[1836]: 2024-10-31T11:16:05.570856Z  WARN cosmic_comp::backend::kms::surface: Failed to submit rendering: Failed to submit result for display
Oct 31 19:16:05 nixos cosmic-greeter[1836]: Caused by:
Oct 31 19:16:05 nixos cosmic-greeter[1836]:     0: The underlying drm surface encountered an error: DRM access error: Page flip commit failed on device Some("/dev/dri/card1") (Permission denied (os error 13))
Oct 31 19:16:05 nixos cosmic-greeter[1836]:     1: DRM access error: Page flip commit failed on device Some("/dev/dri/card1") (Permission denied (os error 13))
Oct 31 19:16:05 nixos cosmic-greeter[1836]:     2: Permission denied (os error 13) name="eDP-1"
Oct 31 19:16:05 nixos .cosmic-comp-wrapped[1836]: Failed to submit rendering: Failed to submit result for display

                                                  Caused by:
                                                      0: The underlying drm surface encountered an error: DRM access error: Page flip commit failed on device Some("/dev/dri/card1") (Permission denied (os error 13))
                                                      1: DRM access error: Page flip commit failed on device Some("/dev/dri/card1") (Permission denied (os error 13))
                                                      2: Permission denied (os error 13)
lilyinstarlight commented 3 weeks ago

What GPU driver(s) are you using for graphics on your computer?

foldfree commented 3 weeks ago

I am using asahi, the linux for apple silicon. It has an opengl and vulkan driver. https://gitlab.freedesktop.org/asahi/mesa

i rolled back to the previous build from the day before and things works. So something must have happened between the 2 days?

lilyinstarlight commented 3 weeks ago

I mean it's entirely possible something changed in nixpkgs (such as mesa/libdrm) and/or your kernel rather than anything cosmic is doing. Would you be willing to share drm debug log? (e.g. you can enable debug logs via something like boot.kernelParams = [ "drm.debug=0x1ff" ]; (I'm not 100% sure though and am on mobile or I'd double check))

foldfree commented 3 weeks ago

Thank you, you were right. I downgraded the kernel and it worked!