Comment 0 for bug 111299

Revision history for this message
In , Bsenf (bsenf) wrote :

User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.8) Gecko/20050512
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.8) Gecko/20050512

I'm using X-Terminal with limited ressources and I can check the allocated
memory with some hotkeys. So I can see that the allocated memory step by step
will shrink with every image I see in the foreground but also with the amount of
cached image.
When I clear the cache, the memory allocated at the X11 server on my X-Terminal
will be freed, but with loading next image the same bad beheavior begins.
--------
Old Versions like netscape 4.78 or netscape7 (gecko 2002xxxx) or opera are not
affected with this bug.
--------

Reproducible: Always

Steps to Reproduce:
1. visit this or any other webpage with many images
2. view this images at any order
3. you can see only one image at a time
4. but at 20th or 30th image mozilla can't create any new image - e.g. crash

Actual Results:
X Error of failed request: BadAlloc (insufficient resources for operation)
  Major opcode of failed request: 53 (X_CreatePixmap)
  Serial number of failed request: 118408
  Current serial number in output stream: 118587
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request: 66 (X_PolySegment)
  Resource id in failed request: 0x8001194
  Serial number of failed request: 118478
  Current serial number in output stream: 118591

Expected Results:
The cached images maybe hold in memory for performance, but have to release X11
pixmap or have to call XDestroyImage before going to memory.