X Tutup
Skip to content

[Bug] [QuickJS] Glitches and crashes #2268

@scambier

Description

@scambier

I'm having several issues with JavaScript, maybe all related to 1bpp sprites:

  1. I draw 1bpp sprites that are supposed to have an opaque background, but are now transparent

image

  1. font() sometimes doesn't work correctly in html exports

In-editor:
image

HTML export:
image

  1. With the same HTML export, I have a crash at runtime with "memory access out of bounds".

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.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup