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

Re: gtk crash



The progressbar has always been a problem with DFB: i've never seen it work under GTKDFB and i think because of the same reason you've mentioned above. Only after switching to X the progressbar started to work properly, without even the need to touch the old code. progress_bar_menubox = 0x6b74 seems to be right: is a pointer to the gtk box where the progressbar and its sourronding frame is displayed and should never be NULL nor change during operations.
Anyway i'm not sure about how the progressbar is destroyed

here is the error:
Caught signal 11 (at 0x6b74, invalid address)

I found out that the crash happens at 1458:
1456		if(data->progress_bar_menubox != NULL)
1457			{
1458			gtk_widget_destroy(GTK_WIDGET(data->progress_bar_menubox));
1459			data->progress_bar_menubox = NULL;
1460			}

the segfaulting line is 1458: tomorrow i'll have a closer look at the GTK developer reference guide.

attilio


Davide Viti wrote:
inside gtk.c
	static int gtk_initialize(struct frontend *obj, struct configuration *conf)

before the following is reached;
	obj->data = NEW(struct frontend_data);
(gdb) p *(struct frontend_data *)obj.data
$42 = {window = 0x0, target_box = 0x0, info_box = 0x0, menu_box = 0x0, button_next = 0x0, button_prev = 0x0, progress_bar = 0x0, progress_bar_menubox = 0x0, progress_bar_frame = 0x0, setters = 0x0, button_val = 0, ask_jump_confirmation = false, dummy_main_menu = false, jump_target = '\0' <repeats 39 times>, q_main = 0x0}

after the call to NEW()
p *(struct frontend_data *)obj.data
$46 = {window = 0x4015b11c, target_box = 0x4015b11c, info_box = 0x6564632f, menu_box = 0x6e6f6362, button_next = 0x72662f66, button_prev = 0x65746e6f, progress_bar = 0x672f646e, progress_bar_menubox = 0x6b74, progress_bar_frame = 0x0, setters = 0x0, button_val = 0, ask_jump_confirmation = false, dummy_main_menu = false, jump_target = '\0' <repeats 39 times>, q_main = 0x0}

as you can see
progress_bar_menubox = 0x6b74

and it is never changed until the crash

hope this helps,

ciao

Davide



Reply to: