Xorg logs being spammed with "present flip failed"

Hello, I recently noticed my Xorg logs getting bloated. When I checked them, I found thousands of repetitions of these lines:

(WW) AMDGPU(0): flip queue failed: Invalid argument
(WW) AMDGPU(0): Page flip failed: Invalid argument
(EE) AMDGPU(0): present flip failed

It seems that anytime I start a hardware accelerated program (such as a game), specifically when fullscreened, or switching in/out of a workspace with a fullscreened program, I get those lines. I’ve been unable to figure out what’s causing this.

My GPU is an RX 6700 XT, I’m on Debian Sid, and my kernel version is 6.10.12-amd64. I’m using i3 as my window manager, and no compositor. I have a single monitor connected via HDMI, it is 1080p and has a refresh rate of 60Hz.

It should be noted that I found Xorg logs of this same install from May 2023 without any of these errors. There have been no hardware changes since. Also, functionality seems unimpaired—the GPU performs well, it’s just that Xorg is constantly writing errors to my storage which I’m unhappy with.

Does anyone have any clues as to why this is happening, and how I could fix it?

Uploading a sample log that exhibits the problem:
Xorg.0.log.old.txt (7.0 MB)

I dont have a solution, but I am experiencing the same problem with AMD 5600 XT using Manjaro Linux6.11.0-6-MANJARO x86_64

1 Like

It sounds like the issue could be related to the AMDGPU driver’s handling of page flipping or full-screen modes on your current setup. Since you mentioned that the issue wasn’t present in logs from May 2023, it might have been introduced by a driver update or kernel change.

A few things you can try:

  1. Ensure your system is fully up-to-date with the latest mesa, xorg, and AMDGPU packages, as this might resolve bugs in the driver.
  2. Disable page flipping in your Xorg config: Add this to /etc/X11/xorg.conf.d/20-amdgpu.conf:

rust

Копировать код

Section "Device"
    Identifier "AMD"
    Driver "amdgpu"
    Option "TearFree" "true"
    Option "PageFlip" "false"
EndSection

This might reduce the bloat in your logs, though it may affect performance in full-screen apps.
3. Try using a compositor like picom or compton, which might help with the way fullscreen applications are rendered, preventing the flip errors.

If the issue persists, rolling back to an earlier kernel version where this wasn’t happening could be a last resort.

1 Like

Apologies for replying so late! Thank you both for the info. The system is fully up to date with Sid repos. I suspect this might be a bug with MesaGL, but I will have to investigate further before I report it. As a temporary measure, I will also try a compositor, disabling page flipping, and downgrading kernels.

1 Like