Skip to content

Segfault when loading from Retroarch (OSX) #367

@zach-morris

Description

@zach-morris

When attempting to load content from Retroarch gui chailove causes a segfault. When loading from the command line it works just fine.

From command line (works):

xxxs-MacBook-Pro:~ xxx$ /Applications/RetroArch.app/Contents/MacOS/RetroArch -L "/Users/xxx/Documents/RetroArch/cores/chailove_libretro.dylib" "/Users/xxx/Downloads/NyanCat.chailove"
[INFO] [recording] twitch streaming key empty
[INFO] Redirecting save file to "/Users/xxx/Documents/RetroArch/saves/NyanCat.srm".
[INFO] Redirecting savestate to "/Users/xxx/Documents/RetroArch/states/NyanCat.state".
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES 
Built: Mar  6 2019
[INFO] Version: 1.7.6
[INFO] =================================================
[INFO] Loading dynamic libretro core from: "/Users/xxx/Documents/RetroArch/cores/chailove_libretro.dylib"
[INFO] [overrides] no core-specific overrides found at /Users/xxx/Library/Application Support/RetroArch/config/ChaiLove/ChaiLove.cfg.
[INFO] [overrides] no content-dir-specific overrides found at /Users/xxx/Library/Application Support/RetroArch/config/ChaiLove/Downloads.cfg.
[INFO] [overrides] no game-specific overrides found at /Users/xxx/Library/Application Support/RetroArch/config/ChaiLove/NyanCat.cfg.
[INFO] Shaders: preset directory: /Applications/RetroArch.app/Contents/Resources/shaders/presets
[INFO] Shaders: no game-specific preset found at /Applications/RetroArch.app/Contents/Resources/shaders/presets/ChaiLove/NyanCat.cgp.
[INFO] Shaders: no game-specific preset found at /Applications/RetroArch.app/Contents/Resources/shaders/presets/ChaiLove/NyanCat.glslp.
[INFO] Shaders: no content-dir-specific preset found at /Applications/RetroArch.app/Contents/Resources/shaders/presets/ChaiLove/Downloads.cgp.
[INFO] Shaders: no content-dir-specific preset found at /Applications/RetroArch.app/Contents/Resources/shaders/presets/ChaiLove/Downloads.glslp.
[INFO] Shaders: no core-specific preset found at /Applications/RetroArch.app/Contents/Resources/shaders/presets/ChaiLove/ChaiLove.cgp.
[INFO] Shaders: no core-specific preset found at /Applications/RetroArch.app/Contents/Resources/shaders/presets/ChaiLove/ChaiLove.glslp.
[INFO] Environ SET_SUPPORT_NO_GAME: no.
[INFO] Environ SET_VARIABLES.
[INFO] Remaps: remap directory: /Users/xxx/Library/Application Support/RetroArch/config/remaps
[INFO] Remaps: no game-specific remap found at /Users/xxx/Library/Application Support/RetroArch/config/remaps/ChaiLove/NyanCat.rmp.
[INFO] Remaps: no content-dir-specific remap found at /Users/xxx/Library/Application Support/RetroArch/config/remaps/ChaiLove/Downloads.rmp.
[INFO] Remaps: no core-specific remap found at /Users/xxx/Library/Application Support/RetroArch/config/remaps/ChaiLove/ChaiLove.rmp.
[INFO] Redirecting save file to "/Users/xxx/Documents/RetroArch/saves/NyanCat.srm".
[INFO] Redirecting savestate to "/Users/xxx/Documents/RetroArch/states/NyanCat.state".
[INFO] Environ SET_PIXEL_FORMAT: XRGB8888.
[INFO] Content loading skipped. Implementation will load it on its own.
[INFO] CRC32: 0x11bd5788 .
[ChaiLove] Initializing ChaiLove
[INFO] Environ GET_VARIABLE chailove_alphablending:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE chailove_highquality:
[INFO] 	enabled
[INFO] Environ SET_INPUT_DESCRIPTORS:
[INFO] 	RetroPad, User 1, Button "B (bottom)" => "B"
[INFO] 	RetroPad, User 1, Button "Y (left)" => "Y"
[INFO] 	RetroPad, User 1, Button "Select" => "Select"
[INFO] 	RetroPad, User 1, Button "Start" => "Start"
[INFO] 	RetroPad, User 1, Button "D-Pad Up" => "D-Pad Up"
[INFO] 	RetroPad, User 1, Button "D-Pad Down" => "D-Pad Down"
[INFO] 	RetroPad, User 1, Button "D-Pad Left" => "D-Pad Left"
[INFO] 	RetroPad, User 1, Button "D-Pad Right" => "D-Pad Right"
[INFO] 	RetroPad, User 1, Button "A (right)" => "A"
[INFO] 	RetroPad, User 1, Button "X (up)" => "X"
[INFO] 	RetroPad, User 1, Button "L" => "Left Shoulder"
[INFO] 	RetroPad, User 1, Button "R" => "Right Shoulder"
[INFO] 	RetroPad, User 2, Button "B (bottom)" => "B"
[INFO] 	RetroPad, User 2, Button "Y (left)" => "Y"
[INFO] 	RetroPad, User 2, Button "Select" => "Select"
[INFO] 	RetroPad, User 2, Button "Start" => "Start"
[INFO] 	RetroPad, User 2, Button "D-Pad Up" => "D-Pad Up"
[INFO] 	RetroPad, User 2, Button "D-Pad Down" => "D-Pad Down"
[INFO] 	RetroPad, User 2, Button "D-Pad Left" => "D-Pad Left"
[INFO] 	RetroPad, User 2, Button "D-Pad Right" => "D-Pad Right"
[INFO] 	RetroPad, User 2, Button "A (right)" => "A"
[INFO] 	RetroPad, User 2, Button "X (up)" => "X"
[INFO] 	RetroPad, User 2, Button "L" => "Left Shoulder"
[INFO] 	RetroPad, User 2, Button "R" => "Right Shoulder"
[INFO] 	RetroPad, User 3, Button "B (bottom)" => "B"
[INFO] 	RetroPad, User 3, Button "Y (left)" => "Y"
[INFO] 	RetroPad, User 3, Button "Select" => "Select"
[INFO] 	RetroPad, User 3, Button "Start" => "Start"
[INFO] 	RetroPad, User 3, Button "D-Pad Up" => "D-Pad Up"
[INFO] 	RetroPad, User 3, Button "D-Pad Down" => "D-Pad Down"
[INFO] 	RetroPad, User 3, Button "D-Pad Left" => "D-Pad Left"
[INFO] 	RetroPad, User 3, Button "D-Pad Right" => "D-Pad Right"
[INFO] 	RetroPad, User 3, Button "A (right)" => "A"
[INFO] 	RetroPad, User 3, Button "X (up)" => "X"
[INFO] 	RetroPad, User 3, Button "L" => "Left Shoulder"
[INFO] 	RetroPad, User 3, Button "R" => "Right Shoulder"
[INFO] 	RetroPad, User 4, Button "B (bottom)" => "B"
[INFO] 	RetroPad, User 4, Button "Y (left)" => "Y"
[INFO] 	RetroPad, User 4, Button "Select" => "Select"
[INFO] 	RetroPad, User 4, Button "Start" => "Start"
[INFO] 	RetroPad, User 4, Button "D-Pad Up" => "D-Pad Up"
[INFO] 	RetroPad, User 4, Button "D-Pad Down" => "D-Pad Down"
[INFO] 	RetroPad, User 4, Button "D-Pad Left" => "D-Pad Left"
[INFO] 	RetroPad, User 4, Button "D-Pad Right" => "D-Pad Right"
[INFO] 	RetroPad, User 4, Button "A (right)" => "A"
[INFO] 	RetroPad, User 4, Button "X (up)" => "X"
[INFO] 	RetroPad, User 4, Button "L" => "Left Shoulder"
[INFO] 	RetroPad, User 4, Button "R" => "Right Shoulder"
[INFO] 	RetroPad, User 5, Button "B (bottom)" => "B"
[INFO] 	RetroPad, User 5, Button "Y (left)" => "Y"
[INFO] 	RetroPad, User 5, Button "Select" => "Select"
[INFO] 	RetroPad, User 5, Button "Start" => "Start"
[INFO] 	RetroPad, User 5, Button "D-Pad Up" => "D-Pad Up"
[INFO] 	RetroPad, User 5, Button "D-Pad Down" => "D-Pad Down"
[INFO] 	RetroPad, User 5, Button "D-Pad Left" => "D-Pad Left"
[INFO] 	RetroPad, User 5, Button "D-Pad Right" => "D-Pad Right"
[INFO] 	RetroPad, User 5, Button "A (right)" => "A"
[INFO] 	RetroPad, User 5, Button "X (up)" => "X"
[INFO] 	RetroPad, User 5, Button "L" => "Left Shoulder"
[INFO] 	RetroPad, User 5, Button "R" => "Right Shoulder"
[INFO] Environ SET_FRAME_TIME_CALLBACK.
[INFO] Environ SET_AUDIO_CALLBACK.
[ChaiLove] ChaiLove 0.32.0
[ChaiLove] [filesystem] Mounting /Users/xxx/Downloads/NyanCat.chailove as /
[ChaiLove] [filesystem] Mounting /Users/xxx/Documents/RetroArch/cores as /libretro/core
[INFO] Environ SYSTEM_DIRECTORY: "/Users/xxx/Documents/RetroArch/system".
[ChaiLove] [filesystem] Mounting /Users/xxx/Documents/RetroArch/system as /libretro/system
[INFO] Environ CORE_ASSETS_DIRECTORY: "/Users/xxx/Library/Application Support/RetroArch/downloads".
[ChaiLove] [filesystem] Mounting /Users/xxx/Library/Application Support/RetroArch/downloads as /libretro/assets
[ChaiLove] [filesystem] Mounting /Users/xxx/Documents/RetroArch/saves as /libretro/saves
[ChaiLove] [script] Module conf not found.
[ChaiLove] [script] reset() Error: "Can not find object: reset" 
[ChaiLove] [script] joystickpressed() Error: "Can not find object: joystickpressed" 
[ChaiLove] [script] joystickreleased() Error: "Can not find object: joystickreleased" 
[ChaiLove] [script] mousepressed() Error: "Can not find object: mousepressed" 
[ChaiLove] [script] mousereleased() Error: "Can not find object: mousereleased" 
[ChaiLove] [script] mousemoved() Error: "Can not find object: mousemoved" 
[ChaiLove] [script] keypressed() Error: "Can not find object: keypressed" 
[ChaiLove] [script] keyreleased() Error: "Can not find object: keyreleased" 
[ChaiLove] [script] cheatreset() Warning: Error: "Can not find object: cheatreset" 
[ChaiLove] [script] cheatset() Warning: Error: "Can not find object: cheatset" 
[ChaiLove] [script] exit() Warning: Error: "Can not find object: exit" 
[INFO] Environ GET_VARIABLE chailove_alphablending:
[INFO] 	enabled
[INFO] Environ GET_VARIABLE chailove_highquality:
[INFO] 	enabled
[ChaiLove] [system] Version current:  0.32.0
[ChaiLove] [system] Version targeted: 0.29.0
[ChaiLove] [system] Version 0.32.0 > 0.29.0
[ChaiLove] [system] Version 0.32.0 !~= 0.29.0
[ChaiLove] [system] Version 0.32.0 ^= 0.29.0
[INFO] Skipping SRAM load..
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[ChaiLove] retro_get_system_av_info
[INFO] [Audio]: Set audio input rate to: 44055.95 Hz.
[INFO] [Video]: Video @ 1920x1440
[INFO] [GL]: Found GL context: cocoagl
[INFO] [GL]: Detecting screen resolution 960x720.
[INFO] [GL]: Vendor: Intel Inc., Renderer: Intel(R) Iris(TM) Graphics 6100.
[INFO] [GL]: Version: 2.1 INTEL-12.8.38.
[INFO] [GL]: Using resolution 3840x1408
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] Setting up menu pipeline shaders for XMB ... 
[INFO] [GLSL]: Compiling ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling simple ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling modern snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling bokeh shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snowflake shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] Resetting shader to defaults ... 
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.
[INFO] Found HID driver: "iohidmanager".
[INFO] [Joypad]: Found joypad driver: "hid".
[INFO] [Video]: Found display server: null
[INFO] [Audio]: Starting threaded audio driver ...
[INFO] [Audio Thread]: Initializing audio driver.
[INFO] [CoreAudio]: Using output sample rate of 48000.0 Hz
[INFO] [CoreAudio]: Using buffer size of 24576 bytes: (latency = 64 ms)
[ChaiLove] audio_set_state(true)
[INFO] [Audio Thread]: Starting audio.
[INFO] [Menu]: Found menu display driver: "gl".
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [LED]: LED driver = 'null' 0x106b09208
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "null" driver.
[WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_history.lpl].
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_favorites.lpl].
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_music_history.lpl].
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_image_history.lpl].
[INFO] [GL]: VSync => on
[ChaiLove] audio_set_state(true)
[INFO] Paused.
[ChaiLove] audio_set_state(false)
[INFO] Unpaused.
[ChaiLove] audio_set_state(true)
[ChaiLove] audio_set_state(true)
[ChaiLove] audio_set_state(true)
[INFO] Content ran for a total of: 00 hours, 00 minutes, 03 seconds.
[INFO] Unloading game..
[ChaiLove] retro_unload_game()
[ChaiLove] audio_set_state(false)
[INFO] Unloading core..
[ChaiLove] retro_deinit()
[ChaiLove] Attempting to destroy ChaiLove
[ChaiLove] Destroying ChaiLove
[ChaiLove] Destroyed ChaiLove
[INFO] Unloading core symbols..

From gui (segfault):

xxxs-MacBook-Pro:~ xxx$ /Applications/RetroArch.app/Contents/MacOS/RetroArch
[INFO] [recording] twitch streaming key empty
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES 
Built: Mar  6 2019
[INFO] Version: 1.7.6
[INFO] =================================================
[INFO] Environ SET_PIXEL_FORMAT: RGB565.
[INFO] Redirecting save file to "/Users/xxx/Documents/RetroArch/saves/.srm".
[INFO] Redirecting savestate to "/Users/xxx/Documents/RetroArch/states/.state".
[INFO] Version of libretro API: 1
[INFO] Compiled against API: 1
[INFO] [Audio]: Set audio input rate to: 30000.00 Hz.
[INFO] [Video]: Video @ 960x720
[INFO] [GL]: Found GL context: cocoagl
[INFO] [GL]: Detecting screen resolution 960x720.
[INFO] [GL]: Vendor: Intel Inc., Renderer: Intel(R) Iris(TM) Graphics 6100.
[INFO] [GL]: Version: 2.1 INTEL-12.8.38.
[INFO] [GL]: Using resolution 1920x1408
[INFO] [GL]: Default shader backend found: glsl.
[INFO] [Shader driver]: Using GLSL shader backend.
[INFO] [GLSL]: Checking GLSL shader support ...
[WARN] [GL]: Stock GLSL shaders will be used.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] Setting up menu pipeline shaders for XMB ... 
[INFO] [GLSL]: Compiling ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling simple ribbon shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling modern snow shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling bokeh shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] [GLSL]: Compiling snowflake shader..
[INFO] [GLSL]: Found GLSL vertex shader.
[INFO] [GLSL]: Found GLSL fragment shader.
[INFO] [GLSL]: Linking GLSL program.
[INFO] Resetting shader to defaults ... 
[INFO] [GL]: Using 4 textures.
[INFO] [GL]: Loaded 1 program(s).
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [Video]: Graphics driver did not initialize an input driver. Attempting to pick a suitable driver.
[INFO] Found HID driver: "iohidmanager".
[INFO] [Joypad]: Found joypad driver: "hid".
[INFO] [Video]: Found display server: null
[INFO] [CoreAudio]: Using output sample rate of 48000.0 Hz
[INFO] [CoreAudio]: Using buffer size of 24576 bytes: (latency = 64 ms)
[INFO] [Menu]: Found menu display driver: "gl".
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [LED]: LED driver = 'null' 0x109b3c208
[INFO] [MIDI]: Initializing ...
[INFO] [MIDI]: Input disabled.
[INFO] [MIDI]: Output disabled.
[INFO] [MIDI]: Initialized "null" driver.
[WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD.
[INFO] SRAM will not be saved.
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_history.lpl].
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_favorites.lpl].
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_music_history.lpl].
[INFO] Loading history file: [/Users/xxx/Library/Application Support/RetroArch/config/content_image_history.lpl].
[INFO] [GL]: VSync => on
[INFO] [GL]: VSync => on
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] [Font]: Using font rendering backend: coretext.
[INFO] Updating firmware status for: /Users/xxx/Documents/RetroArch/cores/chailove_libretro.dylib on /Users/xxx/Documents/RetroArch/system
[INFO] Using content: /Users/xxx/Downloads/NyanCat.chailove.
[INFO] Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] Unloading game..
[INFO] Unloading core..
[INFO] Unloading core symbols..
[INFO] [Video]: Does not have enough samples for monitor refresh rate estimation. Requires to run for at least 4096 frames.
[INFO] Set config file to : /Users/xxx/Library/Application Support/RetroArch/config/retroarch.cfg
[INFO] Redirecting save file to "/Users/xxx/Documents/RetroArch/saves/NyanCat.srm".
[INFO] Redirecting savestate to "/Users/xxx/Documents/RetroArch/states/NyanCat.state".
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AVX2 AES 
Built: Mar  6 2019
[INFO] Version: 1.7.6
[INFO] =================================================
[ERROR] Serious problem. RetroArch wants to load libretro cores dynamically, but it is already linked.
[ERROR] This could happen if other modules RetroArch depends on link against libretro directly.
[ERROR] Proceeding could cause a crash. Aborting ...
[ERROR] Fatal error received in: "init_libretro_sym()"
[ERROR] failed_to_start_audio_driver
Segmentation fault: 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions