replit / kaboom

💥 JavaScript game library
https://kaboomjs.com
MIT License
2.66k stars 226 forks source link

Prevent blue error screen #773

Closed peratik closed 10 months ago

peratik commented 11 months ago

image

Hi, How can prevent blue error screen?

slmjkdbtl commented 11 months ago

Normally blue screen error means there's an error that's unrecoverable and should be fixed, but this one looks like a bug where someplace threw a string instead of an Error. Is there any console output?

peratik commented 11 months ago

the error is not related tokaboom codes.

peratik commented 11 months ago

Doesn't onError work for this?

slmjkdbtl commented 11 months ago

onError adds your own error handler but doesn't replace this error screen. If the error is unrelated to kaboom then it's a bug, it's fixed in v3000.1.7, you can try update kaboom to the latest version

peratik commented 11 months ago

Isn't v3000.1.13 the latest version?

slmjkdbtl commented 11 months ago

You're already on v3000.1.13 and getting error screen from non-Kaboom Error? That's weird. What is the error, can you share the console output?

peratik commented 11 months ago

We use kaboom canvas inside an iframe. It may be a reason to that if there is already a fix. Error message in the parent iframe display inside kaboom that exists in child iframe.

slmjkdbtl commented 11 months ago

Do you have an example I can reproduce? Also what is the error message in the console output?

peratik commented 11 months ago

This is an example:

https://coffee-adria-35.tiiny.site/

Click on the button.

slmjkdbtl commented 11 months ago

Oh sorry I got it mixed up, the fix is not yet published, will be published to the next version soon

peratik commented 11 months ago

Hi, Any ETA for releasing the next version?

slmjkdbtl commented 10 months ago

v3000.0.15 is released, which includes the fix