rustboyadvance-ng
rustboyadvance-ng copied to clipboard
The Game will stop
when i run the wasm of the project, i found that each game will stop at 256s, and how to fix this problem
Hey, thanks for reporting!
Can you tell which ROM, and what is happening exactly? And please attach a screenshot/paste of your browsers developer tools console when the bug occurs
thank you for your reply.
What bothers me is that there are no errors when the problem arises.
The problem is that at the 256*60th frame, the picture frame returned by gba wasm will return the same as the previous frame and will not change, the sound data is not returning, and there is no error.
But the demo on this project website does not have this problem. 🤔
My environment is not a standard web environment, so I modified the interface for generating wasm files. Instead of passing in context2d, I got the frame data and returned it directly.
Sounds like a segfault to me.
What games have you tried? Maybe they have something in common that is not emulated correctly.
I'd suggest trying them out on the sdl2 application and run it through a command line terminal, you would probably get more meaningful error information.
You can build it yourself as described on the README or download the build from GitHub actions