emscripten-scummvm
emscripten-scummvm copied to clipboard
Looking at the Lost Dialog of Plato in Indy 4 halts the game
Doesn't seem to matter when you do it, but my cpu spins up to 100%.
Thanks for reporting!
I can reproduce, and the crash site says:
[01:13:43.916] uncaught exception: Assertion failed: dst->format.bytesPerPixel == 1 || dst->format.bytesPerPixel == 2, at: graphics/fonts/bdf.cpp,105,virtual void Graphics::BdfFont::drawChar(Graphics::Surface *, byte, const int, const int, const uint32) const at ___assert_func@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:2280 Runtime.dynCall@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:452 Runtime.getFuncWrapper/Runtime.funcWrappers[func]@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:482 wrapper@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:3331 Browser.safeSetTimeout/<@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:1826 [01:13:44.079] uncaught exception: Assertion failed: _size < MAX_SIZE, at: ./common/stack.h,49,void Common::FixedStack<GUI::Dialog *, 10>::push(const T &) [T = GUI::Dialog *, MAX_SIZE = 10] at ___assert_func@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:2280 Runtime.dynCall@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:452 Runtime.getFuncWrapper/Runtime.funcWrappers[func]@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:482 wrapper@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:3331 Browser.safeSetTimeout/<@http://clb.demon.fi/html5scummvm/atlantis/atlantis.html:1826
This is most likely due to that the HTML5 version uses 32-bit colors instead of 16-bit colors that the native version did. 16-bit colors are not supported in the SDL implementation of Emscripten, hence the workaround. Will be looked into.