libretro / superbroswar-libretro

A fan-made multiplayer style deathmatch game
1 stars 5 forks source link

Error at run time: terminate called after throwing an instance of 'char const*' #4

Closed lbrpdx closed 2 years ago

lbrpdx commented 2 years ago

Hello,

I'm building this for Linux (ARM64 rk3326 CPU). Compilation went fine, I added an empty smw.game file to launch it, and copied all gfx, maps and worlds directories from a working standalone SMW install. I compiled it from 724eac234429a3d284b220930f9519e0cafef84a with RetroArch 1.10.2.

When I launch /usr/bin/retroarch -L /usr/lib/libretro/superbroswar_libretro.so --verbose /userdata/roms/superbroswar/smw.game

I get the following error:

[INFO] [Config]: Loading default config.
[INFO] [Config]: Looking for config in: "/userdata/system/.config/retroarch/retroarch.cfg".
[WARN] [GameMode]: GameMode cannot be enabled on this system ("dlopen failed - libgamemode.so: cannot open shared object file: No such file or directory.") https://github.com/FeralInteractive/gamemode needs to be installed.
[WARN] [Config]: GameMode unsupported - disabling...
[INFO] === Build =======================================
[INFO] Capabilities:  ASIMD
[INFO] Built: Mar 27 2022
[INFO] Version: 1.10.2
[INFO] =================================================
[INFO] [Input]: Found input driver: "udev".
[INFO] [Core]: Loading dynamic libretro core from: "/usr/lib/libretro/superbroswar_libretro.so"
[INFO] [Overrides]: No core-specific overrides found at "/userdata/system/.config/retroarch/config/Super Bros War/Super Bros War.cfg".
[INFO] [Overrides]: No content-dir-specific overrides found at "/userdata/system/.config/retroarch/config/Super Bros War/superbroswar.cfg".
[INFO] [Overrides]: No game-specific overrides found at "/userdata/system/.config/retroarch/config/Super Bros War/smw.cfg".
[INFO] [Remaps]: Remap directory: "/userdata/system/.config/retroarch/config/remaps".
[INFO] [Overrides]: Redirecting save file to "/userdata/system/.config/retroarch/saves/smw.srm".
[INFO] [Overrides]: Redirecting save state to "/userdata/system/.config/retroarch/states/smw.state".
[INFO] [Environ]: SYSTEM_DIRECTORY: "/userdata/system/.config/retroarch/system".
[INFO] [Environ]: CORE_ASSETS_DIRECTORY: "/userdata/system/.config/retroarch/downloads".
[INFO] [Environ]: GET_SAVE_DIRECTORY.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Environ]: GET_VFS_INTERFACE. Core requested version >= V3, providing V3.
[INFO] [Content]: Content loading skipped. Implementation will load it on its own.
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
terminate called after throwing an instance of 'char const*'
Aborted

The RetroArch libgamemode.so error can be safely ignored, I can launch any other libretro core even with that error message.

lbrpdx commented 2 years ago

Resolved: the error above is when the directory sfx/packs/Classic/ is missing. It might need a specific log message for easier troubleshooting.