Gtk+ on DirectFb (sample example fails with "DirectFb/Fbdev Caught Signal 11")



Hi All,

Is the latest GTK+ up to date for building with DirectFB? I tried building it but failed with some multiple definition errors. after resolving them, small demo example crashes.

Do i have to apply any patches to use gtk+ successfully on directFB??

I have built gtk+ on directFb 1.2 and tried to test it with sample application but it fails with following error:

(*) DirectFB/Core: Single Application Core. (2008-12-16 09:14)
(*) Direct/Thread: Started 'VT Switcher' (345) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'Keyboard Input' (346) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Surface: Allocated 640x480 16 bit RGB16 buffer (index 0) at offset 0 and pitch 1280.
(!) DirectFB/FBDev: Panning display failed (x=0 y=0 ywrap=0 vbl=1)!
    --> Invalid argument
(!) [  342:    0.000] --> Caught signal 11 (at 0x3c, invalid address) <--
 (!!!)  *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Surface Pool'] *** [object.c:241 in fusion_object_pool_destroy()]
Aborted


Any idea, how it can be resolved?? 


Thanks in advance,
Arun

I use DirectFB-1.2.6 and here is simple example i tried:

#include <gtk/gtk.h>

int main( int argc, char *argv[])
{
      GtkWidget *window;

        gtk_init(&argc, &argv);

          window = gtk_window_new(GTK_WINDOW_
TOPLEVEL);
            gtk_widget_show(window);

          gtk_main();

            return 0;
}
 

Here is the stack trace for application crash:
Program received signal SIGSEGV, Segmentation fault.
_gdk_windowing_window_init () at gdkwindow-directfb.c:417
(gdb) bt
#0  _gdk_windowing_window_init () at gdkwindow-directfb.c:417
#1  0x403ce21c in gdk_display_open (display_name=<value optimized out>) at gdkdisplay-directfb.c:136
#2  0x403abc50 in gdk_display_open_default_libgtk_only () at gdk.c:291
#3  0x40144648 in gtk_init_check (argc=<value optimized out>, argv=<value optimized out>) at gtkmain.c:952
#4  0x40144660 in gtk_init (argc=0x25008, argv=0x11ad8) at gtkmain.c:987
#5  0x000086f4 in main (argc=1, argv=0xbea10e94) at test.c:7





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