Issue with Chrome Version 79.0.3928.4 (Official Build) dev (64-bit)

42 views
Skip to first unread message

Mehdi Sabwat

unread,
Oct 11, 2019, 10:08:50 AM10/11/19
to emscripten-discuss
Hi, I am running into this error in the generated js runtime:

Uncaught RangeError: Start offset undefined is outside the bounds of the buffer
    at
new Int8Array (<anonymous>)
    at updateGlobalBufferAndViews
(experimental.js:1402)
    at experimental
.js:1475

It seems to come from this autogenerated function, 

function updateGlobalBufferAndViews(buf) {
  buffer
= buf;
 
Module['HEAP8'] = HEAP8 = new Int8Array(buf);
 
Module['HEAP16'] = HEAP16 = new Int16Array(buf);
 
Module['HEAP32'] = HEAP32 = new Int32Array(buf);
 
Module['HEAPU8'] = HEAPU8 = new Uint8Array(buf);
 
Module['HEAPU16'] = HEAPU16 = new Uint16Array(buf);
 
Module['HEAPU32'] = HEAPU32 = new Uint32Array(buf);
 
Module['HEAPF32'] = HEAPF32 = new Float32Array(buf);
 
Module['HEAPF64'] = HEAPF64 = new Float64Array(buf);
}


called here:

// If the user provides an incorrect length, just use that length instead rather than providing the user to
// specifically provide the memory length with Module['TOTAL_MEMORY'].
INITIAL_TOTAL_MEMORY
= buffer.byteLength;
assert(INITIAL_TOTAL_MEMORY % WASM_PAGE_SIZE === 0);
updateGlobalBufferAndViews
(buffer);


I am using TOTAL_MEMORY=1GB. I currently have no idea where this error might come from and would love it if someone could help.

the files are hosted here:

Thank you, 

Regards

Alon Zakai

unread,
Oct 11, 2019, 4:11:56 PM10/11/19
to emscripte...@googlegroups.com
Which browser do you see the problem on? On Chrome 77 it loads and shows the video correctly.

I know there have been some recent bugs in this area, like a recent Chrome beta regression with 1GB heaps, and a recent Firefox nightly regression with pthreads, and this app seems to use both those features :) So it might be one of those two.

- Alon



--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/45871afe-a769-49c1-8804-2a9800024423%40googlegroups.com.

Mehdi Sabwat

unread,
Oct 11, 2019, 4:49:03 PM10/11/19
to emscripte...@googlegroups.com
Hi,

Thanks, on Chrome beta 79.0.3928.4.

I think I got the Firefox nightly regression too (ticket 1587394). Is there a workaround for the Chrome heap issue? Is there something I can do on my end to help ? 

Alon Zakai

unread,
Oct 11, 2019, 5:14:25 PM10/11/19
to emscripte...@googlegroups.com
Thanks for the info - ok, then yes, it sounds like that Chrome beta regression,


It's marked as blocking beta, so I think it's a high priority to fix.

I don't think there's a workaround, or any help that's needed. Can only use another version (like stable) for now, and wait for the fix.

- Alon


Mehdi Sabwat

unread,
Oct 11, 2019, 5:22:12 PM10/11/19
to emscripte...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages