[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Mac OSX Hang - more info

From: Michael Petch
Subject: [Bug-gnubg] Mac OSX Hang - more info
Date: Thu, 22 Apr 2004 03:14:56 -0600

This morning I did a bit of investigation on Mac OSX. On a whim I ended
up setting a breakpoint on gdk_x_error to see if there was anything
unusual (When it hangs there is no X error put on the console, so this
was a shot in the dark).

Now I don't know if this has anything to do with the problems. But here
is a backtrace of one error near startup (It seems that the first call
to gdk_pixmap_colormap_create_from_xpm_d in the app causes this):

#0  0x00c10fd8 in gdk_x_error ()
#1  0x85f1614c in _XError ()
#2  0x85f14884 in _XReply ()
#3  0x85f0faa8 in XSync ()
#4  0x00c0a7fc in _gdk_image_new_for_depth ()
#5  0x00bc6700 in allocate_scratch_images ()
#6  0x00bc689c in scratch_image_info_for_depth ()
#7  0x00bc6b2c in _gdk_image_get_scratch ()
#8  0x00bfc820 in draw_with_pixmaps ()
#9  0x00bfcb60 in gdk_x11_draw_pixbuf ()
#10 0x00bbe064 in gdk_draw_pixbuf ()
#11 0x00bce440 in gdk_pixmap_draw_pixbuf ()
#12 0x00bbe064 in gdk_draw_pixbuf ()
#13 0x00bced00 in gdk_pixmap_colormap_new_from_pixbuf ()
#14 0x00bcf2f4 in gdk_pixmap_colormap_create_from_xpm_d ()
#15 0x000c3980 in image_from_xpm_d (xpm=0x2414c4, pw=0xbfffd2c0) at
#16 0x000c4364 in ToolbarNew () at gtktoolbar.c:412
#17 0x0008b0c4 in InitGTK (argc=0x650398, argv=0x22448f0) at
#18 0x0000ca3c in real_main (closure=0x2809400, argc=1, argv=0xbffffcd4)
at gnubg.c:7735
#19 0x0000d5d4 in main (argc=41980928, argv=0x20) at gnubg.c:8295

Occasionally I see (and when I get a backtrace of it I will post it)
another eror right when you click on the Settings/Appearance menu
option. What I do remember is that gdk_x_error stops trying to Setup the
Colour Picker.

With all this in mind, I happened to run gnubg with the --sync flag.
(This makes sure that GDK/X errors are processed synchronously) -
normally they are asynchronous, and can occur well after the operation.

Now the fnny thing is that if I run gnubg with --sync, the GDK_X_error
breakpoints get hit,BUT the hangs disappear. Yes for some reason --sync
seems to make the problem disappear.


Mike Petch
CApp::Sysware Consulting Ltd.
Suite 1002,1140-15th Ave SW.
Calgary, Alberta, Canada.
T2R 1K6.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]