Tokamak icon indicating copy to clipboard operation
Tokamak copied to clipboard

RuntimeError: Out of bounds memory access (evaluating 'a.exports')

Open shial4 opened this issue 5 years ago • 2 comments

RuntimeError: Out of bounds memory access (evaluating 'a.exports') To reproduce. Checkout this branch: Github branch with this error and simply try to run the app. It should crash. testes with Firefox and Safari

shial4 avatar Dec 13 '20 22:12 shial4

The crash won't happen if you make either one of the following changes:

  1. Change WebImage from a struct to a class.
  2. Change the name of the target from Games to something else. It seems starting the target name with certain capital letters causes this. games works, as does Tames.

Seems likely the source of this bug is elsewhere in the toolchain rather than in Tokamak itself.

ezraberch avatar Jul 06 '21 20:07 ezraberch

I see. What are the next steps in this case?

Change WebImage from a struct to a class.

Hmm. internal memory management then?

Change the name of the target from Games to something else. It seems starting the target name with certain capital letters causes this. games works, as does Tames.

This seems to be a ridiculous bug

shial4 avatar Jul 06 '21 23:07 shial4