Disko Forum logo Login  |  Register  |  Lost Password

Posts: 14

segfault 8 Years ago  
I keep getting this Segmentation Fault when running my disko application.
For now it's just a simple menu with png's.
Sometimes it works, sometimes it doesn't.
When I gdb it, I get the error at the following place:

(*) DirectFB/Core: Multi Application Core. (2010-03-04 08:58)
[New Thread 0xb71aeae0 (LWP 1625)]
(*) Fusion/SHM: Using MADV_REMOVE ( >=
[New Thread 0xb7096b90 (LWP 1626)]
(*) Direct/Thread: Started 'Fusion Dispatch' (1626) [MESSAGING OTHER/OTHER 0/0] <8388608>...
[New Thread 0xb6895b90 (LWP 1627)]
(*) Direct/Thread: Started 'X11 Input' (1627) [INPUT OTHER/OTHER 0/0] <8388608>...
(*) DirectFB/Input: X11 Input 0.1 (directfb.org)
(*) DirectFB/Genefx: MMX detected and enabled
(*) Direct/Modules: suppress module 'gl'
(*) DirectFB/Graphics: MMX Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: SaWMan 0.2 (directfb.org)
(*) SaWMan: Initializing stack 0x20127700 for tier 0x25583000, 0x0, layer 0, context 0x20018000 [3]...
(*) SaWMan/Init: Layer 0: 800x600, RGB32, options: 0
(*) SaWMan/Init: Border 0: 800x600, RGB32, options: 8

SET OPTIONS 0x00000000!!!!
(*) X11/Display: Using XShm.
[New Thread 0xb5567dd0 (LWP 1628)]
DISKO: Pixelformat ARGB is used for surfaces.
DISKO: Pixelformat RGB32 is used for windows with no alphachannel.
[New Thread 0xb4d1bb90 (LWP 1629)]
[New Thread 0xb4cf9dd0 (LWP 1630)]
DISKO: Pixelformat ARGB is used for windows with alphachannel.
[Thread 0xb4d1bb90 (LWP 1629) exited]
Error: cannot read external file ./item.png
(*) Direct/Interface: Loaded 'PNG' implementation of 'IDirectFBImageProvider'.
[New Thread 0xb4d1bb90 (LWP 1631)]
DISKO: Using accelerated fill rectangle to ARGB.
DISKO: Using accelerated blend rectangle to ARGB.
DISKO: Using accelerated stretch & blend ARGB to ARGB.
(*) Direct/Interface: Loaded 'FT2' implementation of 'IDirectFBFont'.
DISKO: Using accelerated blend ARGB to ARGB.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb4d1bb90 (LWP 1631)]
0xb7d16038 in MMSFBSurface::extendedUnlock (this=0x8091300, src=0x0, dst=0x8091300, dst_planes=0xb4d1ab50) at src/mmsgui/fb/mmsfbsurface.cpp:1733
1733 sb->buffers[sb->currbuffer_write] = *dst_planes;

It looks like it has something to do with the buffering in DirectFB but I don't have a clue what I am doing wrong.
I've been juggling with some settings in the diskorc.xml file. First I changed the buffermode to FRONTONLY instead of BACKSYSTEM. I also tried some different pixelformats. Changing the buffermode seemed to help a bit, but apparently not enough.

I'm a bit frustrated now ...
  The administrator has disabled public write access.

Posts: 14

Re:segfault 8 Years ago  
This has to move to bugs.
Apparently I am more of a developer than I thought
I changed some lines in mmsfbsurface.cpp:

line 1733 now reads:
if( sb && sb->numbuffers > 0)
sb->buffers[sb->currbuffer_write] = *dst_planes;

That seemed to do the trick
  The administrator has disabled public write access.
Powered by FireBoard
get the latest posts directly to your desktop