We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 678 - error on DirectFB
Summary: error on DirectFB
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: HG 2.0
Hardware: x86 Other
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 21:42 UTC by Eric Miranda
Modified: 2009-01-17 03:47 UTC (History)
2 users (show)

See Also:


Attachments
mylyn/context/zip (670 bytes, application/octet-stream)
2009-01-15 17:44 UTC, couriersud
Details
mylyn/context/zip (671 bytes, application/octet-stream)
2009-01-15 17:45 UTC, couriersud
Details
mylyn/context/zip (712 bytes, application/octet-stream)
2009-01-15 17:57 UTC, couriersud
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Miranda 2009-01-14 21:42:26 UTC
hi!

When I run a program i got following error on stdout.

./src/video/directfb/SDL_DirectFB_modes.c <452>: 
data->layer->SetConfiguration(data->layer, &config) 
Fusion IPC error detected! 
Segmentation fault 

The software developer said it´s an error from SDL.
Comment 1 couriersud 2009-01-15 14:24:57 UTC
Please post the output of "dfbinfo", "cat /etc/directfbrc" as well as the whole output from your application here.
Are you able to run native directfb applications such as dfbterm, df_andi or df_neo (packages dfbterm / dfb_examples)?
If you compiled directfb with "--enable-multi" did you do "modprobe fusion" ?
Comment 2 couriersud 2009-01-15 17:44:40 UTC
Created attachment 289 [details]
mylyn/context/zip
Comment 3 couriersud 2009-01-15 17:45:44 UTC
Created attachment 290 [details]
mylyn/context/zip

Test
Comment 4 couriersud 2009-01-15 17:57:59 UTC
Created attachment 291 [details]
mylyn/context/zip
Comment 5 Eric Miranda 2009-01-16 02:47:51 UTC
root@slackade:~# dfbinfo

     =======================|  DirectFB 1.0.1  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2009-01-07 14:09)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 3669)...
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 3672)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3673)...
(*) DirectFB/Input: Power Button (FF) (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3674)...
(*) DirectFB/Input: Power Button (CM) (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3675)...
(*) DirectFB/Input: PC Speaker (3) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3676)...
(*) DirectFB/Input: NOVATEK USB Keyboard (4) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3677)...
(*) DirectFB/Input: NOVATEK USB Keyboard (5) 0.1 (directfb.org)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 3678)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: nVidia NV44 (0441) 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)


Screen (00) NVidia Primary Screen           (primary screen)
   Caps: VSYNC POWER_MANAGEMENT

     Layer (00) FBDev Primary Layer             (primary layer)
        Type:    GRAPHICS
        Caps:    SURFACE BRIGHTNESS CONTRAST SATURATION

     Layer (01) NVidia Overlay
        Type:    VIDEO STILL_PICTURE
        Caps:    SURFACE SCREEN_LOCATION DEINTERLACING DST_COLORKEY BRIGHTNESS CONTRAST HUE SATURATION SCREEN_POSITION SCREEN_SIZE


Input (00) Keyboard                        (primary keyboard)
   Type: KEYBOARD
   Caps: KEYS

Input (13) NOVATEK USB Keyboard
   Type: KEYBOARD
   Caps: KEYS

Input (01) IMPS/2 Mouse                    (primary mouse)
   Type: MOUSE
   Caps: AXES BUTTONS
   Max. Axis: 2
   Max. Button: 2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

root@slackade:~# cat /usr/etc/directfbrc
# based on goredaimon's directfbrc
# goredaimon.blogspot.com
# Eric Miranda <microbiu@terra.com.br>
# Mon Oct 20 03:55:44 BRT 2008
depth=16
quiet
no-vt
no-banner
no-debug
no-debugmem
no-debugshm
no-trace
vsync-none
bg-color=000000
#disable-module=joystick
#disable-module=linux_input

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
root@slackade:~# advmenu
AdvanceMENU - Copyright (C) 1999-2008 by Andrea Mazzoleni

     =======================|  DirectFB 1.0.1  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2009-01-07 14:09)
(!) Direct/Modules: Unable to dlopen `/usr/lib/directfb-1.0-0/systems/libdirectfb_x11.so'!
    --> /usr/lib/directfb-1.0-0/systems/libdirectfb_x11.so: undefined symbol: dfb_surface_flip_buffers
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 3646)...
(!) Direct/Modules: Unable to dlopen `/usr/lib/directfb-1.0-0/inputdrivers/libdirectfb_penmount.so'!
    --> /usr/lib/directfb-1.0-0/inputdrivers/libdirectfb_penmount.so: undefined symbol: dfb_input_modules
(*) Direct/Modules: suppress module 'x11input'
(!) Direct/Modules: Module 'libdirectfb_x11input.so' did not register itself after loading! Trying default module constructor...
(!) Direct/Modules: ... even did not register after explicitly calling the module constructor!
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 3649)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3650)...
(*) DirectFB/Input: Power Button (FF) (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3651)...
(*) DirectFB/Input: Power Button (CM) (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3652)...
(*) DirectFB/Input: PC Speaker (3) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3653)...
(*) DirectFB/Input: NOVATEK USB Keyboard (4) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 3654)...
(*) DirectFB/Input: NOVATEK USB Keyboard (5) 0.1 (directfb.org)
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 3655)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) DirectFB/Graphics: nVidia NV44 (0441) 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
DirectFB Device Information
===========================
Name:           NV44 (0441)
Vendor:         nVidia
Driver Name:    nVidia NV4/NV5/NV10/NV20/NV30 Driver
Driver Vendor:  directfb.org
Driver Version: 0.6

Video memoory:  134217728

Blitting flags:

Drawing flags:

Acceleration flags:
(!) [ 3645:    0.000] --> Caught signal 11 (at 0x44, invalid address) <--
 (!!!)  *** WARNING [still objects in 'Layer Region Pool'] *** [object.c:231 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Layer Context Pool'] *** [object.c:231 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [setting window->stack = NULL] *** [default.c:2805 in wm_close_stack()]
 (!!!)  *** WARNING [still objects in 'Window Pool'] *** [object.c:231 in fusion_object_pool_destroy()]
 (!!!)  *** WARNING [still objects in 'Surface Pool'] *** [object.c:231 in fusion_object_pool_destroy()]
./src/video/directfb/SDL_DirectFB_mouse.c <180>:
        windata->window-> SetCursorShape(windata->window, curdata->surf, curdata->hotx, curdata->hoty)
        Resource was destroyed!
Segmentation fault

+++++++++++++++++++++++++++++++++++++++++++++

I have not dfbterm etc but I have sdlmame nice and running.

+++++++++++++++++++++++++++++++++++++++++++++

I didn´t compile with "--enable-multi". 

tnx by your reply!


Comment 6 couriersud 2009-01-16 13:42:28 UTC
a) You are obviously trying to migrate advmenu to SDL1.3.
b) The application is now crashing at a completely different location.

This issue may be related to using SDLs compat layer as well as simply that your changes to advmenu corrupt memory. Without a reproducible testcase there is no way to figure out what is going wrong here.
I will try to add more consistency checks to the code which crashes. This may help you to isolate the problem in advmenu.