Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Game will stop #159

Open
Uyouii opened this issue May 17, 2021 · 5 comments
Open

The Game will stop #159

Uyouii opened this issue May 17, 2021 · 5 comments

Comments

@Uyouii
Copy link

Uyouii commented May 17, 2021

No description provided.

@Uyouii
Copy link
Author

Uyouii commented May 17, 2021

when i run the wasm of the project, i found that each game will stop at 256s, and how to fix this problem

@michelhe
Copy link
Owner

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

@Uyouii
Copy link
Author

Uyouii commented May 20, 2021

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. 🤔

@Uyouii
Copy link
Author

Uyouii commented May 20, 2021

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.

@michelhe
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants