pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
480 stars 86 forks source link

Lots of compositor lag when running firefox and there's no wallpaper set. #638

Open ryanabx opened 2 months ago

ryanabx commented 2 months ago

This could be an issue with cosmic-bg or cosmic-comp, not sure. My hunch is that cosmic-comp should never be slowed to a halt by a client application though.

NVIDIA RTX 4060 laptop GPU, AMD Ryzen CPU, Fedora 40

How to reproduce:

How to work around:

Drakulix commented 2 months ago

My hunch is that cosmic-comp should never be slowed to a halt by a client application though.

Yes, but also extremely difficult to do.

Does this also happen, if cosmic-bg is simply not running?

24fpsDaVinci commented 2 months ago

How to work around: Set a background in cosmic-settings

the workaround works for me, strange no wallpaper can cause that

temas commented 1 month ago

Fedora 40, cosmic-epoch copr

Definitely ran into this and the work-around of setting a background definitely fixes it.

Error sample before a background was set:

Sep 08 18:42:17 XXXXX cosmic-comp[25615]: 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")` (Invalid argument (os error 22))
                                                 1: DRM access error: Page flip commit failed on device `Some("/dev/dri/card1")` (Invalid argument (os error 22))
                                                 2: Invalid argument (os error 22)
Drakulix commented 1 month ago
Sep 08 18:42:17 XXXXX cosmic-comp[25615]: 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")` (Invalid argument (os error 22))
                                                 1: DRM access error: Page flip commit failed on device `Some("/dev/dri/card1")` (Invalid argument (os error 22))
                                                 2: Invalid argument (os error 22)

This is weird and likely good insight into why this is failing. I assume this is somehow caused by direct scanout.

garrettjwilke commented 1 month ago

also experienced this.

i had a wallpaper set up from an image on a folder. i ended up moving that folder, and the system used a gray background.

setting the image back made everything function well again.

oldflag2333333 commented 4 weeks ago

AMD 8845HS, same issue.