libretro / flycast

Flycast is a multiplatform Sega Dreamcast emulator. NOTE: No longer actively developed, use upstream repo for libretro from now on - https://github.com/flyinghead/flycast
http://reicast.com
GNU General Public License v2.0
152 stars 77 forks source link

Crashing for Dreamcast Games with latest commits #1097

Open KMFDManic opened 2 years ago

KMFDManic commented 2 years ago

The behavior is a bit of an oddity. If I load a Dreamcast Game, it will crash immediately...unless I open up RetroArch Menu, while the game is loading. If I open up RetroArch, the game runs in the background, and I can even navigate, start it, etc. BUT, moment I click resume, it immediately crashes the content. This seems to be a fairly recent break, somewhere, as this did not occur with earlier compiles. Tested on older, as well as newest RetroArch...same issue persists. I am using default RetroArch AND Flycast Settings. So, there is no runahead enabled, or such. Anything in compilation for a Rpi that might have significantly changed, as far as causing crash on video state? Note, same issue exists for Mupen Plus NX, in "current commits", whereas earlier builds work fine for both Flycast AND Mupen Plus NX.

inactive123 commented 2 years ago

Please mention the platform you're talking about. It's impossible for us to determine with such little information what might be going on.

roo1234 commented 2 years ago

Please mention the platform you're talking about. It's impossible for us to determine with such little information what might be going on.

I researched a little more and the issue was solved by #1020 (installing RetroArch 64 android from the site APK and not play store). Seems that issue persists. Edit - not exactly the same as I was getting crash with vulkan or gl drivers. RetroArch closed just after Sega logo. But solved when APK and new cores installed. Platform: android 10 teclast p20hd

KMFDManic commented 2 years ago

@twinaphex I apologize for neglecting to mention the platform. In any case, older commits work fine. Something changed in more recent ones that offsets things in such a way that content simply crashes upon loading. Platforms are SNES Classic/Retropie 2. If I immediately go into retroarch settings once I load a game, I can hear the game run in the background. But, moment I resume, it crashes.

Thanks in advance for any input on this. I tested with newest retroarch as well as default flycast settings. Compiling older commits, everything works fine. If there is any additional information that I can provide to help pinpoint where the problem is, be sure to let me know.

I can try whatever you recommend, and hopefully that resolves the conflict.

yenke21 commented 2 years ago

Retroarch 32 bit or standard retroarch in 32 bit os, crash on all the devices I have tried since the last commits, on vulkan and open gl

Using old --libretro behavior. Setting libretro_directory to "/data/user/0/com.retroarch.ra32/cores/" instead. RetroArch 1.9.13 (Git 02898a4) === Build ======================================= Funcionalidades: NEON VFPv3 VFPv4 [INFO] Built: Nov 13 2021 [INFO] Version: 1.9.13 [INFO] Git: 02898a4 [INFO] ================================================= [Input]: Found input driver: "android". Environ: SET_PIXEL_FORMAT: RGB565. Versión de la API libretro: 1 [INFO] API usada en la compilación: 1 [Audio]: Set audio input rate to: 48000.00 Hz. [Video]: Video @ 960x720 [Video]: Starting threaded video driver ... Android EGL: GLES version = 2. [EGL] Falling back to eglGetDisplay [EGL]: EGL version: 1.5 [GL]: Found GL context: egl_android [GL]: Detecting screen resolution 0x0. [EGL]: Current context: 0xcd41f8c0. [GL]: Vendor: Qualcomm, Renderer: Adreno (TM) 630. [GL]: Version: OpenGL ES 3.2 V@415.0 (GIT@e541a88, I20154638fb, 1600173890) (Date:09/15/20). [GL]: Using resolution 1080x2157 [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: stb-unicode. [Video]: Found display server: android [OpenSL]: Requested audio latency: 128 ms. [OpenSL]: Setting audio latency: Block size = 576, Blocks = 43, Total = 24768 ... [Display]: Found display driver: "gl". [Font]: Using font rendering backend: stb-unicode. [Font]: Using font rendering backend: stb-unicode. [Font]: Using font rendering backend: stb-unicode. [Font]: Using font rendering backend: stb-unicode. [Font]: Using font rendering backend: stb-unicode. [Font]: Using font rendering backend: stb-unicode. [SRAM]: No se guardará la SRAM. [Playlist]: Cargando historial: [/storage/emulated/0/Android/data/com.retroarch.ra32/files/content_history.lpl]. [Playlist]: Cargando historial: [/storage/emulated/0/Android/data/com.retroarch.ra32/files/content_music_history.lpl]. [Playlist]: Cargando historial: [/storage/emulated/0/Android/data/com.retroarch.ra32/files/content_image_history.lpl]. [Playlist]: Cargando favoritos: [/storage/emulated/0/Android/data/com.retroarch.ra32/files/content_favorites.lpl]. [CONTENT LOAD]: Updating firmware status for: /data/user/0/com.retroarch.ra32/cores/flycast_libretro_android.so on /storage/emulated/0/RetroArch/system [CORE]: Using content: /storage/emulated/0/Download/ggxxac.zip. [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: 877, Frames dropped: 0. RetroArch 1.9.13 (Git 02898a4) === Build ======================================= Funcionalidades: NEON VFPv3 VFPv4 [INFO] Built: Nov 13 2021 [INFO] Version: 1.9.13 [INFO] Git: 02898a4 [INFO] ================================================= jni_thread_destruct() [Input]: Found input driver: "android". [Core]: Loading dynamic libretro core from: "/data/user/0/com.retroarch.ra32/cores/flycast_libretro_android.so" [Overrides]: No 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/Download.cfg". [Overrides]: No game-specific overrides found at "/storage/emulated/0/RetroArch/config/Flycast/ggxxac.cfg".

Environ: GET_LANGUAGE: "3".

[Remaps]: Remap directory: "/storage/emulated/0/RetroArch/config/remaps". [Overrides]: Redirigiendo archivo de guardado a "/storage/emulated/0/RetroArch/saves/ggxxac.srm". [Overrides]: Redirigiendo guardado rápido a "/storage/emulated/0/RetroArch/states/ggxxac.state".

shell/libretro/libretro.cpp:254 N[BOOT]: retro_init

Environ: SET_PIXEL_FORMAT: XRGB8888.

[CONTENT LOAD]: Carga de contenido omitida. La implementación lo cargará por su cuenta. shell/libretro/libretro.cpp:1505 N[BOOT]: retro_load_game: /storage/emulated/0/Download/ggxxac.zip

Environ: SYSTEM_DIRECTORY: "/storage/emulated/0/RetroArch/system".

Environ: SET_SAVE_STATE_IN_BACKGROUND: yes. File extension is: .zip 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 OpenGLES3 context. Reached end of SET_HW_RENDER.

core/hw/mem/_vmem.cpp:504 N[VMEM]: Info: nvmem is enabled, with addr space of size 512MB Pause: 0xcd7fc0e0