tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

reflex panic: bootstrap type wrong id: mapType mapType not <nil>

Open cdvelop opened this issue 2 years ago • 1 comments

hi. I am trying to compile using reflex. I have this error:

app_test.wasm:0x431a Uncaught (in promise) RuntimeError: unreachable at runtime._panic (app_test.wasm:0x431a) at encoding/gob.checkId (app_test.wasm:0xeba6b) at runtime.initAll (app_test.wasm:0xd6544) at runtime.run$1 (app_test.wasm:0xd3d36) at runtime.run$1$gowrapper (app_test.wasm:0xce27a) at tinygo_launch (app_test.wasm:0xddb) at (*internal/task.Task).Resume (app_test.wasm:0x1da9a) at runtime.scheduler (app_test.wasm:0xce310) at _start (app_test.wasm:0xce1b1) at _start.command_export (app_test.wasm:0x174d8e) $runtime._panic @ app_test.wasm:0x431a $encoding/gob.checkId @ app_test.wasm:0xeba6b $runtime.initAll @ app_test.wasm:0xd6544 $runtime.run$1 @ app_test.wasm:0xd3d36 $runtime.run$1$gowrapper @ app_test.wasm:0xce27a $tinygo_launch @ app_test.wasm:0xddb $(*internal/task.Task).Resume @ app_test.wasm:0x1da9a $runtime.scheduler @ app_test.wasm:0xce310 $_start @ app_test.wasm:0xce1b1 $_start.command_export @ app_test.wasm:0x174d8e run @ main.js:154 (anonymous) @ main.js:161

The package that generates that error is this: https://github.com/cdvelop/object

I am currently working on a personal project where I am bringing all the code from the backend to the frontend and my final compilation destination is tinygo. That is why I am not importing packages if they are not compatible with this compiler.

It is the first time that I write to report an error... and I do it through Google Translate... sorry if it is not understood... it is for that reason...

Thank you very much for your time

cdvelop avatar Dec 02 '23 21:12 cdvelop

I'm also seeing this error when trying to compile a program that is using encoding/gob. This was while trying to run a test on amd64 linux.

The magic number check wants 23 and gets 22. I thought this was just because tinygo has something slightly out of order (or a field missing) compared to go, but after an hour of trying to run down where this magic number comes from, I'm stumped.

sparques avatar Mar 27 '24 17:03 sparques