Xlib: resource ID allocation space exhausted!

Wojciech Kromer wojciech.kromer at dgt.com.pl
Mon May 22 00:22:23 PDT 2006


I have simple gtk+ program (included).
It fails with "Xlib: resource ID allocation space exhausted!" just next
to x-error.

Any idea, what's wrong?
How to debug it?
Is it xlib problem, or my application error, or gtk bug?
Is there any way to find who's eating xlib resources?


...............................................................................
I have two machines called A and  B

A) x86_64  2GHz, 1GB RAM ,

# X -vsersion
This is a pre-release version of the The X.Org Foundation X11.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the The X.Org Foundation "monolithic tree" CVS
repository hosted at http://www.freedesktop.org/Software/xorg/
X Window System Version 6.8.99.900 (6.9.0 RC 0)
Release Date: 01 August 2005 + cvs
X Protocol Version 11, Revision 0, Release 6.8.99.900
Build Operating System: Linux 2.6.12-12mdksmp x86_64 [ELF]
Current Operating System: Linux kromblack 2.6.12-12mdkcustom #1 Thu Oct
27 21:27:13 CEST 2005 x86_64
Build Date: 16 September 2005
          Before reporting problems, check http://wiki.X.Org
          to make sure that you have the latest version.
Module Loader present

....................................................

B) i386  600MHz (via mini-itx), 128MB RAM,

# X -version

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.12-12mdkcustom i686
Current Operating System: Linux fcm 2.6.15.6 #37 PREEMPT Thu Apr 20
22:41:53 CEST 2006 i686
Build Date: 03 May 2006
          Before reporting problems, check http://wiki.x.org
          to make sure that you have the latest version.
Module Loader present

==================================


Yes, I know it's gtk program, but:
- it fails after aprox 420 000 refreshes (1.5 hours) when displayed on B
machine,
    but run on A or B (does not matter)
- it runs when displayed on A machine (run on A or B)
- i've tried a lot of all gtk libraries, and at least 3 versions of x on
B machine


I have tried also x.org 6.9.0 on B machine.


=================================

Here is  gdb log:

(gdb) bt
#0  0x08048c83 in fcm_x_error ()
#1  0xb785e604 in _XError (dpy=0x8057900, rep=0xbfea2bc0) at XlibInt.c:2886
#2  0xb785cb63 in _XReply (dpy=0x8057900, rep=0xbfea2bc0, extra=0,
discard=1)
      at XlibInt.c:1815
#3  0xb785c39a in _XGetMiscCode (dpy=0x8057900) at XlibInt.c:1491
#4  0xb785c40c in _XIDHandler (dpy=0x8057900) at XlibInt.c:1506
#5  0xb78822f5 in XCreatePixmap (dpy=0x8057900, d=3219794672, width=385,
      height=47, depth=24) at CrPixmap.c:61
#6  0xb7bd5e14 in IA__gdk_pixmap_new (drawable=0x80610c8, width=385,
      height=47, depth=24) at gdkpixmap-x11.c:175
#7  0xb7bb0a32 in IA__gdk_window_begin_paint_region (window=0x80610c8,
      region=0x80d3200) at gdkwindow.c:976
#8  0xb7d59563 in IA__gtk_main_do_event (event=0xbfea2d90) at gtkmain.c:1377
#9  0xb7bb389e in gdk_window_process_updates_internal (window=0x80610c8)
      at gdkwindow.c:2303
#10 0xb7bb39ee in IA__gdk_window_process_all_updates () at gdkwindow.c:2366
#11 0xb7cb7e1e in gtk_container_idle_sizer (data=0x0) at gtkcontainer.c:1113
#12 0xb7a92873 in g_idle_dispatch (source=0x80c4da8, callback=0x8057900,
      user_data=0xbfea2af0) at gmain.c:3796
#13 0xb7a8f802 in g_main_dispatch (context=0x8077a00) at gmain.c:1916
#14 0xb7a90888 in IA__g_main_context_dispatch (context=0x8077a00)
      at gmain.c:2466
#15 0xb7a90bc0 in g_main_context_iterate (context=0x8077a00, block=1,
      dispatch=1, self=0x8090ed8) at gmain.c:2547
#16 0xb7a91163 in IA__g_main_loop_run (loop=0x80cb4b8) at gmain.c:2751
#17 0xb7d58e33 in IA__gtk_main () at gtkmain.c:999
#18 0x08048f05 in main ()
(gdb) c
Continuing.
fcm ignoring 'BadRequest (invalid request code or no such operation)'
(serial 23494472 error_code 1 request_code 0 minor_code 0 )
Xlib: resource ID allocation space exhausted!









-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.c
URL: <http://lists.x.org/archives/xorg/attachments/20060522/31cc8402/attachment.c>


More information about the xorg mailing list