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



On Fri, Oct 11, 2019 at 7:08 AM Mehdi Sabwat <[email protected]> wrote:

> 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:
> http://msabwat.gitlab.io/demo/experimental.html
>
> Thank you,
>
> Regards
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/45871afe-a769-49c1-8804-2a9800024423%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/45871afe-a769-49c1-8804-2a9800024423%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpRH4A1B619EtQ2-a7wJ2apCZSYu_kNYfWzhSXEmsThT_g%40mail.gmail.com.

Reply via email to