Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93713

Trivial WASM example crashes when running for a minute

    XMLWordPrintable

Details

    • WebAssembly
    • 7c4363ba4c1b7e0618fc277c0e60cef3242917c0 (qt/qtbase/dev) 560d839461d0baae5d2b7088a32fb0e6f3519a28 (qt/qtbase/dev)

    Description

      Hi, I recently compiled a trivial example to WASM and tried to run it in Chrome, however after a minute or so, the process crashes because of an exception thrown by emscripten (toWireType). Apparently it tries to handle a value which is undefined at the time, passed via __emval_as. The qtbase used for compiling has hash 07516c0811bf0ea02d1a8b4efc7ab7e9d63868f0 (28th of April, dev branch).

      Here is the stack trace:

      toWireType (VM20:5376)
      __emval_as (VM20:5618)
      int emscripten::val::as<int>() const (val.h:496)
      QWasmString::toQString(emscripten::val const&) (qwasmstring.cpp:55)
      QWasmScreen::canvasId() const (qwasmscreen.cpp:103)
      QWasmScreen::updateQScreenAndCanvasRenderSize() (qwasmscreen.cpp:201)
      QWasmScreen::canvasResizeObserverCallback(emscripten::val, emscripten::val) (qwasmscreen.cpp:238)
      emscripten::internal::Invoker<void, emscripten::val, emscripten::val>::invoke(void (emscripten::val, emscripten::val), emscripten::internal::_EM_VAL*, emscripten::internal::_EM_VAL*) (bind.h:354)
      qtCanvasResizeObserverCallback (VM67:9)

      Attachments

        Issue Links

          Activity

            People

              lpotter Lorn Potter
              david.skoland David Skoland
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: