Hello,

I've been trying to run directFB on Xilinx boards with Zynq-ARM processor.
I've compiled the directFB with directFB-examples with the older
Codesourcery compiler (arm-xilinx-linux-gnueabi toolchain; version
2011.09-50 of Xilinx SDK) and examples work flawlessly.

I've wanted to move to the newer compiler since the one I mentioned above
is very old. When I compile directFB with newest compiler (2013.02 of
Xilinx SDK) examples can't be started and "df_dok" example exits with this
message:

    zynq> ./df_dok
    (*) Direct/Thread: Started 'SigHandler' (808) [CRITICAL - OTHER/0]
<8388608>...

       ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.7.0
|~~~~~~~~~~~~~~~~~~~~~~~~~~
            (c) 2012-2013  DirectFB integrated media GmbH
            (c) 2001-2013  The world wide DirectFB Open Source Community
            (c) 2000-2004  Convergence (integrated media) GmbH
          ----------------------------------------------------------------

    (*) DirectFB/Core: Multi Application Core. (2013-08-08 09:10) [ DEBUG ]
    (*) Direct/Memcpy: Using libc memcpy()
    (*) Fusion/SHM: Using MADV_REMOVE (3.8.0.0 >= 2.6.19.2)
    (*) Fusion/SHM: Shared root (0) is 1440 bytes [0x1000 @ 0x20000000]
    (*) Direct/Thread: Started 'Fusion Dispatch' (809) [MESSAGING -
OTHER/0] <838860
    8>...
    (*) Direct/Thread: Started 'Fusion Deferred' (810) [MESSAGING -
OTHER/0] <838860
    8>...
    (*) Direct/Thread: Started 'Linux Input' (811) [INPUT - OTHER/0]
<8388608>...
    (*) DirectFB/Input: Logitech USB Keyboard (1) 0.1 (directfb.org)
    (*) Direct/Thread: Started 'Linux Input' (812) [INPUT - OTHER/0]
<8388608>...
     (*) DirectFB/Input: Logitech USB Keyboard (2) 0.1 (directfb.org)
    (*) Direct/Thread: Started 'Hotplug with Linux Input' (813) [INPUT -
OTHER/0] <8
    388608>...
    (*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
    ___ driver_probe accelerator_no = 0
    (*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
    (*) Direct/Thread: Started 'Dummy Display' (814) [OUTPUT - OTHER/0]
<8388608>...
    (*) DirectFB/Core/WM: SaWMan 0.2 (directfb.org)
    (*) Direct/Thread: Started 'Genefx' (815) [DEFAULT - OTHER/0]
<8388608>...
    (*) SaWMan: Initializing stack 0x2109a800 for tier 0x224b3000, 0x0,
layer 0, con
    text 0x20091000 [537464864]...
    (*) SaWMan/Init: Layer  0:  8x8, ARGB, options: 0
    (*) SaWMan/Init: Border 0:  8x8, ARGB, options: 8
    (*) Direct/Interface: Loaded 'PNG' implementation of
'IDirectFBImageProvider'.
    (*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.

/home/zplesivcak/build_scripts/directFB/DirectFB-examples-1.7.0/src/df_dok.c
<18
    62>:
            (#) DirectFBError [dfb->CreateSurface( dfb, &dsc, &swirl )]: An
invalid
    argument has been specified
     (!!!)  *** WARNING [Application exited without deinitialization of
DirectFB!] *
    **
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/core/core.c:1635
    in dfb_core_deinit_check()]
    Interface instances remaining (9):
      - 'IDirectFB' at 0x2bbc0 (dfb) allocated in DirectFBCreate
(/home/zplesivcak/b
    uild_scripts/directFB/DirectFB-1.7.0/src/directfb.c: 221)
      - 'IDirectFBEventBuffer' at 0x32ed8 (iface) allocated in
IDirectFB_CreateInput
    EventBuffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectf
    b.c: 1362)
      - 'IDirectFBSurface' at 0x33610 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1020)
       - 'IDirectFBSurface' at 0x4da48 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1100)
      - 'IDirectFBFont' at 0x4ef70 (ifont) allocated in
IDirectFBFont_CreateFromBuff
    er
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/media/idirectfbfo
    nt.c: 1017)
      - 'IDirectFBFont' at 0x60640 (ifont) allocated in
IDirectFBFont_CreateFromBuff
    er
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/media/idirectfbfo
    nt.c: 1017)
      - 'IDirectFBSurface' at 0x70d18 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1100)
      - 'IDirectFBDataBuffer' at 0x60548 (iface) allocated in
IDirectFB_CreateDataBu
    ffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c: 15
    37)
      - 'IDirectFBImageProvider' at 0x512c8 (imageprovider) allocated in
IDirectFBIm
    ageProvider_CreateFromBuffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1
    .7.0/src/media/idirectfbimageprovider.c: 213)
    (!) DirectFB/Core: Some objects remain alive, application or internal
ref counti
    ng issue!
    (-) [Main Thread       20.764,799] (  806) DirectFB/Core:
- Object
    s in 'GraphicsState Pool' -
    (-) [Main Thread       20.765,076] (  806) DirectFB/Core:
      0x
    20093800 [id 3] ref 0x20093820 (single 1) identity 1 owners[] {flags
0x00000000,
     modified 0x3f3fffff, mod_hw 0x00000000, dest NULL, source NULL}
    (-) [Main Thread       20.765,168] (  806) DirectFB/Core:
      0x
    20095000 [id 4] ref 0x20095020 (single 1) identity 1 owners[] {flags
0x00000000,
     modified 0x3f3fffff, mod_hw 0x00000000, dest NULL, source NULL}
    (-) [Main Thread       20.765,278] (  806) DirectFB/Core:
      0x
    20095800 [id 5] ref 0x20095820 (single 1) identity 1 owners[] {flags
0x00000000,
     modified 0x3f3fffff, mod_hw 0x00000000, dest NULL, source NULL}
    (-) [Main Thread       20.765,334] (  806) DirectFB/Core:
- Object
    s in 'Layer Context Pool' -
    (-) [Main Thread       20.765,407] (  806) DirectFB/Core:
      0x
    20091000 [id 1] ref 0x20091020 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.765,463] (  806) DirectFB/Core:
      0x
    20091400 [id 2] ref 0x20091420 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.765,499] (  806) DirectFB/Core:
- Object
    s in 'Layer Region Pool' -
    (-) [Main Thread       20.765,555] (  806) DirectFB/Core:
      0x
    20092000 [id 1] ref 0x20092020 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.765,610] (  806) DirectFB/Core:
      0x
    20092c00 [id 2] ref 0x20092c20 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.765,647] (  806) DirectFB/Core:
- Object
    s in 'Palette Pool' -
    (-) [Main Thread       20.765,684] (  806) DirectFB/Core:
- Object
    s in 'Surface Pool' -
    (-) [Main Thread       20.765,739] (  806) DirectFB/Core:
      0x
    20091c00 [id 1] ref 0x20091c20 (single 2) identity 1 owners[] {}
    (-) [Main Thread       20.765,794] (  806) DirectFB/Core:
      0x
    20094000 [id 2] ref 0x20094020 (single 3) identity 1 owners[] {}
    (-) [Main Thread       20.765,831] (  806) DirectFB/Core:
      0x
    20094800 [id 3] ref 0x20094820 (single 2) identity 1 owners[] {}
    (-) [Main Thread       20.765,887] (  806) DirectFB/Core:
      0x
    20096000 [id 4] ref 0x20096020 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.765,942] (  806) DirectFB/Core:
      0x
    20096800 [id 5] ref 0x20096820 (single 2) identity 1 owners[] {}
    (-) [Main Thread       20.765,979] (  806) DirectFB/Core:
- Object
    s in 'Surface Allocation Pool' -
    (-) [Main Thread       20.766,034] (  806) DirectFB/Core:
      0x
    20091800 [id 1] ref 0x20091820 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,089] (  806) DirectFB/Core:
      0x
    20094400 [id 3] ref 0x20094420 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,163] (  806) DirectFB/Core:
      0x
    20096c00 [id 4] ref 0x20096c20 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,218] (  806) DirectFB/Core:
      0x
    20096400 [id 5] ref 0x20096420 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,255] (  806) DirectFB/Core:
- Object
    s in 'Surface Buffer Pool' -
    (-) [Main Thread       20.766,310] (  806) DirectFB/Core:
      0x
    20092e00 [id 1] ref 0x20092e20 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,366] (  806) DirectFB/Core:
      0x
    20092a00 [id 2] ref 0x20092a20 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,421] (  806) DirectFB/Core:
      0x
    20092800 [id 3] ref 0x20092820 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,458] (  806) DirectFB/Core:
      0x
    20092600 [id 4] ref 0x20092620 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,513] (  806) DirectFB/Core:
      0x
    20092400 [id 5] ref 0x20092420 (single 1) identity 1 owners[] {}
    (-) [Main Thread       20.766,550] (  806) DirectFB/Core:
- Object
    s in 'Surface Client Pool' -
    (-) [Main Thread       21.099,933] (  806) DirectFB/Core:
- Object
    s in 'Window Pool' -
    Interface instances remaining (9):
      - 'IDirectFB' at 0x2bbc0 (dfb) allocated in DirectFBCreate
(/home/zplesivcak/b
    uild_scripts/directFB/DirectFB-1.7.0/src/directfb.c: 221)
      - 'IDirectFBEventBuffer' at 0x32ed8 (iface) allocated in
IDirectFB_CreateInput
    EventBuffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectf
    b.c: 1362)
      - 'IDirectFBSurface' at 0x33610 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1020)
       - 'IDirectFBSurface' at 0x4da48 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1100)
      - 'IDirectFBFont' at 0x4ef70 (ifont) allocated in
IDirectFBFont_CreateFromBuff
    er
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/media/idirectfbfo
    nt.c: 1017)
      - 'IDirectFBFont' at 0x60640 (ifont) allocated in
IDirectFBFont_CreateFromBuff
    er
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/media/idirectfbfo
    nt.c: 1017)
      - 'IDirectFBSurface' at 0x70d18 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1100)
      - 'IDirectFBDataBuffer' at 0x60548 (iface) allocated in
IDirectFB_CreateDataBu
    ffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c: 15
    37)
      - 'IDirectFBImageProvider' at 0x512c8 (imageprovider) allocated in
IDirectFBIm
    ageProvider_CreateFromBuffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1
    .7.0/src/media/idirectfbimageprovider.c: 213)
     (!!!)  *** WARNING [zombie 0x20092c00 [2], refs 1 (in Layer Region
Pool) => ref
     id 0x20092c20] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib/
    fusion/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20091000 [1], refs 1 (in Layer Context
Pool) => re
    f id 0x20091020] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib
    /fusion/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20091400 [2], refs 1 (in Layer Context
Pool) => re
    f id 0x20091420] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib
    /fusion/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20093800 [3], refs 1 (in GraphicsState
Pool) => re
    f id 0x20093820] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib
    /fusion/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20095000 [4], refs 1 (in GraphicsState
Pool) => re
    f id 0x20095020] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib
    /fusion/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20095800 [5], refs 1 (in GraphicsState
Pool) => re
    f id 0x20095820] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib
    /fusion/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20094000 [2], refs 2 (in Surface Pool) =>
ref id 0
    x20094020] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib/fusio
    n/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20094800 [3], refs 2 (in Surface Pool) =>
ref id 0
    x20094820] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib/fusio
    n/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20096000 [4], refs 1 (in Surface Pool) =>
ref id 0
    x20096020] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib/fusio
    n/object.c:284 in fusion_object_pool_destroy()]
     (!!!)  *** WARNING [zombie 0x20096800 [5], refs 2 (in Surface Pool) =>
ref id 0
    x20096820] ***
[/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/lib/fusio
    n/object.c:284 in fusion_object_pool_destroy()]
    Interface instances remaining (9):
      - 'IDirectFB' at 0x2bbc0 (dfb) allocated in DirectFBCreate
(/home/zplesivcak/b
    uild_scripts/directFB/DirectFB-1.7.0/src/directfb.c: 221)
      - 'IDirectFBEventBuffer' at 0x32ed8 (iface) allocated in
IDirectFB_CreateInput
    EventBuffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectf
    b.c: 1362)
      - 'IDirectFBSurface' at 0x33610 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1020)
      - 'IDirectFBSurface' at 0x4da48 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1100)
      - 'IDirectFBFont' at 0x4ef70 (ifont) allocated in
IDirectFBFont_CreateFromBuff
    er
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/media/idirectfbfo
    nt.c: 1017)
      - 'IDirectFBFont' at 0x60640 (ifont) allocated in
IDirectFBFont_CreateFromBuff
    er
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/media/idirectfbfo
    nt.c: 1017)
      - 'IDirectFBSurface' at 0x70d18 (iface) allocated in
IDirectFB_CreateSurface (
    /home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c:
1100)
      - 'IDirectFBDataBuffer' at 0x60548 (iface) allocated in
IDirectFB_CreateDataBu
    ffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1.7.0/src/idirectfb.c: 15
    37)
      - 'IDirectFBImageProvider' at 0x512c8 (imageprovider) allocated in
IDirectFBIm
    ageProvider_CreateFromBuffer
(/home/zplesivcak/build_scripts/directFB/DirectFB-1
    .7.0/src/media/idirectfbimageprovider.c: 213)


For reference, here is the successful run when compiled with older compiler:

    zynq> ./df_dok
    (*) Direct/Thread: Started 'SigHandler' (807) [CRITICAL - OTHER/0]
<8388608>...

       ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.7.0
|~~~~~~~~~~~~~~~~~~~~~~~~~~
            (c) 2012-2013  DirectFB integrated media GmbH
            (c) 2001-2013  The world wide DirectFB Open Source Community
            (c) 2000-2004  Convergence (integrated media) GmbH
          ----------------------------------------------------------------

    (*) DirectFB/Core: Multi Application Core. (2013-07-31 14:40)
    (*) Direct/Memcpy: Using libc memcpy()
    (*) Fusion/SHM: Using MADV_REMOVE (3.8.0.0 >= 2.6.19.2)
    (*) Fusion/SHM: Shared root (0) is 1440 bytes [0x1000 @ 0x20000000]
    (*) Direct/Thread: Started 'Fusion Dispatch' (808) [MESSAGING -
OTHER/0] <838860
    8>...
    (*) Direct/Thread: Started 'Fusion Deferred' (809) [MESSAGING -
OTHER/0] <838860
    8>...
    (*) Direct/Thread: Started 'VT Switcher' (812) [CRITICAL - OTHER/0]
<8388608>...
    (*) Direct/Thread: Started 'VT Flusher' (813) [DEFAULT - OTHER/0]
<8388608>...
    (*) DirectFB/FBDev: Found 'Xylon FB1' (ID 0) with frame buffer at
0x31fa4000, 25
    920k (MMIO 0x40030000, 24k)
    (*) Direct/Thread: Started 'Linux Input' (814) [INPUT - OTHER/0]
<8388608>...
    (*) DirectFB/Input: Logitech USB Keyboard (1) 0.1 (directfb.org)
     (*) Direct/Thread: Started 'Linux Input' (815) [INPUT - OTHER/0]
<8388608>...
    (*) DirectFB/Input: Logitech USB Keyboard (2) 0.1 (directfb.org)
    (*) Direct/Thread: Started 'Hotplug with Linux Input' (816) [INPUT -
OTHER/0] <8
    388608>...
    (*) DirectFB/Input: Hot-plug detection enabled with Linux Input Driver
    ___ driver_probe accelerator_no = 0
    (*) DirectFB/Graphics: Generic Software Rasterizer 0.7 (directfb.org)
    (*) DirectFB/Core/WM: SaWMan 0.2 (directfb.org)
    (*) Direct/Thread: Started 'Genefx' (817) [DEFAULT - OTHER/0]
<8388608>...
    (*) SaWMan: Initializing stack 0x2109a800 for tier 0x224b3000, 0x0,
layer 0, con
    text 0x20091000 [537464864]...
    (*) SaWMan/Init: Layer  0:  1024x768, ARGB, options: 0
    (*) SaWMan/Init: Border 0:  1024x768, ARGB, options: 8
    (*) Direct/Interface: Loaded 'PNG' implementation of
'IDirectFBImageProvider'.
    (*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
    (*) FBDev/Mode: Setting 1024x768 ARGB
    (*) FBDev/Mode: Switched to 1024x768 (virtual 1024x768) at 32 bit
(ARGB), pitch
    8192
    (*) Direct/Interface: Using 'GIF' implementation of
'IDirectFBImageProvider'.

    Benchmarking 256x256 on 1024x743 ARGB (32bit)...

     Anti-aliased Text                              3.039 secs (   88.845
KChars/sec)
     [100.3%]
    ^C(!) [SigHandler        35.468,834] (  807) Direct/Signals:
     -->
    Caught signal 2 (sent by the kernel) <--
    Anti-aliased Text (blend)                      3.000 secs ( 1371.600
KChars/sec)
     [100.0%]
    ...

Can someone help me with detecting where is the problem?

Thank you very much,
Zoran
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to