When i run Directfb tutorial Drawing Text got from
http://www.directfb.org/docs/DirectFB_Tutorials/text.html,
the program freezed at DFBCHECK (primary->SetFont (primary, font));,
not go forward.
my directfb version is 1.3.0 and my machine is qemu versatile emulator.
with the same environment, i can display image and run dfbtest_window
test program.
the following is my source code change for my environment and the
debug output( not complete).
code:
DFBCHECK (dfb->CreateFont (dfb, "./decker.ttf", &font_dsc, &font));
debug log:
the program freezed at (-) [Main Thread 4.693] ( 293)
Core/SurfBuffer: -> locked 1x now
there are no logs since then.
(!) DirectFB/FBDev: Panning display failed (x=0 y=0 ywrap=0 vbl=1)!
--> Invalid argument
(-) [Main Thread 3.568] ( 293) Core/Layers: -> Going
to copy portion...
(-) [Main Thread 3.568] ( 293) Core/Layers: -> Copying
content from back to front buffer...
(-) [Main Thread 3.570] ( 293) Core/GraphicsOps:
dfb_gfxcard_blit( 0, 0- 640x 480 -> 0, 0- 640x 480,
0x400eb580 )
(-) [Main Thread 3.570] ( 293) Core/GraphicsOps:
dfb_gfxcard_state_check( 0x400eb580, 0x00010000 ) [0,0 - 639,479]
(-) [Main Thread 3.570] ( 293) Core/GfxState:
dfb_gfxcard_state_check( 0x400eb580, 0x00010000 ) blitting 0x1b170 ->
0x1b170
(-) [Main Thread 3.571] ( 293) Core/GfxState: <- checked
0x00000000, accel 0x00000000, modified 0x00033fff, mod_hw 0x00000000
(-) [Main Thread 3.571] ( 293) Core/SurfBuffer:
dfb_surface_buffer_lock( 0x184e0, 0x02, 0x400eb62c ) <- 640x480 RGB16
[0]
(-) [Main Thread 3.572] ( 293) Core/SurfBuffer: -> CPU WRITE
(-) [Main Thread 3.572] ( 293) Core/SurfBuffer:
dfb_surface_allocation_update()
(-) [Main Thread 3.572] ( 293) Core/SurfBuffer: ->
increasing serial...
(-) [Main Thread 3.573] ( 293) Core/SurfPoolLock:
dfb_surface_pool_lock( 0x16270 [3], 0x19870 )
(-) [Main Thread 3.573] ( 293) FBDev/SurfLock: fbdevLock( 0x184e0 )
(-) [Main Thread 3.573] ( 293) FBDev/SurfLock: -> offset
0, pitch 1280, addr 0x40abe000, phys 0x07a00000
(-) [Main Thread 3.574] ( 293) Core/SurfBuffer: -> locked 2x now
(-) [Main Thread 3.574] ( 293) Core/SurfBuffer:
dfb_surface_buffer_lock( 0x18498, 0x01, 0x400eb654 ) <- 640x480 RGB16
[1]
(-) [Main Thread 3.574] ( 293) Core/SurfBuffer: -> CPU READ
(-) [Main Thread 3.574] ( 293) Core/SurfacePool:
dfb_surface_pools_allocate( 0x18498, 0x1 )
(-) [Main Thread 3.575] ( 293) Core/SurfacePool: -> 640x480
RGB16 - PRIVATE LAYER EXTERNAL
(-) [Main Thread 3.575] ( 293) Core/SurfacePool:
dfb_surface_pools_negotiate( 0x18498 [RGB16], 0x01, max 4 )
(-) [Main Thread 3.584] ( 293) Core/SurfacePool: ->
0x01 0x101 required
(-) [Main Thread 3.585] ( 293) Core/SurfacePool: -> [0]
0x00 0x11f (0) [Shared Memory]
(-) [Main Thread 3.585] ( 293) Core/SurfacePool: => OK
(-) [Main Thread 3.585] ( 293) Core/SurfacePool: => 1 pools available
(-) [Main Thread 3.585] ( 293) Core/SurfacePool: => 0 pools
out of memory
(-) [Main Thread 3.586] ( 293) Core/SurfacePool:
dfb_surface_pool_allocate( 0x13ff0 [0], 0x18498 )
(-) [Main Thread 3.586] ( 293) Core/SurfacePool: -> 0x1b340
(-) [Main Thread 3.587] ( 293) Core/SurfacePool: -> 0x1b340
(-) [Main Thread 3.587] ( 293) Core/SurfBuffer:
dfb_surface_allocation_update()
(-) [Main Thread 3.587] ( 293) Core/SurfPoolLock:
dfb_surface_pool_lock( 0x13ff0 [0], 0x1b340 )
(-) [Main Thread 3.588] ( 293) Core/SurfBuffer: -> locked 1x now
(-) [Main Thread 3.607] ( 293) Core/GraphicsOps: => 0,
0- 640x 480 -> 0, 0- 640x 480
(-) [Main Thread 3.638] ( 293) Core/SurfBuffer:
dfb_surface_buffer_unlock( 0x400eb62c )
(-) [Main Thread 3.639] ( 293) Core/SurfPoolLock:
dfb_surface_pool_unlock( 0x16270 [3], 0x19870 )
(-) [Main Thread 3.639] ( 293) FBDev/SurfLock: fbdevUnlock( 0x184e0 )
(-) [Main Thread 3.639] ( 293) Core/SurfBuffer:
dfb_surface_buffer_unlock( 0x400eb654 )
(-) [Main Thread 3.643] ( 293) Core/SurfPoolLock:
dfb_surface_pool_unlock( 0x13ff0 [0], 0x1b340 )
(-) [Main Thread 3.643] ( 293) Core/Layers: -> done.
(-) [Main Thread 3.643] ( 293) Core/LayerContext:
dfb_layer_context_unlock( 0x19358 )
(-) [Main Thread 3.644] ( 293) Core/LayerContext:
dfb_layer_context_unlock( 0x19358 )
(-) [Main Thread 3.644] ( 293) Core/LayerContext:
dfb_layer_context_unlock( 0x19358 )
(-) [Main Thread 3.644] ( 293) Direct/Mem: + 240
bytes [idirectfb.c:749 in IDirectFB_CreateSurface()]
(-) [Main Thread 3.645] ( 293) Direct/Mem: + 612
bytes [idirectfbsurface_layer.c:212 in
IDirectFBSurface_Layer_Construct()]
(-) [Main Thread 3.646] ( 293) IDirectFBSurfaceL:
IDirectFBSurface_Layer_Construct( 0x1b3b8 )
(-) [Main Thread 3.646] ( 293) IDirectFBSurface:
IDirectFBSurface_Construct( 0x1b3b8 )
(-) [Main Thread 3.648] ( 293) IDirectFBSurface:
IDirectFBSurface_GetSize( 0x1b3b8 )
begin create font
(-) [Main Thread 3.676] ( 293) IDirectFB:
IDirectFB_CreateFont( 0x18858, './decker.ttf' )
(-) [Main Thread 3.679] ( 293) Direct/Interface:
DirectGetInterface( 0xbef29cac, 'IDirectFBFont', '(null)', 0x4010788c,
0xbef29ca8 )
(-) [Main Thread 3.723] ( 293) Direct/Interface:
DirectRegisterInterface( 0x402a11b8 )
(-) [Main Thread 3.725] ( 293) Direct/Mem: + 40
bytes [interface.c:87 in DirectRegisterInterface()]
(-) [Main Thread 3.726] ( 293) Direct/Interface: ->
IDirectFBFont | DGIFF
(-) [Main Thread 3.726] ( 293) Direct/Mem: + 75
bytes [interface.c:262 in DirectGetInterface()] -> 0x1cb58
"/opt/lib/directfb-1.3-0/interfaces/IDirectFBFont/libidirectfbfont_dgiff.so"
(-) [Main Thread 3.862] ( 293) Direct/Interface:
DirectRegisterInterface( 0x40bfb534 )
(-) [Main Thread 3.869] ( 293) Direct/Mem: + 40
bytes [interface.c:87 in DirectRegisterInterface()]
(-) [Main Thread 3.885] ( 293) Direct/Interface: ->
IDirectFBFont | Default
(-) [Main Thread 3.886] ( 293) Direct/Mem: + 77
bytes [interface.c:262 in DirectGetInterface()] -> 0x1cfc0
"/opt/lib/directfb-1.3-0/interfaces/IDirectFBFont/libidirectfbfont_default.so"
(-) [Main Thread 4.082] ( 293) Direct/Interface:
DirectRegisterInterface( 0x40bc9afc )
(-) [Main Thread 4.105] ( 293) Direct/Mem: + 40
bytes [interface.c:87 in DirectRegisterInterface()]
(-) [Main Thread 4.116] ( 293) Direct/Interface: ->
IDirectFBFont | FT2
(-) [Main Thread 4.129] ( 293) Direct/Mem: + 73
bytes [interface.c:262 in DirectGetInterface()] -> 0x1d720
"/opt/lib/directfb-1.3-0/interfaces/IDirectFBFont/libidirectfbfont_ft2.so"
(-) [Main Thread 4.145] ( 293) - - :
DirectFB/FontFT2: Probe font `./decker.ttf'.
(-) [Main Thread 4.147] ( 293) - - :
DirectFB/FontFT2: Initializing the FreeType2 library.
(-) [Main Thread 4.488] ( 293) - - :
DirectFB/FontFT2: Releasing the FreeType2 library.
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
(-) [Main Thread 4.510] ( 293) Direct/Mem: + 64
bytes [idirectfb.c:1218 in IDirectFB_CreateFont()]
(-) [Main Thread 4.516] ( 293) - - :
DirectFB/FontFT2: Construct font from file `./decker.ttf' (index 0) at
pixel size 0 x 48.
(-) [Main Thread 4.525] ( 293) - - :
DirectFB/FontFT2: Initializing the FreeType2 library.
(-) [Main Thread 4.546] ( 293) Core/Font: dfb_font_create()
(-) [Main Thread 4.555] ( 293) Direct/Mem: + 1000
bytes [fonts.c:82 in dfb_font_create()]
(-) [Main Thread 4.563] ( 293) Direct/Hash: Creating
hash table with initial capacity of 163...
(-) [Main Thread 4.574] ( 293) Direct/Mem: + 20
bytes [hash.c:98 in direct_hash_create()]
(-) [Main Thread 4.584] ( 293) Direct/Mem: + 1304
bytes [hash.c:105 in direct_hash_create()]
(-) [Main Thread 4.590] ( 293) - - :
DirectFB/FontFT2: height = 60, ascender = 47, descender = -12,
maxadvance = 62
(-) [Main Thread 4.598] ( 293) Direct/Mem: + 33808
bytes [idirectfbfont_ft2.c:856 in Construct()]
(-) [Main Thread 4.671] ( 293) Core/Font:
dfb_font_register_encoding()
(-) [Main Thread 4.672] ( 293) Core/Font:
dfb_font_register_encoding()
(-) [Main Thread 4.672] ( 293) Direct/Mem: + 28
bytes [fonts.c:494 in dfb_font_register_encoding()]
(-) [Main Thread 4.673] ( 293) Direct/Mem: + 7
bytes [fonts.c:500 in dfb_font_register_encoding()] -> 0x1c730 "
Latin1"
(-) [Main Thread 4.673] ( 293) Direct/Mem: + 8
bytes [fonts.c:509 in dfb_font_register_encoding()]
(-) [Main Thread 4.674] ( 293) Direct/Mem: + 12
bytes [idirectfbfont.c:620 in IDirectFBFont_Construct()]
begin setfont
(-) [Main Thread 4.682] ( 293) IDirectFBSurface:
IDirectFBSurface_FillTriangles( 0x1b3b8 )
(-) [Main Thread 4.683] ( 293) Core/GraphicsOps:
dfb_gfxcard_filltriangles( 0x22480 [111544], 0x1b54c )
(-) [Main Thread 4.683] ( 293) Core/GraphicsOps:
dfb_gfxcard_state_check( 0x1b54c, 0x00000008 ) [0,0 - 639,479]
(-) [Main Thread 4.684] ( 293) Core/GfxState:
dfb_gfxcard_state_check( 0x1b54c, 0x00000008 ) drawing -> 0x1b170
(-) [Main Thread 4.684] ( 293) Core/GfxState: <- checked
0x00000000, accel 0x00000000, modified 0x00033fff, mod_hw 0x00000000
(-) [Main Thread 4.684] ( 293) Core/GraphicsOps:
dfb_gfxcard_state_check( 0x1b54c, 0x00000001 ) [0,0 - 639,479]
(-) [Main Thread 4.689] ( 293) Core/GfxState:
dfb_gfxcard_state_check( 0x1b54c, 0x00000001 ) drawing -> 0x1b170
(-) [Main Thread 4.689] ( 293) Core/GfxState: <- checked
0x00000000, accel 0x00000000, modified 0x00033fff, mod_hw 0x00000000
(-) [Main Thread 4.690] ( 293) Direct/Mem: + 364
bytes [generic.c:6728 in gAcquire()]
(-) [Main Thread 4.691] ( 293) Core/SurfBuffer:
dfb_surface_buffer_lock( 0x18498, 0x02, 0x1b5f8 ) <- 640x480 RGB16 [1]
(-) [Main Thread 4.691] ( 293) Core/SurfBuffer: -> CPU WRITE
(-) [Main Thread 4.692] ( 293) Core/SurfBuffer:
dfb_surface_allocation_update()
(-) [Main Thread 4.692] ( 293) Core/SurfBuffer: ->
increasing serial...
(-) [Main Thread 4.693] ( 293) Core/SurfPoolLock:
dfb_surface_pool_lock( 0x13ff0 [0], 0x1b340 )
(-) [Main Thread 4.693] ( 293) Core/SurfBuffer: -> locked 1x now
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users