You are not logged in.

#1 2015-07-24 02:38:19

Dreaming in Code
Member
Registered: 2014-08-16
Posts: 22

Qt4 artifacts possibly related to Qt4 package update

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

#2 2015-07-24 07:02:13

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: Qt4 artifacts possibly related to Qt4 package update

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

#3 2015-07-24 07:25:25

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Qt4 artifacts possibly related to Qt4 package update


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2015-07-24 14:46:32

gabriel9
Member
From: Berlin, DE
Registered: 2009-05-06
Posts: 89

Re: Qt4 artifacts possibly related to Qt4 package update

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

#5 2015-07-24 14:54:56

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: Qt4 artifacts possibly related to Qt4 package update

gabriel9 wrote:

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

#6 2015-07-24 16:52:48

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Qt4 artifacts possibly related to Qt4 package update

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

#7 2015-07-27 02:41:36

Dreaming in Code
Member
Registered: 2014-08-16
Posts: 22

Re: Qt4 artifacts possibly related to Qt4 package update

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

#8 2015-07-27 18:53:45

rmiklu
Member
Registered: 2015-07-27
Posts: 1

Re: Qt4 artifacts possibly related to Qt4 package update

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

#9 2015-07-28 02:35:34

Dreaming in Code
Member
Registered: 2014-08-16
Posts: 22

Re: Qt4 artifacts possibly related to Qt4 package update

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

#10 2015-07-30 22:35:36

only-victor
Member
Registered: 2010-12-27
Posts: 7

Re: Qt4 artifacts possibly related to Qt4 package update

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

#11 2015-07-31 00:10:52

only-victor
Member
Registered: 2010-12-27
Posts: 7

Re: Qt4 artifacts possibly related to Qt4 package update

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.

Offline

#12 2015-07-31 11:59:12

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: Qt4 artifacts possibly related to Qt4 package update

only-victor wrote:
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

#13 2015-07-31 13:52:14

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: Qt4 artifacts possibly related to Qt4 package update

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

#14 2015-07-31 15:41:48

only-victor
Member
Registered: 2010-12-27
Posts: 7

Re: Qt4 artifacts possibly related to Qt4 package update

MightyPork wrote:

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

#15 2015-08-11 10:42:18

pinkeen
Member
Registered: 2015-07-26
Posts: 3

Re: Qt4 artifacts possibly related to Qt4 package update

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

#16 2015-08-11 10:49:32

MightyPork
Member
From: Prague, Czech Republic
Registered: 2014-06-16
Posts: 93
Website

Re: Qt4 artifacts possibly related to Qt4 package update

pinkeen wrote:

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

#17 2015-08-12 08:07:09

etoyoc
Member
Registered: 2014-11-05
Posts: 3

Re: Qt4 artifacts possibly related to Qt4 package update

Installing jre8-openjdk and setting it as default environment (archlinux-java command) resolved this issue for me.

Offline

#18 2015-08-14 00:03:13

only-victor
Member
Registered: 2010-12-27
Posts: 7

Re: Qt4 artifacts possibly related to Qt4 package update

Installation jre8-openjdk resolved this problem fully. I tried and it worked.

Offline

#19 2015-08-14 14:11:06

pinkeen
Member
Registered: 2015-07-26
Posts: 3

Re: Qt4 artifacts possibly related to Qt4 package update

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

Board footer

Powered by FluxBB