On Quest2 Oculus browser I am loading KTX2 files as in below snippet and apply them as texture. After having loaded and
disposed (texture.dispose()) several unique ones, at random moments the below wasm exception appears. Using THREE 130.
Anyone got the same and found a solution? I suppose an update if the basis transcoder libs (setTranscoderPath) could do the trick but which one? Or a work-around maybe?
With Firefox Reality on Quest2 everything is 100% normal !
Loader
var ktx2Loader = new THREE.KTX2Loader();
ktx2Loader.setTranscoderPath( 'examples/js/libs/basis/' );
ktx2Loader.detectSupport( renderer );
ktx2Loader.load( 'diffuse.ktx2', function ( texture ) {
..bla..
});
WASM expception
abort @ da641868-08df-4458-a606-5dc5b194324f:14
_abort @ da641868-08df-4458-a606-5dc5b194324f:14
(anonymous) @ 001adf2e:0x55c
(anonymous) @ 001adf2e:0x19c9c
(anonymous) @ 001adf2e:0x240e9
transcodeUASTCImage @ VM91:25
transcodeLowLevel @ da641868-08df-4458-a606-5dc5b194324f:173
(anonymous) @ da641868-08df-4458-a606-5dc5b194324f:56
Promise.then (async)
onmessage @ da641868-08df-4458-a606-5dc5b194324f:51
da641868-08df-4458-a606-5dc5b194324f:71 RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
at abort (da641868-08df-4458-a606-5dc5b194324f:14)
at _abort (da641868-08df-4458-a606-5dc5b194324f:14)
at <anonymous>:wasm-function[34]:0x55c
at <anonymous>:wasm-function[151]:0x19c9c
at <anonymous>:wasm-function[228]:0x240e9
at Object.transcodeUASTCImage (eval at new_ (da641868-08df-4458-a606-5dc5b194324f:1), <anonymous>:25:10)
at transcodeLowLevel (da641868-08df-4458-a606-5dc5b194324f:173)
at da641868-08df-4458-a606-5dc5b194324f:56
(anonymous) @ da641868-08df-4458-a606-5dc5b194324f:71
Promise.then (async)
onmessage @ da641868-08df-4458-a606-5dc5b194324f:51
Out of memory
Also received this out of memory. I disposed as much as i can. not sure what sle i can call to free this memory…
failed to asynchronously prepare wasm: RangeError: WebAssembly.instantiate(): Out of memory: wasm memory
(anonymous) @ d1be675a-256d-4966-bd24-47aef484bbd6:14
Promise.then (async)
instantiateArrayBuffer @ d1be675a-256d-4966-bd24-47aef484bbd6:14
instantiateAsync @ d1be675a-256d-4966-bd24-47aef484bbd6:14
createWasm @ d1be675a-256d-4966-bd24-47aef484bbd6:14
(anonymous) @ d1be675a-256d-4966-bd24-47aef484bbd6:14
(anonymous) @ d1be675a-256d-4966-bd24-47aef484bbd6:89
init @ d1be675a-256d-4966-bd24-47aef484bbd6:86
onmessage @ d1be675a-256d-4966-bd24-47aef484bbd6:47