Expose event crashes app



Hi all,

I am developing a application, which is able to play back several jpeg/mpeg
files simultaneously in a single window(like NxN cell table), I mainly use
gdk_draw_rgb_image to render decoded frame. It works quite well for a while
but fails to stand for more then 2 week. It will crash with segv after long
run(eg, 2 weeks or more). The back trace always looks the the same, and it
seems that it has nothing to do with my code, so that I have no idea where
to start the investigation. The app is built on gtk+- 2.4.0(fedora core 2
gtk2-2.4.0-1.i386.rpm).

According to the bt msg, segv happens when expose event is triggered. I have
searched through the mail archive without finding any similar situation.
First I'd like to know that whether this is due to the old gtk-2 library. If
it is not, where is the good start point for investigation. Any clue is
appreciated.

#0  0xb7c22a9a in g_object_remove_weak_pointer (object=0x8f74780,
   weak_pointer_location=0x8f53448 ) at gobject.c:1548
#1  0xb7d02d61 in queue_item_free (item=0x8f53448) at gdkgeometry-x11.c :914
#2  0xb7d030a5 in _gdk_window_process_expose (window=0x9146260,
serial=88452651, area=0x20)
   at gdkgeometry-x11.c:1051
#3  0xb7cfcb9d in gdk_event_translate (display=0x82d7010, event=0x8e484f0,
xevent=0xbfffe340,
   return_exposes=0) at gdkevents-x11.c:1484
#4  0xb7cfd6fd in _gdk_events_queue (display=0x82d7010) at gdkevents-x11.c
:2067
#5  0xb7cfd891 in gdk_event_dispatch (source=0x20, callback=0,
user_data=0x0)
   at gdkevents-x11.c:2127
#6  0xb7bb2e4a in g_main_dispatch (context=0x82e1d38) at gmain.c:1895
#7  0xb7bb3f28 in g_main_context_dispatch (context=0x82e1d38) at gmain.c
:2441
#8  0xb7bb4260 in g_main_context_iterate (context=0x82e1d38, block=1,
dispatch=1, self=0x830fa10)
   at gmain.c:2522
#9  0xb7bb48a3 in g_main_loop_run (loop=0x8e49790) at gmain.c:2726
#10 0xb7e39403 in gtk_main () at gtkmain.c:1172
#11 0x0809f138 in main (argc=1, argv=0xbfffe664) at main.cc:252



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