Sounds like this might be due to not returning to the JS event loop, which
will hang browsers? See

https://emscripten.org/docs/porting/emscripten-runtime-environment.html#browser-main-loop

and also

https://emscripten.org/docs/porting/asyncify.html#sleeping-yielding-to-the-event-loop



On Tue, Apr 14, 2020 at 12:37 PM Larry Kosher <[email protected]> wrote:

> Dear list!
> I have ported an existing C++ project using emscripten. The original
> code used to output progress bar while the CPU intensive operation was
> executed. However it doesn't work with wasm binary. The execution
> starts, the output, and the whole tab is frozen and when the process
> is finished all the results show up in the output with already 100%.
> Is there a way to get the progress bar updates in real-time?
> Thank you!
> --
> Hiisi.
> Registered Linux User #487982. Be counted at: https://linuxcounter.net/
> --
> Spandex is a privilege, not a right.
>
> --
> 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/CAPZcXwZUPY9O8i-Hw2wCXUvKySUFN24T1faysmvvWERdSc0qdQ%40mail.gmail.com
> .
>

-- 
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/CAEX4NpSVJ7ikreb9u7jAZjXY42gKEsG_Y2fLqu471dQbotsGwg%40mail.gmail.com.

Reply via email to