Denis Oliver Kropp schrieb:
> Dirk E. Wagner schrieb:
>> (-) [Main Thread 9.920] ( 350) Core/Parts: Going to
>> shutdown 'wm' core...
>> (-) [Main Thread 9.930] ( 350) Core/Parts: Going to
>> shutdown 'layers' core...
>> (-) [Main Thread 9.930] ( 350) Core/Parts: Going to
>> shutdown 'screens' core...
>> (-) [Main Thread 9.930] ( 350) Core/Parts: Going to
>> shutdown 'gfxcard' core...
>> (-) [Main Thread 9.930] ( 350) Core/Parts: Going to
>> shutdown 'input' core...
>> (-) [Main Thread 9.930] ( 350) Core/Input:
>> dfb_input_shutdown( 0x1007f5b8, no emergency )
>> (-) [Main Thread 9.940] ( 350) Direct/Thread: Canceling 353.
>>
>> Now the app hangs.
>> I removed all refreneces in the app to lirc, still the same prob.
>> I removed libdirectfb_lirc.o from my static linked app, everything is
>> fine, the app terminates.
>> Why can't the MainThread terminate the LIRC-Thread? :-(((((
>> Maybe a static link prob?
>
> Or a bug in the input driver.
>
I made simple test app:
#include <directfb.h>
int main (int argc, char **argv) {
IDirectFB *dfb;
DirectFBInit (&argc, &argv);
DirectFBCreate (&dfb);
dfb->Release (dfb);
}
Compiled as follows:
mips-linux-uclibc-g++ -static dfbtest.o
/usr/local/mips-linux-uclibc/lib/directfb-1.0-0/wm/libdirectfbwm_default.o
/usr/local/mips-linux-uclibc/lib/directfb-1.0-0/systems/libdirectfb_fbdev.o
/usr/local/mips-linux-uclibc/lib/directfb-1.0-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.o
/usr/local/mips-linux-uclibc/lib/directfb-1.0-0/inputdrivers/libdirectfb_lirc.o
/usr/local/mips-linux-uclibc/lib/libfreetype.a
/usr/local/mips-linux-uclibc/lib/libdirectfb.a
/usr/local/mips-linux-uclibc/lib/libfusion.a
/usr/local/mips-linux-uclibc/lib/libdirect.a
/usr/local/mips-linux-uclibc/target_root/usr/lib/libpthread.a -o dfbtest
Result is:
=======================| DirectFB 1.0.0-rc1 |=======================
(c) 2001-2006 United Cultures of Earth - go for outer space!
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(-) [ NO NAME 0.000] ( 412) DirectFB/Core: dfb_core_create...
(-) [ NO NAME 0.000] ( 412) Direct/Main:
direct_initialize() called...
(-) [Main Thread 0.000] ( 412) Direct/Main: ...initializing
now.
(-) [Main Thread 0.010] ( 412) Direct/Signals: Initializing...
(*) DirectFB/Core: Single Application Core. (2006-10-20 19:58) [ DEBUG ]
(-) [Main Thread 0.010] ( 412) Direct/Main:
direct_initialize() called...
(-) [Main Thread 0.010] ( 412) Direct/Main: ...2 references
now.
(-) [Main Thread 0.010] ( 412) Direct/Signals: Adding handler
0x46ec68 for signal -1 with context 0x10053cd0...
(-) [Main Thread 0.020] ( 412) DirectFB/Core: Initializing...
(-) [Main Thread 0.050] ( 412) Core/Parts: Going to
initialize 'clipboard' core...
(-) [Main Thread 0.050] ( 412) Core/Parts: Going to
initialize 'colorhash' core...
(-) [Main Thread 0.050] ( 412) Core/Parts: Going to
initialize 'system' core...
(-) [VT Switcher 0.110] ( 414) Direct/Signals: Blocking all
signals from now on!
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 414)...
(-) [VT Switcher 0.130] ( 414) DirectFB/fbdev/vt: vt_thread (-1)
(-) [Main Thread 0.150] ( 412) Core/Parts: Going to
initialize 'input' core...
(-) [Main Thread 0.160] ( 412) Core/Input:
dfb_input_initialize( 0x10053cd0, (nil), 0x10058228 )
(-) [Main Thread 0.160] ( 412) Core/Input: init_devices(
0x10053cd0 )
(-) [Main Thread 0.160] ( 412) Core/Input: -> probing
'LIRC Driver'...
(-) [Main Thread 0.170] ( 412) Core/Input: -> 1
available device(s) provided by 'LIRC Driver'.
(-) [LiRC Input 0.190] ( 415) Direct/Signals: Blocking all
signals from now on!
(*) Direct/Thread: Running 'LiRC Input' (INPUT, 415)...
(-) [Main Thread 0.190] ( 412) Core/Input: make_id( 0x03 )
(*) DirectFB/Input: LIRC Device 0.2 (convergence integrated media GmbH)
(-) [Main Thread 0.200] ( 412) Core/Input:
input_add_device( 0x10058348 )
(-) [Main Thread 0.200] ( 412) Core/Parts: Going to
initialize 'gfxcard' core...
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (convergence
integrated media GmbH)
(-) [Main Thread 0.200] ( 412) Core/SurfaceMgr: Added heap for
storage 0x1 (offset 0, length 2093056).
(-) [Main Thread 0.200] ( 412) Core/Parts: Going to
initialize 'screens' core...
(-) [Main Thread 0.210] ( 412) Core/Parts: Going to
initialize 'layers' core...
(-) [Main Thread 0.210] ( 412) DirectFB/FBDev: dfb_fbdev_set_mode
(surface: (nil), mode: 0x7fff7898, buffermode: 1)
(-) [Main Thread 0.220] ( 412) DirectFB/FBDev: 640x480 75Hz
32bit 720x 576 interlaced
(-) [Main Thread 0.230] ( 412) DirectFB/FBDev: dfb_fbdev_set_mode
(surface: (nil), mode: 0x7fff7898, buffermode: 1)
(-) [Main Thread 0.230] ( 412) DirectFB/FBDev: 640x480 75Hz
15bit 720x 576 interlaced
(-) [Main Thread 0.240] ( 412) DirectFB/FBDev: dfb_fbdev_set_mode
(surface: (nil), mode: (nil), buffermode: 1)
(-) [Main Thread 0.250] ( 412) Core/Parts: Going to
initialize 'wm' core...
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
(-) [Main Thread 0.250] ( 412) DirectFB/Core: Core
successfully created.
(-) [Main Thread 0.250] ( 412) IDirectFB:
IDirectFB_Construct( 0x10059830, 0x10053cd0 )
(-) [Main Thread 0.260] ( 412) Core/Layers:
dfb_layer_get_primary_context (FBDev Primary Layer, activate) <- active: -1
(-) [Main Thread 0.260] ( 412) Core/Layers:
dfb_layer_create_context (FBDev Primary Layer)
(-) [Main Thread 0.270] ( 412) Fusion/Object: == Layer
Context Pool ==
(-) [Main Thread 0.270] ( 412) Fusion/Object: -> added
0x10059920
(-) [Main Thread 0.280] ( 412) Core/Layers:
dfb_layer_context_create -> 0x10059920
(-) [Main Thread 0.280] ( 412) Core/WindowStack:
dfb_windowstack_create( 0x10059920 )
(-) [Main Thread 0.280] ( 412) Core/Input:
dfb_input_attach_global( 0x10058348, 0, 0x10053468, 0x10053680 )
(-) [Main Thread 0.280] ( 412) Core/WindowStack: -> 0x10053468
(-) [Main Thread 0.300] ( 412) Core/WindowStack:
dfb_windowstack_resize( 0x10053468, 720x576 )
(-) [Main Thread 0.310] ( 412) Core/Layers:
dfb_layer_activate_context (FBDev Primary Layer, 0x10059920)
(-) [Main Thread 0.310] ( 412) Core/Layers:
dfb_layer_context_activate (0x10059920)
(-) [Main Thread 0.320] ( 412) Core/WindowStack:
dfb_windowstack_repaint_all( 0x10053468 )
(-) [Main Thread 0.320] ( 412) Core/Layers:
dfb_layer_get_primary_context (FBDev Primary Layer, don't activate) <-
active: 0
(-) [Main Thread 0.320] ( 412) DirectFB/FBDev: dfb_fbdev_set_mode
(surface: (nil), mode: 0x10059af8, buffermode: 4)
(-) [Main Thread 0.320] ( 412) DirectFB/FBDev: dfb_fbdev_set_mode
(surface: (nil), mode: 0x10059af8, buffermode: 4)
(-) [Main Thread 0.320] ( 412) Core/WindowStack:
dfb_windowstack_set_background_mode( 0x10053468, 0 )
(-) [Main Thread 0.330] ( 412) Core/WindowStack:
dfb_windowstack_set_background_color( 0x10053468, 0x00000000 )
(-) [Main Thread 0.330] ( 412) Core/WindowStack:
dfb_windowstack_set_background_mode( 0x10053468, 1 )
(-) [Main Thread 0.330] ( 412) Core/WindowStack:
dfb_windowstack_repaint_all( 0x10053468 )
(-) [Main Thread 0.330] ( 412) IDirectFB:
IDirectFB_Release( 0x10059830 )
(-) [Main Thread 0.330] ( 412) IDirectFB:
IDirectFB_Destruct( 0x10059830 )
(-) [Main Thread 0.340] ( 412) Fusion/Object: == Layer
Context Pool ==
(-) [Main Thread 0.340] ( 412) Fusion/Object: -> dead
object 0x10059920 [1]
(-) [Main Thread 0.340] ( 412) Fusion/Object: -> calling
destructor...
(-) [Main Thread 0.340] ( 412) Core/Layers: destroying
context 0x10059920 (FBDev Primary Layer, active)
(-) [Main Thread 0.340] ( 412) Core/Layers:
dfb_layer_remove_context (FBDev Primary Layer, 0x10059920)
(-) [Main Thread 0.340] ( 412) Core/Layers:
dfb_layer_context_deactivate (0x10059920)
(-) [Main Thread 0.360] ( 412) Core/WindowStack:
dfb_windowstack_destroy( 0x10053468 )
(-) [Main Thread 0.360] ( 412) Core/Input:
dfb_input_detach_global( 0x10058348, 0x10053680 )
(-) [Main Thread 0.360] ( 412) Fusion/Object: -> destructor
done.
(-) [Main Thread 0.360] ( 412) DirectFB/Core: dfb_core_destroy...
(-) [Main Thread 0.380] ( 412) Direct/Signals: Removing
handler 0x46ec68 for signal -1 with context 0x10053cd0...
(-) [Main Thread 0.380] ( 412) DirectFB/Core: Shutting down...
(-) [Main Thread 0.380] ( 412) Fusion/Object: == Window Pool ==
(-) [Main Thread 0.380] ( 412) Fusion/Object: -> destroying
pool...
(-) [Main Thread 0.390] ( 412) Fusion/Object: -> syncing...
(-) [Main Thread 0.390] ( 412) Fusion/Object: -> locking...
(-) [Main Thread 0.390] ( 412) Fusion/Object: -> pool
destroyed (Window Pool)
(-) [Main Thread 0.390] ( 412) Fusion/Object: == Layer Region
Pool ==
(-) [Main Thread 0.390] ( 412) Fusion/Object: -> destroying
pool...
(-) [Main Thread 0.390] ( 412) Fusion/Object: -> syncing...
(-) [Main Thread 0.400] ( 412) Fusion/Object: -> locking...
(-) [Main Thread 0.400] ( 412) Fusion/Object: -> pool
destroyed (Layer Region Pool)
(-) [Main Thread 0.400] ( 412) Fusion/Object: == Layer
Context Pool ==
(-) [Main Thread 0.400] ( 412) Fusion/Object: -> destroying
pool...
(-) [Main Thread 0.400] ( 412) Fusion/Object: -> syncing...
(-) [Main Thread 0.400] ( 412) Fusion/Object: -> locking...
(-) [Main Thread 0.440] ( 412) Fusion/Object: -> pool
destroyed (Layer Context Pool)
(-) [Main Thread 0.440] ( 412) Fusion/Object: == Surface Pool ==
(-) [Main Thread 0.440] ( 412) Fusion/Object: -> destroying
pool...
(-) [Main Thread 0.440] ( 412) Fusion/Object: -> syncing...
(-) [Main Thread 0.440] ( 412) Fusion/Object: -> locking...
(-) [Main Thread 0.450] ( 412) Fusion/Object: -> pool
destroyed (Surface Pool)
(-) [Main Thread 0.450] ( 412) Fusion/Object: == Palette Pool ==
(-) [Main Thread 0.450] ( 412) Fusion/Object: -> destroying
pool...
(-) [Main Thread 0.450] ( 412) Fusion/Object: -> syncing...
(-) [Main Thread 0.450] ( 412) Fusion/Object: -> locking...
(-) [Main Thread 0.450] ( 412) Fusion/Object: -> pool
destroyed (Palette Pool)
(-) [Main Thread 0.460] ( 412) Core/Parts: Going to
shutdown 'wm' core...
(-) [Main Thread 0.470] ( 412) Core/Parts: Going to
shutdown 'layers' core...
(-) [Main Thread 0.480] ( 412) Core/Parts: Going to
shutdown 'screens' core...
(-) [Main Thread 0.480] ( 412) Core/Parts: Going to
shutdown 'gfxcard' core...
(-) [Main Thread 0.480] ( 412) Core/Parts: Going to
shutdown 'input' core...
(-) [Main Thread 0.500] ( 412) Core/Input:
dfb_input_shutdown( 0x10053cd0, no emergency )
(-) [Main Thread 0.500] ( 412) Direct/Thread: Canceling 415.
App hangs, LIRC can't be cancelled.
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users