Open arkanoid87 opened 10 months ago
nim 1.6.14 + rund = works nim 1.6.14 + webd = works nim 2.0.0 + rund = works nim 2.0.0 + webd = error
Have the same problem with Nim2.0
Fix it
let dst: Rect = (x.int, y.int, src.w * scale.int, src.h * scale.int)
Can build now with webr on Ubuntu, but I cannot run it in the browser (this is the basic example):
registerOrRemoveHandler: the target element for event handler registration does not exist, when processing the following event handler registration:Object allowsDeferredCalls: true callbackfunc: 609 eventTypeString: "touchstart" handlerFunc: e=> {…} target: null useCapture: 0
and then:
Aborted(Runtime error: The application has corrupted its heap memory area (address zero)!) abort @ niconim.js:1 Uncaught RuntimeError: Aborted(Runtime error: The application has corrupted its heap memory area (address zero)!) at abort (niconim.js:1:20947) at checkStackCookie (niconim.js:1:17381) at handleException (niconim.js:1:99085) at callUserCallback (niconim.js:1:118954) at Object.runIter (niconim.js:1:129885) at Browser_mainLoop_runner (niconim.js:1:128289)
@HVukman Sorry I haven't use nico in linux so don't know .
But you can test it.
nim c -d:emscripten -o:exampleApp.html src/main.nim
emrun exampleApp.html
^ This works under WIndows, thanks. Edit: if anybody stumbles upon this and uploads their game on itch.io: You need to enable SharedBufferSupport https://itch.io/t/2025776/experimental-sharedarraybuffer-support