-
-
Notifications
You must be signed in to change notification settings - Fork 492
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
[Bug] [QuickJS] Glitches and crashes #2268
Comments
@scambier could you pls provide the cart and we will try to reproduce it? |
👍 I'll make you a minimal reproducible cart (or at least remove as much noise as possible) asap |
thank you, waiting... |
I tried to get a minimal cart for the following glitch: And, there's probably something that goes very wrong during the wasm compilation, as the glitch was seemingly randomly disappearing when removing unrelated and unused classes and functions. I managed to make 2 carts, one that works and another that doesn't, with a minimal diff. I hope it will be enough, as there's still a lot of useless code. quickjs_not_glitchy.zip If you check the diff of both carts, you'll notice that the only difference is the presence of an unused A few other tests I tried:
So huh, good luck I guess 😅 |
Fixed here 7ea81e2 |
I'm having several issues with JavaScript, maybe all related to 1bpp sprites:
font()
sometimes doesn't work correctly in html exportsIn-editor:
HTML export:
Uncaught RuntimeError: memory access out of bounds
at tic80.wasm:0x8051
at tic80.wasm:0x2b2cba
at tic80.wasm:0xd8769
at tic80.wasm:0x1b26cc
at tic80.wasm:0x8926
at tic80.wasm:0x320d7
at tic80.wasm:0x64a0d
at tic80.wasm:0x29b47d
at tic80.wasm:0x2b6fe8
at tic80.wasm:0x2143f
I'm pretty sure those issues can be linked to QuickJS and 1bpp usage :/
Sorry I don't have much more details to give, due to the time it would take to update the code, export, and re-test. I also think TIC-80 would greatly benefit from an extensive suite of tests carts written in all supported languages.
The text was updated successfully, but these errors were encountered: