RootX11ErrorHandler problem

Hello,

Same problem here :

$ root -l 
root [0] TBrowser bb
Error in <RootX11ErrorHandler>: BadAlloc (insufficient resources for operation) (TGFrame XID: 215, XREQ: 152)
TGFrame:        215

Running on 3.5.7-gentoo, using x11-base/xorg-server-1.13.1 and x11-base/xorg-x11-7.4-r2.
I can reproduce this problem with different window managers (KDE and xmonad) and with different root versions: sci-physics/root-5.32.03-r2 (x86) and with sci-physics/root-5.34.05 (~x86).
I compile with gcc, either v4.6.3 or v4.5.4.

‘free’ tells me that I am not running out of memory.
I see that a similar problem had been reported a long time ago (2004–2006)
[url]Root & mozilla
[url]What does “RootX11ErrorHandler: BadAlloc” mean?
[url]Error in <RootX11ErrorHandler>:
but I cannot see any solution reported there.

Any idea about how to fix this?

Thank you,

Davide