You are not logged in.
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
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
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
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
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
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
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
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
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
Deleted.
Last edited by diegoviola (2023-04-17 22:29:23)
Offline