Flycast core crash after retro_init() in my libretro implementation #1370
-
Hello everyone, However, I'm having an issue during the initialization of the Flycast core: just a few secs after returning from retro_init() it crashes with error. I have to add that not all the environments commands are implemented, and also I'm currently trying to figure out how to correctly print messages from the log callback in java, so I cannot see what type of error is at this time. This is a log of what's happening: -> loadCore() [CMD 52] RETRO_ENVIRONMENT_GET_CORE_OPTIONS_VERSION
[CMD 16] RETRO_ENVIRONMENT_SET_VARIABLES
[CMD 69] RETRO_ENVIRONMENT_SET_CORE_OPTIONS_UPDATE_DISPLAY_CALLBACK
[CMD 35] RETRO_ENVIRONMENT_SET_CONTROLLER_INFO
[CMD 27] RETRO_ENVIRONMENT_GET_LOG_INTERFACE
[CMD 28] RETRO_ENVIRONMENT_GET_PERF_INTERFACE
[CMD 10] RETRO_ENVIRONMENT_SET_PIXEL_FORMAT
[CMD 12] RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK
[CMD 57] RETRO_ENVIRONMENT_GET_DISK_CONTROL_INTERFACE_VERSION
[CMD 13] RETRO_ENVIRONMENT_SET_DISK_CONTROL_INTERFACE
[CMD 31] RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY
::[WARN] - %s -> loadCore() done! ::[ERROR] - %s -> A fatal error has been detected by the Java Runtime Environment:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Flycast needs hardware rendering support (OpenGL, Vulkan or DirectX11) and it relies on RETRO_ENVIRONMENT_SET_HW_RENDER (CMD 14) to set the parameters for establishing the graphics API context. |
Beta Was this translation helpful? Give feedback.
This is some (almost) null pointer exception.
Note that the flycast core installs a SIGSEGV fault handler so it will print out messages to the log when catching an unexpected one (as is the case here). However that doesn't mean the exception originates from flycast code.