Re: Emscripten port
Posted: Sat Aug 25, 2018 12:06 am
createDevice is one of the startup functions so it looks like the irrlicht library for emscripten is not properly build or linked.
Official forum of the Irrlicht Engine
https://irrlicht.sourceforge.io/forum/
Code: Select all
exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
at irr::IReferenceCounted::drop() const (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[486]:0x1b3f3)
at irr::gui::CGUIImage::~CGUIImage() (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[21709]:0x805dc1)
at irr::gui::CGUIImage::~CGUIImage().1 (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[21711]:0x805ea7)
at irr::gui::CGUIImage::~CGUIImage().2 (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[21714]:0x806021)
at virtual thunk to irr::gui::CGUIImage::~CGUIImage().3 (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[21716]:0x806108)
at irr::IReferenceCounted::drop() const (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[486]:0x1b44f)
at irr::gui::IGUIElement::removeChild(irr::gui::IGUIElement*) (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[560]:0x2253d)
at irr::gui::IGUIElement::remove() (http://127.0.0.1:8887/EmscriptenApp.wasm:wasm-function[562]:0x2289b)
printErr @ EmscriptenApp.html:316
handleException @ EmscriptenApp.js:4320
callUserCallback @ EmscriptenApp.js:4444
runIter @ EmscriptenApp.js:4497
Browser_mainLoop_runner @ EmscriptenApp.js:4403
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
requestAnimationFrame (async)
requestAnimationFrame @ EmscriptenApp.js:4812
Browser_mainLoop_scheduler_rAF @ EmscriptenApp.js:4263
Browser_mainLoop_runner @ EmscriptenApp.js:4416
EmscriptenApp.js:4321 Uncaught RuntimeError: memory access out of bounds
at irr::IReferenceCounted::drop() const (EmscriptenApp.wasm:0x1b3f3)
at irr::gui::CGUIImage::~CGUIImage() (EmscriptenApp.wasm:0x805dc1)
at irr::gui::CGUIImage::~CGUIImage().1 (EmscriptenApp.wasm:0x805ea7)
at irr::gui::CGUIImage::~CGUIImage().2 (EmscriptenApp.wasm:0x806021)
at virtual thunk to irr::gui::CGUIImage::~CGUIImage().3 (EmscriptenApp.wasm:0x806108)
at irr::IReferenceCounted::drop() const (EmscriptenApp.wasm:0x1b44f)
at irr::gui::IGUIElement::removeChild(irr::gui::IGUIElement*) (EmscriptenApp.wasm:0x2253d)
at irr::gui::IGUIElement::remove() (EmscriptenApp.wasm:0x2289b)
Code: Select all
ITexture* curTex = ((IGUIImage*)this->b)->getImage();
driver->removeTexture(curTex);