You are not logged in.

#1 2014-08-14 20:42:24

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

QT applications showing artifacts and gray windows in i3

Hi all!

Whenever I start an app like virtualbox(a 64bit app) or skype(a multilib 32bit app) that uses qt, I see almost entirely gray windows, and many weird artifacts around what has been drawn, such that I can't even use the application.

Has anyone seen this, or know where I should start debugging this issue?

Thanks!

Offline

#2 2014-08-14 20:48:15

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: QT applications showing artifacts and gray windows in i3

http://i.imgur.com/DORNjCp.png

^ this is what happens when I run qtconfig (which is broken btw. qtconfig from qtchooser looks for /usr/lib/qt/bin/qtconfig and qt4 puts qtconfig in /usr/lib/qt4/bin/qtconfig ..)

Offline

#3 2014-08-14 21:32:03

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: QT applications showing artifacts and gray windows in i3

QNativeImage: Unable to attach to shared memory segment. 
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
QNativeImage: Unable to attach to shared memory segment. 
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)

Is what's it's printing on the console there

Offline

#4 2014-08-14 21:45:52

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: QT applications showing artifacts and gray windows in i3

I have configured this system pretty specifically as it relates to shared memory:

kernel.shmmax = 65536

I'm thinking maybe this is the problem? Do I need to set this larger? I don't know how xshm / gtk / qt etc work together.

Offline

#5 2014-08-14 22:30:00

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: QT applications showing artifacts and gray windows in i3

Does setting the QT_GRAPHICSSYSTEM environment variable improve anything?

export QT_GRAPHICSSYSTEM=raster
<your Qt app command>

Last edited by Pse (2014-08-14 22:30:23)

Offline

#6 2014-08-14 22:34:41

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: QT applications showing artifacts and gray windows in i3

Oh whoa ok.

Setting it to raster maintained the exact same state.

Because I know nothing about QT or this QT_GRAPHICSSYSTEM env, I set it to GTK just to fuck around.

It then printed "Unable to load graphicssystem "gtk"" and renders perfectly!

So somehow this raster setting is incorrect / buggy on my system. Any way to get this out of an environment variable? As in - can I solve this with some better qt config or something?

Offline

#7 2014-08-14 22:37:31

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: QT applications showing artifacts and gray windows in i3

AFAIK, there are only three possible settings for QT_GRAPHICSSYSTEM: native, raster and opengl. Try all 3 of them and pick the one that works best. After that, you can set it permanently in your .profile.

Offline

#8 2014-08-14 22:52:29

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: QT applications showing artifacts and gray windows in i3

Well it would be nice to fix raster somehow, but thank you *so so so* much for you pointer. Really something I couldn't have figured out on my own.

Offline

#9 2014-08-15 04:40:37

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: QT applications showing artifacts and gray windows in i3

Certainly. "Raster" rendering might be broken due to your specific combination of GPU drivers, Xorg server and/or window manager. A bug in any of them could cause the problem you are seeing. If you want to confirm this, you may want to temporarily switch to the vesa driver and enable raster mode in Qt again. You may also want to switch window managers just to see what happens. In any case, I'm glad the workaround is working for now.

Offline

#10 2014-08-15 10:46:21

diegoviola
Member
Registered: 2010-12-16
Posts: 132

Re: QT applications showing artifacts and gray windows in i3

Deleted.

Last edited by diegoviola (2023-04-17 22:29:23)

Offline

Board footer

Powered by FluxBB