Menu

#713 SDL port segfaults when openGL and scalers enabled

SDL
closed:fixed
None
5
2015-09-22
2015-09-20
Eugene
No

Linux Mint 17.2 / Core i7-2600K integrated GMA HD3000.
if "special scaler = none" all works good, but if you select any filter fceux will crash.

glxinfo | grep "OpenGL version"
OpenGL version string: 3.0 Mesa 10.1.3

~ $ fceux
Starting FCEUX 2.2.3 debug...
Loading /mnt/28AA884C239B49D6/Emulation/Nes_Roms/Rockman 5 - Blues no Wana! (J) [t1].nes...

PRG ROM: 16 x 16KiB
CHR ROM: 32 x 8KiB
ROM CRC32: 0x5d924a3b
ROM MD5: 0xccb5a45495a318f765a6a2b166bc3e39
Mapper #: 4
Mapper name: MMC3
Mirroring: Horizontal
Battery-backed: No
Trained: No

Power on
Initializing video...Initializing with OpenGL (Disable with '--opengl 0').
Video Mode: 1280 x 960 x 32 bpp
Paletted texture extension not found. Using slower texture format...
Loading SDL sound with pulse driver...
Initializing video...Initializing with OpenGL (Disable with '--opengl 0').
scalers not compatible with openGL mode.
Segfault

You can write me to 472-585-109 icq

Discussion

  • Lukas Sabota

    Lukas Sabota - 2015-09-20

    Does this occur with openGL disabled? The SDL scalers have never worked with openGL as far as I know. That being said, the sdl port should handle this better and show an error message stating that scalers are not supported with openGL instead of segfaulting

     
  • Lukas Sabota

    Lukas Sabota - 2015-09-20
    • summary: FCEUX crash on any video scaler --> SDL port segfaults when openGL and scalers enabled
    • status: open --> open:accepted
     
  • Eugene

    Eugene - 2015-09-20

    Does this occur with openGL disabled?
    No, but sometimes i have segfault when trying NTSC-filter.
    And emulator GUI is also broke when change filters.

     
  • zeromus

    zeromus - 2015-09-20

    use irc https://webchat.freenode.net/ not icq
    channel #fceu

     
  • Lukas Sabota

    Lukas Sabota - 2015-09-20

    prevention has been added in r3173 that should prevent opengl/scalers from running and segfaulting, but i will leave this bug open to investigate your other issues

     
  • Eugene

    Eugene - 2015-09-20

    Can i write here about all linux bugs that i've found?
    Okay,
    1. fceux-sdl looks for palettes in "/usr/share/fceux/palettes" by default,
    but can't do the same for luascripts in "/usr/share/fceux/luaScripts"
    2. lastest fceux don't compile on old ubuntu 10.04 EVEN when i disable all stuff (OpenGL, GTK UI, Movies etc) in SConstruct file. Since 2.2.2 compiled good.
    If you're interesting, i'll give you logs.

     
  • Lukas Sabota

    Lukas Sabota - 2015-09-21
    1. Are you referring to the GUI here?
    2. Please post logs of the compilation issue and the sconstruct options
     
  • Lukas Sabota

    Lukas Sabota - 2015-09-21
    1. I think you're referring to the open file dialog for luascripts - this is fixed in r3174.
     
  • Eugene

    Eugene - 2015-09-21
    1. Yes, i mean GUI.
    2. http://savepic.su/6097524.png - ubuntu 10.04 - all stuff disabled:

    BoolVariable('DEBUG', 'Build with debugging symbols', 1),
    BoolVariable('RELEASE', 'Set to 1 to build for release', 0),
    BoolVariable('FRAMESKIP', 'Enable frameskipping', 1),
    BoolVariable('OPENGL', 'Enable OpenGL support', 0),
    BoolVariable('LUA', 'Enable Lua support', 0),
    BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 0),
    BoolVariable('GTK3', 'Enable GTK3 GUI (SDL only)', 0),
    BoolVariable('NEWPPU', 'Enable new PPU core', 0),
    BoolVariable('CREATE_AVI', 'Enable avi creation support (SDL only)', 0),
    BoolVariable('LOGO', 'Enable a logoscreen when creating avis (SDL only)', 0),
    BoolVariable('SYSTEM_LUA','Use system lua instead of static lua provided with fceux', 0),
    BoolVariable('SYSTEM_MINIZIP', 'Use system minizip instead of static minizip provided with fceux', 0),
    BoolVariable('LSB_FIRST', 'Least signficant byte first (non-PPC)', 1),
    BoolVariable('CLANG', 'Compile with llvm-clang instead of gcc', 0),
    BoolVariable('SDL2', 'Compile using SDL2 instead of SDL 1.2 (experimental/non-functional)', 0)

     
  • Eugene

    Eugene - 2015-09-21

    Case 2: - default SConstruct file (fceux 3172).

    BoolVariable('DEBUG', 'Build with debugging symbols', 1),
    BoolVariable('RELEASE', 'Set to 1 to build for release', 0),
    BoolVariable('FRAMESKIP', 'Enable frameskipping', 1),
    BoolVariable('OPENGL', 'Enable OpenGL support', 1),
    BoolVariable('LUA', 'Enable Lua support', 1),
    BoolVariable('GTK', 'Enable GTK2 GUI (SDL only)', 1),
    BoolVariable('GTK3', 'Enable GTK3 GUI (SDL only)', 0),
    BoolVariable('NEWPPU', 'Enable new PPU core', 1),
    BoolVariable('CREATE_AVI', 'Enable avi creation support (SDL only)', 1),
    BoolVariable('LOGO', 'Enable a logoscreen when creating avis (SDL only)', 1),
    BoolVariable('SYSTEM_LUA','Use system lua instead of static lua provided with fceux', 0),
    BoolVariable('SYSTEM_MINIZIP', 'Use system minizip instead of static minizip provided with fceux', 0),
    BoolVariable('LSB_FIRST', 'Least signficant byte first (non-PPC)', 1),
    BoolVariable('CLANG', 'Compile with llvm-clang instead of gcc', 0),
    BoolVariable('SDL2', 'Compile using SDL2 instead of SDL 1.2 (experimental/non-functional)', 0)


    evgs@Aspire-1810T ~/FCEUX/fceultra-code-3172/fceu/trunk $ scons
    scons: Reading SConscript files ...
    platform: posix
    Checking for C library dw... yes
    Checking for C function asprintf()... yes
    Checking for inflate in C library z... yes
    Checking for C library SDL... yes
    Checking for C library gtk-x11-2.0... yes
    Checking for C library gd... yes
    Checking for C library GL... yes


    But finally i've got: http://savepic.su/6095476.png

     

    Last edit: Eugene 2015-09-21
  • Lukas Sabota

    Lukas Sabota - 2015-09-22

    Ubuntu 10.04 comes with a really old version of GTK that does not include GTK methods used in recent fceux versions. For 10.04 you can either install an updated version of gtk (probably a pain), use the fceux ubuntu package in 10.04, or upgrade ubuntu

    PS: when posting text, please post the text and not an image of the text; thanks

     
  • Lukas Sabota

    Lukas Sabota - 2015-09-22
    • status: open:accepted --> closed:fixed
     

Log in to post a comment.