ITotalJustice / notorious_beeg

gba emulator written in c++23
https://notorious-beeg.netlify.app/
GNU General Public License v3.0
41 stars 4 forks source link

[WEB] instant crash when any game jumps to arm mode android chrome #89

Closed ITotalJustice closed 2 years ago

ITotalJustice commented 2 years ago

this only happens when building with arm_switch.cpp. if built with arm_table.cpp then it works. this is not a bug in my code as i have stepped through and diffed instruction by instruction when emulating. also, arm_switch.cpp is generated from the same code as arm_table.cpp

this crash only happens on mobile chrome-based browsers such as chrome, edge, opera.

it works in firefox mobile and safari on ios

it also works on desktop, all desktop web browsers (including chrome).

looks like it could be related to https://github.com/emscripten-core/emscripten/issues/14013, although i cannot see the issue tracker that was opened on chromium.

the solution for now is to do web builds using LUT instead giant switches.