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

Can we display a warning if a browser does not support WebAssembly? #12

Open
chrismgraham opened this issue Sep 28, 2022 · 4 comments
Open

Comments

@chrismgraham
Copy link

I've had a few cases of students on macs who get stuck on "Your answer is being marked. Please wait". The ones I've looked into are using Safari, and I guess unless you keep your OS up to date you can easily end up on a version <14.0 that doesn't support WebAssembly. Is there a way to catch that it is an incompatible browser and display a message?

@christianp
Copy link
Member

Is it WebAssembly, or web workers? I suppose we'd better check for both.

@christianp
Copy link
Member

testing this will be a knacker...

@chrismgraham
Copy link
Author

I'm not sure, but the error message I get in 13.0.5 is "Unhandled Promise Rejection: Error: Script error." and points to the loadPyodide line.

There's perhaps a related thing (or even an alternative if checking browsers is too hard) that the "being marked" message could have a timeout and then tell the student 'something' has gone wrong (not sure what we do then though - e-mail, troubleshooting page...?)

@christianp
Copy link
Member

I think rather than trying to reproduce this specific error, we need to make sure any error thrown along the way is handled properly. It sounds like I'm not catching an error thrown somewhere around loadPyodide.

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