Don't know if this would work, but could you run it from SSH? That way SSH would be your console and would show you the errors.draconis wrote:I've gotten directfb (1.6.0) to compile and compiled GTK with the directfb backend enabled. When I try launching the gtk-demo I get a black screen with a mouse pointer before it locks up. The black screen and mouse pointer never go away and I have to ssh in and reboot. Does anyone have a suggestion on how to troubleshoot this? Because I can't get back to the console I don't see any error messages (assuming there is one).
Code: Select all
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.6.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2012 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2012-07-24 03:57)
(*) Direct/Memcpy: Using libc memcpy()
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/FBDev: Found 'BCM2708 FB' (ID 0) with frame buffer at 0x49385000, 1875k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Logitech USB Receiver (1) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Logitech USB Receiver (2) 0.1 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
(*) DirectFB/Input: Hot-plug detection enabled with Input Hub Driver
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(*) FBDev/Mode: Setting 800x600 ARGB
(*) FBDev/Mode: Switched to 800x600 (virtual 800x600) at 32 bit (ARGB), pitch 3200
(*) FBDev/Mode: Setting 800x600 ARGB
(*) FBDev/Mode: Switched to 800x600 (virtual 800x600) at 32 bit (ARGB), pitch 3200
(!!!) *** UNIMPLEMENTED [fusion_get_fusionee_pid] *** [fusion.c:3124]
(gtk-demo:29339): Gdk-CRITICAL **: IA__gdk_drawable_get_colormap: assertion `GDK_IS_DRAWABLE (drawable)' failed
(*) Direct/Thread: Started 'EventBufferFeed' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
Segmentation fault
Code: Select all
(*) DirectFB/Graphics: GLES2 Acceleration - VideoCore IV HW 0.1 (Mark J Hood / Denis Oliver Kropp)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
2260024046: glGetError 0x502
(!) DirectFB/EGL: glGenTextures() failed! (error = 502)
(!) Core/SurfBuffer: Buffer allocation failed!
--> A general or unknown error occured
Code: Select all
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.6.1 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2012 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2012-08-07 08:11)
(*) Direct/Memcpy: Using libc memcpy()
(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (-1) [DEFAULT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/FBDev: Found 'BCM2708 FB' (ID 0) with frame buffer at 0x4d385000, 533k (MMIO 0x00000000, 0k)
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Started 'PS/2 Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Started 'Hotplug with Linux Input' (-1) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
(*) DirectFB/Input: Hot-plug detection enabled with Input Hub Driver
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
Code: Select all
$ sudo /opt/directfb/bin/dfbinfo
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.6.1 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2012 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2012-08-07 08:11)
(*) Direct/Memcpy: Using libc memcpy()
(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: Hot-plug detection enabled with Input Hub Driver
(*) DirectFB/Graphics: GLES2 Acceleration - VideoCore IV HW 0.1 (Mark J Hood / Denis Oliver Kropp)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
1465013987: glGetError 0x502
(!) DirectFB/EGL: glGenTextures() failed! (error = 502)
(!) Core/SurfBuffer: Buffer allocation failed!
--> A general or unknown error occured
(!) Core/LayerRegion: Could not lock region surface for SetRegion()!
--> A general or unknown error occured
(!) Core/LayerRegion: realize_region() in dfb_layer_region_flip_update() failed!
--> A general or unknown error occured
Screen (00) EGL Primary Screen (primary screen)
Caps: OUTPUTS
Output (0)
Caps: RESOLUTION
Resolutions:
Signals:
Layer (00) EGL Primary Layer (primary layer)
Type: GRAPHICS
Caps: SURFACE
Code: Select all
system=egl
mode=1280x720
depth=16
Code: Select all
(!) DirectFB/EGL: glGenTextures() failed! (error = 502)
(!) Core/SurfBuffer: Buffer allocation failed!
--> A general or unknown error occured
(!) DirectFB/Genefx: Could not lock destination!
--> The requested operation or an argument is (currently) not supported
(!) DirectFB/EGL: glGenTextures() failed! (error = 506)
(!) DirectFB/EGL: glGenTextures() failed! (error = 505)
Code: Select all
(*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
Code: Select all
system=egl
Code: Select all
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.6.1 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2012 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Multi Application Core. (2012-08-07 11:15)
(*) Direct/Memcpy: Using armasm_memcpy()
(*) Fusion/SHM: Using MADV_REMOVE (3.1.9.0 >= 2.6.19.2)
(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
(*) Direct/Thread: Started 'Fusion Deferred' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...
2092588314: * failed to add service - already in use?
Code: Select all
./configure --enable-fbdev=yes --disable-x11 --with-gfxdrivers='gles2' --enable-egl --disable-mesa --enable-debug EGL_CFLAGS='-I/opt/vc/include
-I/opt/vc/include/interface/vcos/pthreads' EGL_LIBS='-L/opt/vc/lib/ -lGLESv2 -lEGL' --with-inputdrivers='none' --enable-multi