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

Graphics artifacts with i3-wm on amdgpu #3577

diegoviola opened this Issue Jan 4, 2019 · 3 comments


None yet
3 participants
Copy link

diegoviola commented Jan 4, 2019

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

I am currently experiencing graphics artifacts/corruption when opening windows on i3-wm. I've asked for help on #amdgpu thinking this was a driver issue but MrCooper suggested this to be a bug in i3.

Here's some of our conversation from today:

I am running i3wm on a Ryzen 5 2400G desktop using the integrated vega graphics. I am also using the modesetting xorg driver.

The artifacts occur when I run a program and when the program hasn't drawn anything yet, the artifacts then are gone after the program finished loading. I've seen this bug mostly with Qt applications.

My system details:

  • Arch Linux
  • mesa 18.3.1-1
  • Linux 4.20.0-arch1-1-ARCH

Expected Behavior

No image corruption/artifacts when opening new windows.

Reproduction Instructions

Start an application on i3wm and observe corruption when the application hasn't drawn anything yet.


Output of i3 --moreversion 2>&-:

i3 version: 
Binary i3 version:  4.16 (2018-11-04) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16 (2018-11-04) (pid 536)to abort…)
Loaded i3 config: /home/diego/.config/i3/config (Last modified: Mon 24 Dec 2018 02:33:19 AM -02, 999901 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

- Linux Distribution & Version: Arch Linux
- Are you using a compositor (e.g., xcompmgr or compton): No.

This comment has been minimized.

Copy link

i3bot commented Jan 4, 2019

I don’t see a link to Did you follow (In case you actually provided a link to a logfile, please ignore me.)


This comment has been minimized.

Copy link

diegoviola commented Jan 4, 2019

MrCooper | dviola: AFAICT i3 seems to copy from a pixmap to its parent window; my guess would be it never initializes the contents of that
         | pixmap
MrCooper | so its contents are undefined
MrCooper | that indeed seems to be the case, if I interpret the code in i3-wm/src/x.c:x_push_node() correctly
MrCooper | according to /usr/include/cairo/cairo.h, cairo doesn't initialize the contents of a surface created with
         | cairo_xcb_surface_create
MrCooper | I'd file an i3 bug about this

This comment has been minimized.

Copy link

Airblader commented Jan 4, 2019

Thanks for the report. I haven't looked yet, but this sounds pretty reasonable and likely. Related, but for a different codepath I think is #3481.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment