kodi-game/game.libretro.genplus

Genplus crashes Kodi depending on game

Closed this issue · 2 comments

Issue: Depending on the game, genplus will crash Kodi. I was able to get it to consitently crash using Super Street Fighter II (USA).

Version Tested:

-----------------------------------------------------------------------
09:46:32.481 T:140735305183232  NOTICE: Starting Kodi (18.0-ALPHA1 Git:20180215-276e1a4). Platform: OS X x86 64-bit
09:46:32.481 T:140735305183232  NOTICE: Using Debug Kodi x64 build
09:46:32.481 T:140735305183232  NOTICE: Kodi compiled Feb 15 2018 by Clang 9.0.0 (clang-900.0.37) for OS X x86 64-bit version 10.8.0 (1080)
09:46:32.481 T:140735305183232  NOTICE: Running on Apple Inc. MacBookPro12,1 with OS X 10.11.6, kernel: Darwin x86 64-bit version 15.6.0
09:46:32.481 T:140735305183232  NOTICE: FFmpeg version/source: 3.4.1-Kodi
09:46:32.482 T:140735305183232  NOTICE: Host CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz, 4 cores available

Log:

0:39:06.002 T:140735305183232    INFO: AddOnLog: Sega - MS/GG/MD/CD (Genesis Plus GX): INFORMATION - Loading 5242880 bytes ...
20:39:06.016 T:140735305183232    INFO: GAME: ---------------------------------------
20:39:06.016 T:140735305183232    INFO: GAME: Base Width:   256
20:39:06.017 T:140735305183232    INFO: GAME: Base Height:  192
20:39:06.017 T:140735305183232    INFO: GAME: Max Width:    720
20:39:06.017 T:140735305183232    INFO: GAME: Max Height:   576
20:39:06.017 T:140735305183232    INFO: GAME: Aspect Ratio: 1.523810
20:39:06.017 T:140735305183232    INFO: GAME: FPS:          59.922743
20:39:06.017 T:140735305183232    INFO: GAME: Sample Rate:  44100.000000
20:39:06.017 T:140735305183232    INFO: GAME: Region:       NTSC
20:39:06.017 T:140735305183232    INFO: GAME: ---------------------------------------
20:39:06.017 T:140735305183232   DEBUG: GAME: Audio sample rate is supported, no scaling or resampling needed
20:39:06.018 T:140735305183232   DEBUG: GAME: No in-game saves (save ram) to load
20:39:06.018 T:140735305183232   DEBUG: GAME: No in-game saves (rtc) to load
20:39:06.018 T:140735305183232   DEBUG: RetroPlayer[PLAYER]: Using game client game.libretro.genplus
20:39:06.018 T:123145303990272   DEBUG: Thread GameLoop start, auto delete: false
20:39:06.019 T:140735305183232   ERROR: Failed to open /Users/xxx/Library/Application Support/Kodi/userdata/addon_data/plugin.program.iarl/temp_iarl/Super Street Fighter II (USA).xml: Failed to open file
20:39:06.019 T:140735305183232   DEBUG: RetroPlayer[SAVE]: Loading savestate /Users/xxx/Library/Application Support/Kodi/userdata/addon_data/plugin.program.iarl/temp_iarl/Super Street Fighter II (USA).xml
20:39:06.019 T:140735305183232   DEBUG: Loading savestate from /Users/xxx/Library/Application Support/Kodi/userdata/addon_data/plugin.program.iarl/temp_iarl/Super Street Fighter II (USA).xml
20:39:06.019 T:140735305183232   ERROR: Failed to open /Users/xxx/Library/Application Support/Kodi/userdata/addon_data/plugin.program.iarl/temp_iarl/Super Street Fighter II (USA).xml: Failed to open file
20:39:06.019 T:140735305183232   ERROR: Failed to query savestate /Users/xxx/Library/Application Support/Kodi/userdata/addon_data/plugin.program.iarl/temp_iarl/Super Street Fighter II (USA).xml
20:39:06.019 T:140735305183232   ERROR: RetroPlayer[SAVE]: Failed to load savestate
20:39:06.019 T:140735305183232   DEBUG: PERIPHERALS: Event poll handle activated
20:39:06.019 T:140735305183232   DEBUG: RetroPlayer[PLAYER]: Closing OSD via speed change (1.000000)
20:39:06.019 T:140735305183232   DEBUG: ------ Window Deinit () ------
20:39:06.019 T:140735305183232   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:39:06.020 T:140735305183232   DEBUG: OnPlayBackStarted: CApplication::OnPlayBackStarted
20:39:06.020 T:140735305183232   DEBUG: RetroPlayer[SAVE]: Initializing autosave
20:39:06.020 T:123145305063424   DEBUG: Thread CRetroPlayerAutoSave start, auto delete: false
20:39:06.020 T:123145305063424   DEBUG: RetroPlayer[SAVE]: Autosave thread started
20:39:06.023 T:140735305183232   DEBUG: ------ Window Init () ------
20:39:06.023 T:140735305183232   DEBUG: Alloc resources: 0.00ms  (0.00 ms skin load)
20:39:06.026 T:140735305183232   ERROR: GetDirectory - Error getting plugin://plugin.program.iarl/Emulator/Genesis_Bestof_ZachMorris/Game/3.++Super+Street+Fighter+II
20:39:06.026 T:140735305183232   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.program.iarl/Emulator/Genesis_Bestof_ZachMorris/Game/3.++Super+Street+Fighter+II) failed
20:39:06.026 T:140735305183232   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.program.iarl/Emulator/Genesis_Bestof_ZachMorris/1)
20:39:06.026 T:140735305183232   DEBUG:   ParentPath = [plugin://plugin.program.iarl/?content_type=game]
20:39:06.030 T:123145308819456   DEBUG: StartScript - calling plugin Internet Archive ROM Launcher('plugin://plugin.program.iarl/Emulator/Genesis_Bestof_ZachMorris/1','7','','resume:false')
20:39:06.030 T:123145312116736   DEBUG: Thread LanguageInvoker start, auto delete: false
20:39:06.030 T:123145312116736    INFO: initializing python engine.
20:39:06.031 T:123145312116736   DEBUG: CPythonInvoker(24, /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py): start processing
20:39:06.039 T:123145303990272   DEBUG: RetroPlayer[VIDEO]: Creating video stream - format RGB565, 256x192, 0 deg
20:39:06.039 T:123145303990272    INFO: RetroPlayer[RENDER]: Configuring format RGB565, 256x192, 0 deg
20:39:06.040 T:123145303990272    INFO: RetroPlayer[AUDIO]: Creating audio stream, sample rate = 44100
20:39:06.040 T:123145307746304   DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
20:39:06.040 T:123145308282880    INFO: CActiveAESink::OpenSink - initialize sink
20:39:06.041 T:123145308282880   DEBUG: CActiveAESink::OpenSink - trying to open device DARWINOSX:default
20:39:06.041 T:123145308282880  NOTICE: virtual bool CAESinkDARWINOSX::Initialize(AEAudioFormat &, std::string &): Opening default device Built-in Output
20:39:06.042 T:123145308282880   DEBUG: FindSuitableFormatForStream: Finding stream for format AE_FMT_FLOAT
20:39:06.042 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 24-bit Signed Integer LE (96000Hz) rated 929.129272
20:39:06.042 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 24-bit Signed Integer LE (88200Hz) rated 1106.000000
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 24-bit Signed Integer LE (48000Hz) rated 1419.564697
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 24-bit Signed Integer LE (44100Hz) rated 1508.000000
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (96000Hz) rated 928.129272
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (88200Hz) rated 1105.000000
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (48000Hz) rated 1418.564697
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 16-bit Signed Integer LE (44100Hz) rated 1507.000000
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (96000Hz) rated 930.129272
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (88200Hz) rated 1107.000000
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (48000Hz) rated 1420.564697
20:39:06.043 T:123145308282880   DEBUG: FindSuitableFormatForStream: Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz) rated 1509.000000
20:39:06.043 T:123145308282880   DEBUG: Initialize: Selected stream[0] - id: 0x0033, Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
20:39:06.044 T:123145308282880   DEBUG: CCoreAudioDevice::SupportsMixing: Device mixing support : 'No'.
20:39:06.044 T:123145308282880   DEBUG: CCoreAudioStream::Open: Opened stream 0x0033.
20:39:06.044 T:123145308282880   DEBUG: Initialize: Previous Virtual Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
20:39:06.044 T:123145308282880   DEBUG: Initialize: Previous Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
20:39:06.046 T:123145312116736   DEBUG: -->Python Interpreter Initialized<--
20:39:06.046 T:123145312116736   DEBUG: CPythonInvoker(24, /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py): the source file to load is "/Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py"
20:39:06.047 T:123145312116736   DEBUG: CPythonInvoker(24, /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py): setting the Python path to /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl:/Users/xxx/Library/Application Support/Kodi/addons/plugin.video.youtube/resources/lib/:/Users/xxx/Library/Application Support/Kodi/addons/script.module.certifi/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.chardet/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.dateutil/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.idna/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.requests/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.six/lib:/Users/xxx/Library/Application Support/Kodi/addons/script.module.urllib3/lib:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/site-packages/Pillow-3.0.0-py2.7-macosx-10.4-x86_64.egg:/Applications/Kodi_Retroplayer.app/Contents/Libraries:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python27.zip:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/site-packages:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/plat-darwin:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/plat-mac:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/plat-mac/lib-scriptpackages:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/lib-tk:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/lib-old:/Applications/Kodi_Retroplayer.app/Contents/Libraries/lib/python2.7/lib-dynload
20:39:06.047 T:123145312116736   DEBUG: CPythonInvoker(24, /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py): entering source directory /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl
20:39:06.047 T:123145312116736   DEBUG: CPythonInvoker(24, /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py): instantiating addon using automatically obtained id of "plugin.program.iarl" dependent on version 2.14.0 of the xbmc.python api
20:39:06.055 T:123145303990272   DEBUG: RetroPlayer[VIDEO]: Closing video stream
20:39:06.055 T:123145303990272   DEBUG: RetroPlayer[VIDEO]: Creating video stream - format RGB565, 320x224, 0 deg
20:39:06.055 T:123145303990272    INFO: RetroPlayer[RENDER]: Configuring format RGB565, 320x224, 0 deg
20:39:06.270 T:123145312116736  NOTICE: IARL:  Lets Play!
20:39:06.270 T:123145312116736   DEBUG: /Users/xxx/Library/Application Support/Kodi/userdata/addon_data/plugin.program.iarl/.storage/
20:39:06.271 T:123145312116736   DEBUG: CAddonSettings[plugin.program.iarl]: loading setting definitions
20:39:06.271 T:123145312116736   DEBUG: CAddonSettings[plugin.program.iarl]: trying to load setting definitions from old format...
20:39:06.273 T:123145312116736   DEBUG: CAddonSettings[plugin.program.iarl]: loading setting values
20:39:06.274 T:123145312116736   DEBUG: CSettingsManager: requested setting (iarl_setting_warn_chd) was not found.
20:39:06.274 T:123145312116736   DEBUG: CSettingsManager: requested setting (iarl_setting_warn_iso) was not found.
20:39:06.275 T:123145312116736   DEBUG: IARL:  chmod failed for 7za/7za.android
20:39:06.336 T:123145308282880   DEBUG: CCoreAudioStream::SetPhysicalFormat: Physical format for stream 0x0033. now active ([lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz))
20:39:06.342 T:123145308282880   DEBUG: Initialize: New Virtual Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
20:39:06.343 T:123145308282880   DEBUG: Initialize: New Physical Format: [lpcm] Mixable Interleaved 2 Channel 32-bit Floating Point LE (44100Hz)
20:39:06.344 T:123145308282880   DEBUG: GetAEChannelMap Engine requests layout FL, FR
20:39:06.344 T:123145308282880   DEBUG: GetAEChannelMap trying to map to stereo layout: [Left] [Right]
20:39:06.344 T:123145308282880   DEBUG: GetAEChannelMap mapped channels to layout FL, FR
20:39:06.344 T:123145308282880   DEBUG: Initialize: using buffer size: 16384 (0.046440 ms)
20:39:06.345 T:123145308282880   DEBUG: CActiveAESink::OpenSink - DARWINOSX Initialized:
20:39:06.345 T:123145308282880   DEBUG:   Output Device : Default
20:39:06.345 T:123145308282880   DEBUG:   Sample Rate   : 44100
20:39:06.345 T:123145308282880   DEBUG:   Sample Format : AE_FMT_FLOAT
20:39:06.345 T:123145308282880   DEBUG:   Channel Count : 2
20:39:06.345 T:123145308282880   DEBUG:   Channel Layout: FL, FR
20:39:06.345 T:123145308282880   DEBUG:   Frames        : 512
20:39:06.346 T:123145308282880   DEBUG:   Frame Size    : 8
20:39:06.531 T:140735305183232   DEBUG: ------ Window Init (DialogBusy.xml) ------
20:39:06.531 T:140735305183232   DEBUG: Window DialogBusy.xml was already loaded
20:39:06.532 T:140735305183232   DEBUG: Alloc resources: 0.05ms
20:39:06.533 T:123145307209728   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
20:39:06.534 T:123145307209728   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
20:39:06.534 T:123145312116736   DEBUG: IARL:  7ZA Path is defined as /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/resources/bin/7za/7za.OSX
20:39:06.534 T:140735305183232   DEBUG: Inhibiting OS screen saver
20:39:06.540 T:140735305183232    INFO: RetroPlayer[RENDER]: Renderer configured on first frame
20:39:06.545 T:140735305183232   DEBUG: Activating window ID: 12906
20:39:06.545 T:140735305183232   DEBUG: ------ Window Deinit (MyGames.xml) ------
20:39:06.545 T:140735305183232   DEBUG: FreeVisualisation() done
20:39:06.548 T:140735305183232   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
20:39:06.548 T:140735305183232   DEBUG: Window VideoFullScreen.xml was already loaded
20:39:06.548 T:140735305183232   DEBUG: Alloc resources: 0.00ms
20:39:06.549 T:140735305183232   ERROR: RetroPlayer[RENDER]: Creating renderer for OpenGL
20:39:06.549 T:140735305183232   DEBUG: RetroPlayer[RENDER]: Configuring buffer pool
20:39:06.556 T:123145303990272   DEBUG: RetroPlayer[RENDER]: Creating render buffer for buffer pool
20:39:06.584 T:123145312116736   DEBUG: Previous line repeats 1 times.
20:39:06.584 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/update_xml/<xml_id>" named "update_xml_value" pointing to function "update_xml_value"
20:39:06.585 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/update_favorites/<item_string>" named "update_favorite_items" pointing to function "update_favorite_items"
20:39:06.585 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/" named "index" pointing to function "index"
20:39:06.586 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Emulator/<category_id>/<page_id>" named "get_rom_page" pointing to function "get_rom_page"
20:39:06.587 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Emulator_Alpha/<category_id>" named "get_rom_starting_letter_page" pointing to function "get_rom_starting_letter_page"
20:39:06.588 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Emulator/<category_id>/Game/<romname>" named "get_selected_rom" pointing to function "get_selected_rom"
20:39:06.589 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Search_Results/<search_term>" named "search_roms_results" pointing to function "search_roms_results"
20:39:06.590 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Search" named "search_roms_window" pointing to function "search_roms_window"
20:39:06.590 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Random" named "random_play" pointing to function "random_play"
20:39:06.591 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/History" named "last_played" pointing to function "last_played"
20:39:06.591 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Extras" named "get_iarl_extras" pointing to function "get_iarl_extras"
20:39:06.592 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Adding url rule "/Extras/<xml_filename>" named "download_iarl_extra" pointing to function "download_iarl_extra"
20:39:06.593 T:123145312116736   DEBUG: [resources.lib.xbmcswift2b] Handling incoming request for /Emulator/Genesis_Bestof_ZachMorris/1
20:39:06.593 T:123145312116736  NOTICE: [resources.lib.xbmcswift2b] Request for "/Emulator/Genesis_Bestof_ZachMorris/1" matches rule for function "get_rom_page"
20:39:06.616 T:123145312116736   DEBUG: IARL: Loaded list cache from file for Genesis_Bestof_ZachMorris
20:39:06.624 T:123145318019072   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"type":"unknown"},"player":{"playerid":-1,"speed":1}}
20:39:06.625 T:123145319092224   DEBUG: Skin Helper Widgets --> Kodi_Monitor: sender xbmc - method: Player.OnPlay  - data: {"item":{"type":"unknown"},"player":{"playerid":-1,"speed":1}}
20:39:06.660 T:123145303990272   DEBUG: RetroPlayer[RENDER]: Creating render buffer for buffer pool
20:39:06.758 T:123145312116736    INFO: CPythonInvoker(24, /Users/xxx/Library/Application Support/Kodi/addons/plugin.program.iarl/addon.py): script successfully run
20:39:06.841 T:123145312116736    INFO: Python script stopped
20:39:06.841 T:123145312116736   DEBUG: Thread LanguageInvoker 123145312116736 terminating
20:39:07.005 T:140735305183232   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:39:09.624 T:123145303990272   DEBUG: RetroPlayer[VIDEO]: Closing video stream

Just a note that I can no longer reproduce this, it can be closed if you think there is no additional outstanding bugs

If it's per-game, then it's likely a bug due to resolution changes. Thankfully after xbmc/xbmc#14313 crashes from this cause should go away entirely.