• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Solved Qt resource overflow. Highly annoying. How to fix?

Snurg

Aspiring Daemon

Thanks: 234
Messages: 682

#1
Am I the only one who regularly experiences this annoying phenomenon?

When there are a few application windows open, one eventually reaches a point where Qt applications begin to show empty windows and menus, making working with Qt apps impossible.
arrrf.png


It is the same as with old Windows, when the GDI ran out of resources. With Windows 4, Microsoft fixed this by granting every app a separate 64kb GDI resource pool instead of having all apps share the same 64Kb GDI pool.

Atm there are only 67 windows open and this nuisance again begins...
(Of these are Qt: 21 Konsole, 1 K3b, 1 Dolphin, 4 Ark, 1 Kate, 7 Okular, 1 KWrite)
pages.png


Is there a way to increase the Qt resource buffer size?
 

p3rj

Member

Thanks: 19
Messages: 28

#2
I run KDE 5, so I tend to use a few QT applications (mostly QT5). Despite mostly running a few weeks without logging out or rebooting, I don't remember seeing this. Then again, my taskbar is mostly tidy, so I may just not run enough GUI applications in parallel to provoke this phenomenon.
 

Snurg

Aspiring Daemon

Thanks: 234
Messages: 682

#4
... so I may just not run enough GUI applications in parallel to provoke this phenomenon.
Yes, the phenomenon practically never happens with less than about 20-30 Qt windows open.
This session the phenomenon started when 36 Qt windows were open.

OT:
I'm not sure I've ever had 67 windows open at the same time.
It's just a side effect of using FVWM.
With taskbar-based DMs it's impossible to keep oversight with more than, say, about a dozen windows. With FVWM pager I order my desktop like a real physical desktop, making it easy to group tasks at a particular region. So I can keep order easily and change between apps with minimum clicks.

Changing screens is as easy as moving mouse over the screen border, windows get focus by moving the mouse pointer over it, and they auto-raise also. Thus I do need very few clicks (if at all) to switch between apps. Alternatively, accessing a particular program is as easy as clicking the window/screen on the pager.

Not having to deal with an annoying and confusing taskbar enables one to easily handle far more windows. This powerful approach in turn can fundamentally change work behavior.

A normal desktop is like having a pile of papers on your lap, always one at the top and all others obscured. When you want to switch to another window, you have to browse that pile, find the new window and bring it to top.
With FVWM, it is more like working on a desk sized 10x5 ft. With this you do not need to stack things, but can place everything nicely side-by-side and can access everything directly. So it becomes perfectly easy to handle more than 100 windows.

This way it becomes easy to have several projects open at the desktop, without things getting messy.
The memory footprint, currently 78MB, is very small, too. This is why I use FVWM, even though most apps I use are Qt or Gtk based.
 

Snurg

Aspiring Daemon

Thanks: 234
Messages: 682

#5
Just in case somebody else gets this problem, setting QT_X11_NO_MITSHM=1 seems to fix that issue.