melonDS-android icon indicating copy to clipboard operation
melonDS-android copied to clipboard

Super Mario 256 JIT Crash

Open poudink opened this issue 2 years ago • 1 comments

  • Device model: Galaxy S7 Snapdragon (SM-G930U)
  • Android version: 8.0.0

Problem: The demo of the Super Mario 64 DS hack Super Mario 256 (available here: http://kuribo64.net/board/thread.php?id=3119) crashes right after the initial loading screen if the JIT recompiler is enabled. The screen will turn red for a split second and you will be taken back to the menu with a crash message. My phone is old-ish, but it is 64bit and should be compatible with the JIT, so I don't believe it is the source of the issue, though this should probably be fixed even if it is. Official melonDS's x86 JIT has no problem with the game (all optimizations enabled, max block size), but I am unable to test its ARM64 JIT (I don't have a hacked Switch or an ARM PC) though, so I can't say for sure that this issue doesn't happen in official melonDS.

Steps to reproduce:

  1. Patch your SM64DS rom with the SM256 patch (Andoid users can use UniPatcher for this, PC users should use the bundled xdelta program).
  2. Place the patched ROM in your ROM folder.
  3. Enable the JIT in the settings.
  4. Load the game.

Screenshots: Screenshot_20210823-141954_melonDS

poudink avatar Aug 23 '21 18:08 poudink

Update: it appears that Lemuroid's melonDS core does not share this issue. This suggests that the issue is indeed with this emulator and not with the original ARM64 JIT implementation. The Lemuroid melonDS core isn't official though, so I can't say for sure. EDIT: Switch version works fine too.

poudink avatar Aug 23 '21 19:08 poudink