flycast
flycast copied to clipboard
Latest versions of the flycast core of retroarch android is not closing the core
Latest versions of the flycast core of retroarch android is not closing the core
How does this issue manifest itself?
I get a crash when closing the Flycast core but it happens after the core has been de-initialized and unloaded so it is not a Flycast issue.
I did find a minor issue but it's not the root cause here.
When I load a dreamcast, naomi or atomswave game on it, I enter the game normally, but when I go to the retroarch quick menu and close to close the game, it simply freezes the retroarch.
I tested a flycast version from last year and the bug did not occur, in the same version of retroarch
flycast (0.1 8e4fa54) from 5/18/2021
Which version of RetroArch are you using? Can you get some logs (both core and RA)? 32 bits or 64 bits Android?
I think I can get a debug log yes. As for android and android 5.1.1 32 bit.
with gpu mali 450 600 mhz with opl gl 2.0 ES
any log?
any log?
Using old --libretro behavior. Setting libretro_directory to "/data/data/com.retroarch/cores/" instead. RetroArch 1.10.3 (Git f4803b1) === Build ======================================= Capabilities: NEON VFPv3 [INFO] Built: Jul 1 2022 [INFO] Version: 1.10.3 [INFO] Git: f4803b1 [INFO] ================================================= [Input]: Found input driver: "android". [Environ]: SET_PIXEL_FORMAT: RGB565. [Core]: Version of libretro API: 1, Compiled against API: 1 [Audio]: Set audio input rate to: 48000.00 Hz. [Video]: Set video size to: 1281x720. [Video]: Starting threaded video driver ... Android EGL: GLES version = 2. [EGL] Falling back to eglGetDisplay [EGL]: EGL version: 1.4 [GL]: Found GL context: "egl_android". [GL]: Detecting screen resolution: 0x0. [EGL]: Current context: 0xaec87040. [GL]: Vendor: ARM, Renderer: Mali-450 MP. [GL]: Version: OpenGL ES 2.0. [GL]: Using resolution 1920x1080. [GL]: Default shader backend found: glsl. [Shader driver]: Using GLSL shader backend. [GL]: Stock GLSL shaders will be used. [GLSL]: Found GLSL vertex shader. [GLSL]: Found GLSL fragment shader. [GLSL]: Linking GLSL program. [GLSL]: Found GLSL vertex shader. [GLSL]: Found GLSL fragment shader. [GLSL]: Linking GLSL program. [GLSL]: Found GLSL vertex shader. [GLSL]: Found GLSL fragment shader. [GLSL]: Linking GLSL program. [GL]: Using 4 textures. [GL]: Loaded 1 program(s). [Joypad]: Found joypad driver: "android". [Font]: Using font rendering backend: "font_renderer_stb_unicode". [Video]: Found display server: "android". [OpenSL]: Requested audio latency: 0 ms. [OpenSL]: Setting audio latency: Block size = 4096, Blocks = 2, Total = 8192 ... [Display]: Found display driver: "gl". [SRAM]: SRAM will not be saved. [Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_history.lpl". [Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_music_history.lpl". [Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_image_history.lpl". [Playlist]: Loading favorites file: "/storage/emulated/0/Android/data/com.retroarch/files/content_favorites.lpl". [Core]: Using content: "/storage/udisk0/part1/ROMS/Sega - Dreamcast/Frogger 2 - Swampys Revenge (USA).chd". [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds. [Core]: Unloading core.. [Core]: Unloading core symbols.. Threaded video stats: Frames pushed: 246, Frames dropped: 0. RetroArch 1.10.3 (Git f4803b1) === Build ======================================= Capabilities: NEON VFPv3 [INFO] Built: Jul 1 2022 [INFO] Version: 1.10.3 [INFO] Git: f4803b1 [INFO] ================================================= jni_thread_destruct() [Input]: Found input driver: "android". [Core]: Loading dynamic libretro core from: "/data/data/com.retroarch/cores/flycast_libretro_android.so" [Overrides]: Core-specific overrides found at "/storage/emulated/0/RetroArch/config/Flycast/Flycast.cfg". [Overrides]: No content-dir-specific overrides found at "/storage/emulated/0/RetroArch/config/Flycast/Sega - Dreamcast.cfg". [Overrides]: No game-specific overrides found at "/storage/emulated/0/RetroArch/config/Flycast/Frogger 2 - Swampys Revenge (USA).cfg". [Config]: Appending config "/storage/emulated/0/RetroArch/config/Flycast/Flycast.cfg". [Environ]: GET_CORE_OPTIONS_VERSION. [Environ]: GET_LANGUAGE: "0". [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_V2_INTL. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_UPDATE_DISPLAY_CALLBACK. [Environ]: SET_CONTROLLER_INFO. Controller port: 1 Controller (ID: 1) Arcade Stick (ID: 1025) Keyboard (ID: 3) Mouse (ID: 2) Light Gun (ID: 4) Twin Stick (ID: 513) Saturn Twin-Stick (ID: 769) Controller port: 2 Controller (ID: 1) Arcade Stick (ID: 1025) Keyboard (ID: 3) Mouse (ID: 2) Light Gun (ID: 4) Twin Stick (ID: 513) Saturn Twin-Stick (ID: 769) Controller port: 3 Controller (ID: 1) Arcade Stick (ID: 1025) Keyboard (ID: 3) Mouse (ID: 2) Light Gun (ID: 4) Twin Stick (ID: 513) Saturn Twin-Stick (ID: 769) Controller port: 4 Controller (ID: 1) Arcade Stick (ID: 1025) Keyboard (ID: 3) Mouse (ID: 2) Light Gun (ID: 4) Twin Stick (ID: 513) Saturn Twin-Stick (ID: 769) [Remaps]: Remap directory: "/storage/emulated/0/RetroArch/config/remaps". [Overrides]: Redirecting save file to "/storage/emulated/0/RetroArch/saves/Frogger 2 - Swampys Revenge (USA).srm". [Overrides]: Redirecting save state to "/storage/emulated/0/RetroArch/states/Frogger 2 - Swampys Revenge (USA).state". [Environ]: GET_LOG_INTERFACE. shell/libretro/libretro.cpp:308 N[BOOT]: retro_init [Environ]: GET_PERF_INTERFACE. [Environ]: SET_PIXEL_FORMAT: XRGB8888. [Environ]: SET_KEYBOARD_CALLBACK. [Environ]: GET_DISK_CONTROL_INTERFACE_VERSION. [Environ]: SET_DISK_CONTROL_EXT_INTERFACE. core/hw/mem/_vmem.cpp:494 N[VMEM]: Info: nvmem is enabled, with addr space of size 512MB core/hw/mem/_vmem.cpp:593 N[VMEM]: BASE 0x7ca30000 RAM(16 MB) 0x88a30000 VRAM64(8 MB) 0x80a30000 ARAM(2 MB) 0x9ca30000 [Content]: Content loading skipped. Implementation will load it on its own. shell/libretro/libretro.cpp:1785 N[BOOT]: retro_load_game: /storage/udisk0/part1/ROMS/Sega - Dreamcast/Frogger 2 - Swampys Revenge (USA).chd [Environ]: GET_RUMBLE_INTERFACE. Rumble interface supported! [Environ]: SYSTEM_DIRECTORY: "/storage/udisk0/part1/ROMS/Retroarch/#System#". [Environ]: GET_SAVE_DIRECTORY. [Environ]: GET_VARIABLE: reicast_region = "Default" [Environ]: GET_VARIABLE: reicast_broadcast = "Default" [Environ]: GET_VARIABLE: reicast_language = "Default" [Environ]: GET_VARIABLE: reicast_force_wince = "disabled" [Environ]: GET_VARIABLE: reicast_force_freeplay = "enabled" [Environ]: GET_VARIABLE: reicast_enable_dsp = "enabled" [Environ]: GET_VARIABLE: pvr.rend = "N/A" [Environ]: GET_VARIABLE: reicast_mipmapping = "enabled" [Environ]: GET_VARIABLE: reicast_widescreen_hack = "disabled" [Environ]: GET_VARIABLE: reicast_enable_rttb = "enabled" [Environ]: GET_VARIABLE: reicast_volume_modifier_enable = "disabled" [Environ]: GET_VARIABLE: reicast_texupscale = "1" [Environ]: GET_VARIABLE: reicast_texupscale_max_filtered_texture_size = "256" [Environ]: GET_VARIABLE: reicast_custom_textures = "disabled" [Environ]: GET_VARIABLE: reicast_dump_textures = "disabled" [Environ]: GET_VARIABLE: reicast_fog = "enabled" [Environ]: GET_VARIABLE: rend.PerStripSorting = "N/A" [Environ]: GET_VARIABLE: reicast_delay_frame_swapping = "disabled" [Environ]: GET_VARIABLE: reicast_widescreen_cheats = "disabled" [Environ]: GET_VARIABLE: reicast_frame_skipping = "disabled" [Environ]: GET_VARIABLE: reicast_auto_skip_frame = "disabled" [Environ]: GET_VARIABLE: reicast_threaded_rendering = "enabled" [Environ]: GET_VARIABLE: reicast_anisotropic_filtering = "16" [Environ]: GET_VARIABLE: reicast_texture_filtering = "0" [Environ]: GET_VARIABLE: reicast_pvr2_filtering = "disabled" [Environ]: GET_VARIABLE: reicast_oit_layers = "32" [Environ]: GET_VARIABLE: reicast_native_depth_interpolation = "disabled" [Environ]: GET_VARIABLE: reicast_hle_bios = "disabled" [Environ]: GET_VARIABLE: reicast_gdrom_fast_loading = "enabled" [Environ]: GET_VARIABLE: reicast_per_content_vmus = "disabled" [Environ]: GET_VARIABLE: reicast_screen_rotation = "horizontal" [Environ]: GET_VARIABLE: reicast_internal_resolution = "640x480" [Environ]: GET_VARIABLE: reicast_boot_to_bios = "disabled" [Environ]: GET_VARIABLE: reicast_alpha_sorting = "per-triangle (normal)" [Environ]: GET_VARIABLE: reicast_oit_abuffer_size = "512MB" [Environ]: GET_VARIABLE: reicast_detect_vsync_swap_interval = "disabled" [Environ]: SET_SAVE_STATE_IN_BACKGROUND: yes. [Environ]: GET_VARIABLE: reicast_cable_type = "TV (Composite)" [Environ]: GET_VARIABLE: reicast_enable_purupuru = "enabled" [Environ]: GET_VARIABLE: reicast_analog_stick_deadzone = "30%" [Environ]: GET_VARIABLE: reicast_trigger_deadzone = "0%" [Environ]: GET_VARIABLE: reicast_digital_triggers = "disabled" [Environ]: GET_VARIABLE: reicast_allow_service_buttons = "disabled" [Environ]: GET_VARIABLE: reicast_lightgun1_crosshair = "disabled" [Environ]: GET_VARIABLE: reicast_vmu1_screen_display = "disabled" [Environ]: GET_VARIABLE: reicast_vmu1_screen_position = "Upper Left" [Environ]: GET_VARIABLE: reicast_vmu1_screen_size_mult = "1x" [Environ]: GET_VARIABLE: reicast_vmu1_screen_opacity = "100%" [Environ]: GET_VARIABLE: reicast_vmu1_pixel_on_color = "DEFAULT_ON 00" [Environ]: GET_VARIABLE: reicast_vmu1_pixel_off_color = "DEFAULT_OFF 01" [Environ]: GET_VARIABLE: reicast_lightgun2_crosshair = "disabled" [Environ]: GET_VARIABLE: reicast_vmu2_screen_display = "disabled" [Environ]: GET_VARIABLE: reicast_vmu2_screen_position = "Upper Left" [Environ]: GET_VARIABLE: reicast_vmu2_screen_size_mult = "1x" [Environ]: GET_VARIABLE: reicast_vmu2_screen_opacity = "100%" [Environ]: GET_VARIABLE: reicast_vmu2_pixel_on_color = "DEFAULT_ON 00" [Environ]: GET_VARIABLE: reicast_vmu2_pixel_off_color = "DEFAULT_OFF 01" [Environ]: GET_VARIABLE: reicast_lightgun3_crosshair = "disabled" [Environ]: GET_VARIABLE: reicast_vmu3_screen_display = "disabled" [Environ]: GET_VARIABLE: reicast_vmu3_screen_position = "Upper Left" [Environ]: GET_VARIABLE: reicast_vmu3_screen_size_mult = "1x" [Environ]: GET_VARIABLE: reicast_vmu3_screen_opacity = "100%" [Environ]: GET_VARIABLE: reicast_vmu3_pixel_on_color = "DEFAULT_ON 00" [Environ]: GET_VARIABLE: reicast_vmu3_pixel_off_color = "DEFAULT_OFF 01" [Environ]: GET_VARIABLE: reicast_lightgun4_crosshair = "disabled" [Environ]: GET_VARIABLE: reicast_vmu4_screen_display = "disabled" [Environ]: GET_VARIABLE: reicast_vmu4_screen_position = "Upper Left" [Environ]: GET_VARIABLE: reicast_vmu4_screen_size_mult = "1x" [Environ]: GET_VARIABLE: reicast_vmu4_screen_opacity = "100%" [Environ]: GET_VARIABLE: reicast_vmu4_pixel_on_color = "DEFAULT_ON 00" [Environ]: GET_VARIABLE: reicast_vmu4_pixel_off_color = "DEFAULT_OFF 01" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_threaded_rendering = "enabled" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_alpha_sorting = "per-triangle (normal)" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_texupscale = "1" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_auto_skip_frame = "disabled" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. File extension is: .chd [Environ]: GET_PREFERRED_HW_RENDER, video driver name: gl. [Environ]: GET_PREFERRED_HW_RENDER - Context callback set to RETRO_HW_CONTEXT_OPENGL. [Environ]: SET_HW_RENDER, context type: gl. Requesting OpenGLES2 context. Reached end of SET_HW_RENDER. core/hw/mem/_vmem.cpp:494 N[VMEM]: Info: nvmem is enabled, with addr space of size 512MB core/hw/mem/_vmem.cpp:593 N[VMEM]: BASE 0x7ca30000 RAM(16 MB) 0x88a30000 VRAM64(8 MB) 0x80a30000 ARAM(2 MB) 0x9ca30000 [Environ]: GET_VARIABLE: reicast_region = "Default" [Environ]: GET_VARIABLE: reicast_broadcast = "Default" [Environ]: GET_VARIABLE: reicast_language = "Default" [Environ]: GET_VARIABLE: reicast_force_wince = "disabled" [Environ]: GET_VARIABLE: reicast_force_freeplay = "enabled" [Environ]: GET_VARIABLE: reicast_enable_dsp = "enabled" [Environ]: GET_VARIABLE: pvr.rend = "N/A" [Environ]: GET_VARIABLE: reicast_mipmapping = "enabled" [Environ]: GET_VARIABLE: reicast_widescreen_hack = "disabled" [Environ]: GET_VARIABLE: reicast_enable_rttb = "enabled" [Environ]: GET_VARIABLE: reicast_volume_modifier_enable = "disabled" [Environ]: GET_VARIABLE: reicast_texupscale = "1" [Environ]: GET_VARIABLE: reicast_texupscale_max_filtered_texture_size = "256" [Environ]: GET_VARIABLE: reicast_custom_textures = "disabled" [Environ]: GET_VARIABLE: reicast_dump_textures = "disabled" [Environ]: GET_VARIABLE: reicast_fog = "enabled" [Environ]: GET_VARIABLE: rend.PerStripSorting = "N/A" [Environ]: GET_VARIABLE: reicast_delay_frame_swapping = "disabled" [Environ]: GET_VARIABLE: reicast_widescreen_cheats = "disabled" [Environ]: GET_VARIABLE: reicast_frame_skipping = "disabled" [Environ]: GET_VARIABLE: reicast_auto_skip_frame = "disabled" [Environ]: GET_VARIABLE: reicast_threaded_rendering = "enabled" [Environ]: GET_VARIABLE: reicast_anisotropic_filtering = "16" [Environ]: GET_VARIABLE: reicast_texture_filtering = "0" [Environ]: GET_VARIABLE: reicast_pvr2_filtering = "disabled" [Environ]: GET_VARIABLE: reicast_oit_layers = "32" [Environ]: GET_VARIABLE: reicast_native_depth_interpolation = "disabled" [Environ]: GET_VARIABLE: reicast_hle_bios = "disabled" [Environ]: GET_VARIABLE: reicast_gdrom_fast_loading = "enabled" core/emulator.cpp:55 N[BOOT]: Game ID is [T40604N] [Environ]: SET_ROTATION: 0 [Environ]: SET_INPUT_DESCRIPTORS: [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_threaded_rendering = "enabled" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_alpha_sorting = "per-triangle (normal)" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_texupscale = "1" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [Environ]: GET_VARIABLE: reicast_auto_skip_frame = "disabled" [Environ]: RETRO_ENVIRONMENT_SET_CORE_OPTIONS_DISPLAY. [SRAM]: Skipping SRAM load. [Core]: Version of libretro API: 1, Compiled against API: 1 shell/libretro/libretro.cpp:2120 N[RENDERER]: retro_get_system_av_info: Res=480 [Audio]: Set audio input rate to: 44100.00 Hz. [Video]: Set video size to: 1440x1080. [Video]: Using HW render, OpenGL driver forced. [Video]: Using configured "gl" driver for GL HW render. Android EGL: GLES version = 2. [EGL] Falling back to eglGetDisplay [EGL]: EGL version: 1.4 [GL]: Found GL context: "egl_android". [GL]: Detecting screen resolution: 0x0. [EGL]: Current context: 0xaec87460. [GL]: Vendor: ARM, Renderer: Mali-450 MP. [GL]: Version: OpenGL ES 2.0. [GL]: Using resolution 1920x1080. [GL]: Default shader backend found: glsl. [Shader driver]: Using GLSL shader backend. [GL]: Stock GLSL shaders will be used. [GLSL]: Found GLSL vertex shader. [GLSL]: Found GLSL fragment shader. [GLSL]: Linking GLSL program. [GLSL]: Found GLSL vertex shader. [GLSL]: Found GLSL fragment shader. [GLSL]: Linking GLSL program. [GLSL]: Found GLSL vertex shader. [GLSL]: Found GLSL fragment shader. [GLSL]: Linking GLSL program. [GL]: Using 1 textures. [GL]: Loaded 1 program(s). [GL]: Initializing HW render (1024x1024). [GL]: Max texture size: 4096 px, renderbuffer size: 4096 px. [GL]: Supports FBO (render-to-texture). [Joypad]: Found joypad driver: "android". [Font]: Using font rendering backend: "font_renderer_stb_unicode". [Video]: Found display server: "android". core/rend/gles/gles.cpp:544 N[RENDERER]: Open GLES version 2.0 [OpenSL]: Requested audio latency: 0 ms. [OpenSL]: Setting audio latency: Block size = 4096, Blocks = 2, Total = 8192 ... [Display]: Found display driver: "gl". [Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_history.lpl". [Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_music_history.lpl". [Playlist]: Loading history file: "/storage/emulated/0/Android/data/com.retroarch/files/content_image_history.lpl". [Playlist]: Loading favorites file: "/storage/emulated/0/Android/data/com.retroarch/files/content_favorites.lpl". [Environ]: SET_INPUT_DESCRIPTORS: RetroPad, Port 1, Button "B (bottom)" => "A" RetroPad, Port 1, Button "Y (left)" => "X" RetroPad, Port 1, Button "Start" => "Start" RetroPad, Port 1, Button "D-Pad Up" => "D-Pad Up" RetroPad, Port 1, Button "D-Pad Down" => "D-Pad Down" RetroPad, Port 1, Button "D-Pad Left" => "D-Pad Left" RetroPad, Port 1, Button "D-Pad Right" => "D-Pad Right" RetroPad, Port 1, Button "A (right)" => "B" RetroPad, Port 1, Button "X (up)" => "Y" RetroPad, Port 1, Button "L2" => "L Trigger" RetroPad, Port 1, Button "R2" => "R Trigger" RetroPad, Port 2, Button "B (bottom)" => "A" RetroPad, Port 2, Button "Y (left)" => "X" RetroPad, Port 2, Button "Start" => "Start" RetroPad, Port 2, Button "D-Pad Up" => "D-Pad Up" RetroPad, Port 2, Button "D-Pad Down" => "D-Pad Down" RetroPad, Port 2, Button "D-Pad Left" => "D-Pad Left" RetroPad, Port 2, Button "D-Pad Right" => "D-Pad Right" RetroPad, Port 2, Button "A (right)" => "B" RetroPad, Port 2, Button "X (up)" => "Y" RetroPad, Port 2, Button "L2" => "L Trigger" RetroPad, Port 2, Button "R2" => "R Trigger" RetroPad, Port 3, Button "B (bottom)" => "A" RetroPad, Port 3, Button "Y (left)" => "X" RetroPad, Port 3, Button "Start" => "Start" RetroPad, Port 3, Button "D-Pad Up" => "D-Pad Up" RetroPad, Port 3, Button "D-Pad Down" => "D-Pad Down" RetroPad, Port 3, Button "D-Pad Left" => "D-Pad Left" RetroPad, Port 3, Button "D-Pad Right" => "D-Pad Right" RetroPad, Port 3, Button "A (right)" => "B" RetroPad, Port 3, Button "X (up)" => "Y" RetroPad, Port 3, Button "L2" => "L Trigger" RetroPad, Port 3, Button "R2" => "R Trigger" RetroPad, Port 4, Button "B (bottom)" => "A" RetroPad, Port 4, Button "Y (left)" => "X" RetroPad, Port 4, Button "Start" => "Start" RetroPad, Port 4, Button "D-Pad Up" => "D-Pad Up" RetroPad, Port 4, Button "D-Pad Down" => "D-Pad Down" RetroPad, Port 4, Button "D-Pad Left" => "D-Pad Left" RetroPad, Port 4, Button "D-Pad Right" => "D-Pad Right" RetroPad, Port 4, Button "A (right)" => "B" RetroPad, Port 4, Button "X (up)" => "Y" RetroPad, Port 4, Button "L2" => "L Trigger" RetroPad, Port 4, Button "R2" => "R Trigger" [Overrides]: Configuration overrides unloaded, original configuration restored. [Config]: Saved new config to "/storage/emulated/0/Android/data/com.retroarch/files/retroarch.cfg". [Core]: Content ran for a total of: 00 hours, 00 minutes, 38 seconds. [Core]: Unloading game.. [Environ]: GET_VARIABLE: reicast_region = "Default" [Environ]: GET_VARIABLE: reicast_broadcast = "Default" [Environ]: GET_VARIABLE: reicast_language = "Default" [Environ]: GET_VARIABLE: reicast_force_wince = "disabled" [Environ]: GET_VARIABLE: reicast_force_freeplay = "enabled" [Environ]: GET_VARIABLE: reicast_enable_dsp = "enabled" [Environ]: GET_VARIABLE: pvr.rend = "N/A" [Environ]: GET_VARIABLE: reicast_mipmapping = "enabled" [Environ]: GET_VARIABLE: reicast_widescreen_hack = "disabled" [Environ]: GET_VARIABLE: reicast_enable_rttb = "enabled" [Environ]: GET_VARIABLE: reicast_volume_modifier_enable = "disabled" [Environ]: GET_VARIABLE: reicast_texupscale = "1" [Environ]: GET_VARIABLE: reicast_texupscale_max_filtered_texture_size = "256" [Environ]: GET_VARIABLE: reicast_custom_textures = "disabled" [Environ]: GET_VARIABLE: reicast_dump_textures = "disabled" [Environ]: GET_VARIABLE: reicast_fog = "enabled" [Environ]: GET_VARIABLE: rend.PerStripSorting = "N/A" [Environ]: GET_VARIABLE: reicast_delay_frame_swapping = "disabled" [Environ]: GET_VARIABLE: reicast_widescreen_cheats = "disabled" [Environ]: GET_VARIABLE: reicast_frame_skipping = "disabled" [Environ]: GET_VARIABLE: reicast_auto_skip_frame = "disabled" [Environ]: GET_VARIABLE: reicast_threaded_rendering = "enabled" [Environ]: GET_VARIABLE: reicast_anisotropic_filtering = "16" [Environ]: GET_VARIABLE: reicast_texture_filtering = "0" [Environ]: GET_VARIABLE: reicast_pvr2_filtering = "disabled" [Environ]: GET_VARIABLE: reicast_oit_layers = "32" [Environ]: GET_VARIABLE: reicast_native_depth_interpolation = "disabled" [Environ]: GET_VARIABLE: reicast_hle_bios = "disabled" [Environ]: GET_VARIABLE: reicast_gdrom_fast_loading = "enabled" [Core]: Unloading core.. [Core]: Unloading core symbols.. [Core]: Saved core options file to "/storage/emulated/0/RetroArch/config/Flycast/Flycast.opt". WindowFocusChanged: 0xb49f5100 -- 0 Pause: 0xb49f5100
The core is properly closed:
[Core]: Unloading core..
[Core]: Unloading core symbols..
(...)
[Core]: Unloading core..
[Core]: Unloading core symbols..
[Core]: Saved core options file to "/storage/emulated/0/RetroArch/config/Flycast/Flycast.opt".
At this point the Flycast core shared library has been unloaded from memory.
The core is properly closed:
[Core]: Unloading core.. [Core]: Unloading core symbols.. (...) [Core]: Unloading core.. [Core]: Unloading core symbols.. [Core]: Saved core options file to "/storage/emulated/0/RetroArch/config/Flycast/Flycast.opt".
At this point the Flycast core shared library has been unloaded from memory.
Very strange, it loads the game, but when I close the game it just freezes the retroarch.
Also, the last log message indicates that the current Android activity has been paused.
Pause: 0xb49f5100
It should be followed by the corresponding Resume: 0xb49f5100
when it continues.
Also, the last log message indicates that the current Android activity has been paused.
Pause: 0xb49f5100
It should be followed by the corresponding
Resume: 0xb49f5100
when it continues.
And an interesting thing, if I use a september 2021 l version of the flycast core, it works normally. (0.1beb9a61)
I got stack trace of the crash when closing the content, only happens on vulkan. looks related to font rendering? Either way looks like a front-end bug.
04-03 00:54:47.077 20788 20873 I libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
04-03 00:54:47.077 20788 20873 W AudioTrack: set(): notificationFrames=-26 clamped to the range -1 to -8
04-03 00:54:47.088 20788 20873 I AudioTrack: createTrack_l(-1): AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 960
--------- beginning of crash
04-03 00:54:47.161 20788 20873 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 20873 (Thread-3), pid 20788 (com.retr--------- beginning of crash
04-03 00:54:47.577 22570 22570 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-03 00:54:47.578 22570 22570 F DEBUG : Build fingerprint: 'samsung/y2sxx/y2s:13/TP1A.220624.014/G985FXXSFHWB1:user/release-keys'
04-03 00:54:47.578 22570 22570 F DEBUG : Revision: '22'
04-03 00:54:47.578 22570 22570 F DEBUG : ABI: 'arm64'
04-03 00:54:47.578 22570 22570 F DEBUG : Processor: '7'
04-03 00:54:47.578 22570 22570 F DEBUG : Timestamp: 2023-04-03 00:54:47.236904964-0300
04-03 00:54:47.578 22570 22570 F DEBUG : Process uptime: 121s
04-03 00:54:47.578 22570 22570 F DEBUG : Cmdline: com.retroarch
04-03 00:54:47.578 22570 22570 F DEBUG : pid: 20788, tid: 20873, name: Thread-3 >>> com.retroarch <<<
04-03 00:54:47.578 22570 22570 F DEBUG : uid: 10164
04-03 00:54:47.578 22570 22570 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000
04-03 00:54:47.578 22570 22570 F DEBUG : Cause: null pointer dereference
04-03 00:54:47.578 22570 22570 F DEBUG : x0 0000007321b4c070 x1 0000007161b9ad50 x2 0000000000000000 x3 0000000000000000
04-03 00:54:47.578 22570 22570 F DEBUG : x4 0000000000000150 x5 0000000000000b4e x6 000000743eda1000 x7 00000000078603da
04-03 00:54:47.578 22570 22570 F DEBUG : x8 00000070f71bb260 x9 0000000000000001 x10 0000000000000000 x11 0000000000000009
04-03 00:54:47.578 22570 22570 F DEBUG : x12 000000000000784a x13 00000000642a4e07 x14 0009420d08f12580 x15 00005612db12a8d0
04-03 00:54:47.578 22570 22570 F DEBUG : x16 00000070a104adc0 x17 00000070a0925e6c x18 000000709e0e4000 x19 00000070ad18b5a8
04-03 00:54:47.578 22570 22570 F DEBUG : x20 00000070ad18b3f0 x21 00000072a1b7a410 x22 0000000000000200 x23 0000007381ca7080
04-03 00:54:47.578 22570 22570 F DEBUG : x24 0000007321b4c070 x25 0000000000000009 x26 00000070ad18b280 x27 0000000000000000
04-03 00:54:47.578 22570 22570 F DEBUG : x28 0000000000000001 x29 00000070ad18b170
04-03 00:54:47.578 22570 22570 F DEBUG : lr 00000070a09265fc sp 00000070ad18b170 pc 00000070f71bb270 pst 0000000060000000
04-03 00:54:47.578 22570 22570 F DEBUG : backtrace:
04-03 00:54:47.578 22570 22570 F DEBUG : #00 pc 000000000074d270 /vendor/lib64/egl/libGLES_mali.so (vkBindBufferMemory+16) (BuildId: 53ff94fb536d6f7ecc1df4bc84cdb450)
04-03 00:54:47.578 22570 22570 F DEBUG : #01 pc 00000000008a55f8 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (vulkan_create_texture+1760) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #02 pc 00000000008cff28 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #03 pc 00000000008ceab4 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (font_driver_init_first+184) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #04 pc 0000000000b42440 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #05 pc 0000000000b41abc /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #06 pc 0000000000a58654 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #07 pc 0000000000936974 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (menu_driver_init+104) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #08 pc 0000000000935b58 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (drivers_init+1052) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #09 pc 000000000094e9bc /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (retroarch_main_init+8144) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #10 pc 00000000009bf67c /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #11 pc 00000000009271d4 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (task_push_start_dummy_core+388) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #12 pc 0000000000877180 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (command_event+10016) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #13 pc 0000000000a03c0c /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (action_ok_close_content+80) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #14 pc 00000000009fc1c8 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (generic_menu_entry_action+812) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #15 pc 0000000000a5dbf0 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #16 pc 00000000009fcb7c /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (menu_driver_iterate+780) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #17 pc 000000000094aa70 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (runloop_iterate+5044) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #18 pc 0000000000949318 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (rarch_main+692) (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #19 pc 0000000000ac0d1c /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #20 pc 00000000009ae3e8 /data/app/~~eINyKKDzY495TZmK8bFd2Q==/com.retroarch-rFFWlRCsn9T5rgZiFXZxeg==/lib/arm64/libretroarch-activity.so (BuildId: 532aa0ee1ff2d416ca865d47ee4e933bbfcd4ece)
04-03 00:54:47.578 22570 22570 F DEBUG : #21 pc 00000000000b67a8 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 173441c90e5afc5b5229a361bc9d8d2d)
04-03 00:54:47.578 22570 22570 F DEBUG : #22 pc 000000000005340c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 173441c90e5afc5b5229a361bc9d8d2d)
After some more testing, the crash only happens if the frontend is using vulkan. if you have a core overwrite to make flycast use vulkan and the frontend is using gl the crash will not happen. But it's very weird that it only crashes with flycast, I have not been able to repro it with any other core
Linking issues https://github.com/libretro/RetroArch/issues/15155