You are not logged in.
This problem popped up to me yesterday, the same day when I updated my qt 4 4.8.7-1 -> 4.8.7-2.
Searching for a solution, I came accross this thread: QT applications showing artifacts and gray windows in i3. The picture posted in #2 in that post is exactly what I'm seeing now, although I'm using GNOME 3.
andd here is the log printed in console when I launch qtconfig-qt4:
QNativeImage: Unable to attach to shared memory segment.
(qtconfig-qt4:7900): Gdk-WARNING **: shmget failed: error 28 (设备上没有空间)
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
The workaround using QT_GRAPHICSSYSTEM=native worked for me, but still I want to solve the issue elegantly. Does anyone know the crux of this problem?
Thanks!
---- EDIT ----
Just in case anyone googled for that error message, the workaround in Launchpad did not work for me.
Last edited by Dreaming in Code (2015-07-24 02:39:40)
Offline
Excellent, thanks for the workaround. I've started a thread about this issue earlier, with no success fixing it. This seems to do the trick (I hope it'll work in .bashrc)
If it ain't broke, pacman -Syyu and it will be
Offline
See here too:
https://bbs.archlinux.org/viewtopic.php?id=198709
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
I tried to export QT_GRAPHICSSYSTEM=native to profile file but still I'm getting issues. BTW when i run app from konsole after export all works fine.
"The flesh knows it suffers even when the mind has forgotten."
Offline
I tried to export QT_GRAPHICSSYSTEM=native to profile file but still I'm getting issues. BTW when i run app from konsole after export all works fine.
I've added it into ~/.pam_environment file, and it seems to do the trick.
~ $ cat .pam_environment
QT_GRAPHICSSYSTEM=native
Last edited by MightyPork (2015-07-24 14:55:18)
If it ain't broke, pacman -Syyu and it will be
Offline
i think /etc/environment is the right place for it.
Anyway i'm stick with 4.8.6 for the performance drop issue.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Found another problem possibly related to my issue.
When I do `ipcs -mp`, most of the segments are allocated by my JetBrains IDEs such as IntelliJ, Android Studio or CLion. Chrome and Qt exhibit artifacts after I open these IDEs, and ipcs shows that I have reached my 4096 limit on kernel.shmmni. I havn't increased that limit yet, because I think it is a bug in these IDEs that they quickly eat up my shm no matter what the limit is.
Offline
I had the same problem with QT4 artifacts and the shm issue while using PHPStorm. The problem went away when I switched to java-8-openjdk.
Offline
Thank you @rmiklu, switching to java-8-openjdk resolved my issue.
But I've been running JetBrains IDE on java-7-openjdk for almost a year and it is only recently that kernel.shmmni got fully occupied, so I believe this is a regression in java-7-openjdk, or xorg update broke compatibility with Java 7.
P.S. The Chrome artifact I mentioned in #7 seems to be an independent issue, maybe a regression in recent Chrome.
Offline
I have the same problem after last updating at 2015-07-27.
The error "Gdk-WARNING **: shmget failed: error 28" occurs after several hours of my linux work.
I tried to increase kernel shm options (kernel.shmall = 4194304, kernel.shmmax = 4294967296, kernel.shmmni = 409600) but it did NOT help to resolve this problem finally.
Today I tried to downgrade package gdk-pixbuf2 to version 2.31.4-1.
It seems it helps to resolve this error.
Offline
I have the same problem after last updating at 2015-07-27.
The error "Gdk-WARNING **: shmget failed: error 28" occurs after several hours of my linux work.
I tried to increase kernel shm options (kernel.shmall = 4194304, kernel.shmmax = 4294967296, kernel.shmmni = 409600) but it did NOT help to resolve this problem finally.
Today I tried to downgrade package gdk-pixbuf2 to version 2.31.4-1.
It seems it helps to resolve this error.
Sorry, it is not working.
Offline
only-victor wrote:I have the same problem after last updating at 2015-07-27.
The error "Gdk-WARNING **: shmget failed: error 28" occurs after several hours of my linux work.
I tried to increase kernel shm options (kernel.shmall = 4194304, kernel.shmmax = 4294967296, kernel.shmmni = 409600) but it did NOT help to resolve this problem finally.
Today I tried to downgrade package gdk-pixbuf2 to version 2.31.4-1.
It seems it helps to resolve this error.Sorry, it is not working.
I'm trying this fix now, so far seems to work.
If it ain't broke, pacman -Syyu and it will be
Offline
Okay nevermind, it really doesn't work.
The fix with
QT_GRAPHICSSYSTEM=native
works 100% though.
If it ain't broke, pacman -Syyu and it will be
Offline
Okay nevermind, it really doesn't work.
The fix with
QT_GRAPHICSSYSTEM=native
works 100% though.
Yes, it works, but error still shows "Gdk-WARNING **: shmget failed: error 28"
Offline
Hello guys. This issue is driving me crazy for a few weeks. I think I have narrowed down the problem. The fix with qt graphicssystem helps only partially (BTW it also affects some GTK apps) - spotify still breaks after a while and the system becomes slow and unresponsive.
Are you using any java apps?
I am using PHPStorm with openjdk-7. Closing PHPStorm and restarting affected application helped at once. I am testing if switching to openjdk-8 will help. Will get back to you on that.
Take a look here: https://bugs.archlinux.org/task/45794
Judju's comment indicates that switching to openjdk-7 helped, but I was on 7 all the time when the issue arose.
BTW For me the issue is present on two different machines - one with Intel GPU and one with Radeon GPU (oss driver) so I don't think it is related to GPU drivers at all.
Last edited by pinkeen (2015-08-11 10:45:08)
Offline
Hello guys. This issue is driving me crazy for a few weeks. I think I have narrowed down the problem. The fix with qt graphicssystem helps only partially (BTW it also affects some GTK apps) - spotify still breaks after a while and the system becomes slow and unresponsive.
Are you using any java apps?
I am using PHPStorm with openjdk-7. Closing PHPStorm and restarting affected application helped at once. I am testing if switching to openjdk-8 will help. Will get back to you on that.
Take a look here: https://bugs.archlinux.org/task/45794
Judju's comment indicates that switching to openjdk-7 helped, but I was on 7 all the time when the issue arose.BTW For me the issue is present on two different machines - one with Intel GPU and one with Radeon GPU (oss driver) so I don't think it is related to GPU drivers at all.
A unrelated issue but maybe somehow affecting you at the same time is with OpenJDK > 7.u79_2.5.5-1
Just downgrade to that version or switch to java 8, and it should go away (but PhpStorm doesn't work 100% right with java 8, I've had a few issues).
See here https://bugs.archlinux.org/task/45824
If it ain't broke, pacman -Syyu and it will be
Offline
Installing jre8-openjdk and setting it as default environment (archlinux-java command) resolved this issue for me.
Offline
Installation jre8-openjdk resolved this problem fully. I tried and it worked.
Offline
I also confirm jre8-openjdk fixed the problem. PhpStorm 9 seems to be fully functional with this version.
Last edited by pinkeen (2015-08-14 14:11:17)
Offline