libretro / gpsp

gpSP for libretro.
GNU General Public License v2.0
51 stars 51 forks source link

compiled into wasm run error #251

Closed zelongzheng closed 4 weeks ago

zelongzheng commented 4 weeks ago

Platform: Web page

EXEC statement: 1.emmake make platform=emscripten HAVE_DYNAREC=0 2.emmake make -f Makefile.emscripten LIBRETRO=gbsp -j all

I deleted "SOURCES_ASM := $(CORE_DIR)/bios_data.S" under the "Makefile.common" file so that it can successfully compile the ".bc" file image

无标题2 无标题 I have tested that loading a ROM game file larger than 1MB will immediately throw an "Uncaught RangeError: Maximum call stack size exceeded" exception. The program will freeze before the retro_load_game function. If a file of about 500kb is loaded, the load_game method can be successfully executed. , everything seems to be normal, but after about 10 seconds, the above error will still be thrown and the page will freeze. Is there a way to solve this?

In debug mode, the console will have an infinite loop prompt of ASYNCIFY: maybe stop unwind (hundreds of such repeated logs will be output every second), causing the whole thing to be very stuck. My above tests were all conducted without importing the bios file. Yes, it seems that when the rom file is small, the game can be started as long as the correct bios is imported.