XServer out of memory issues

Jim Kronebusch jim at winonacotter.org
Thu Dec 20 23:53:17 GMT 2007


> > Well, I have a "shim" file somewhere written by a user on the xorg
> > mailing list.  Jim McQuillan (likely a good source :-) recommended
> > against such a hack because it is a very sloppy solution.  Basically the
> > shim script is used to call on the application and then dumps the cache
> > data for the app since the app doesn't have the capability.  If you want
> > to play around with it let me know and I'll send it to you.  I did try it
> > to launch firefox and it worked pretty well, but I never tried it with
> > OpenOffice.  Even though it isn't a good solution, it might get you by
> > until a good one is found.
> 
> Could you post it (maybe make sure the originator doesn't mind)?   Perhaps
> a few of us could package up the sloppy solution for people who need it
> badly.  I wouldn't suggest it become part of edubuntu, but it might be
> useful for some people to have the fix.  Perhaps we should also have the
> patched firefox-3 version.
> 
> That bugzilla entry on firefox seems to have gone silent.

Attached is the shim file created by Brian Paul.  Below are his instructions on how to
use it.  I just did a quick proof of concept with it, but no further testing.  I assume
this could be used with any application, not just Firefox.

Jim

-----------original message from Brian--------------------

unpack the tarball and compile.  Then, 'export LD_PRELOAD=./shim.so'.
Then run an app, like mozilla.

You may see some error messages, then:

SHIM: XOpenDisplay((null))
SHIM: XOpenDisplay((null)) returning 0x9249588
SHIM: intercepted XCreatePixmap (3 bytes, total = 3 bytes)
SHIM: intercepted XCreatePixmap (3 bytes, total = 6 bytes)
SHIM: intercepted XFreePixmap (3 bytes)
SHIM: intercepted XCreatePixmap (128 bytes, total = 131 bytes)
SHIM: intercepted XCreatePixmap (128 bytes, total = 259 bytes)
SHIM: intercepted XCreatePixmap (4056 bytes, total = 4315 bytes)
[...]
SHIM: intercepted XCreatePixmap (408342 bytes, total = 410669 bytes)
SHIM: Pixmap memory limit (200000 bytes) hit, exiting!

The limit is only 200000 bytes for testing.  You can change it in the
code.  You can also disable the fprintf() calls if you want.

Only lightly tested, but seems to work.


-- 
This message has been scanned for viruses and
dangerous content by the Cotter Technology 
Department, and is believed to be clean.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: shim.tar.gz
Type: application/x-gzip
Size: 1638 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/edubuntu-users/attachments/20071220/1291aa0f/attachment.bin 


More information about the edubuntu-users mailing list