Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Web app crashed with WebGL: CONTEXT_LOST_WEBGL error
Forum Updated to NodeBB v4.3 + New Features

Web app crashed with WebGL: CONTEXT_LOST_WEBGL error

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
4 Posts 2 Posters 820 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • oria66O Offline
    oria66O Offline
    oria66
    wrote on last edited by oria66
    #1

    Hi, I made a web app that uses Qt Quick with C++ and I decide to test it with Web with Qt for WebAssembly new feature. The application itself interact with a REST API normally and shows data. This data consists of some numbers and two images with 3000x3000 px. The application doesn't have data streaming in real-time.

    In the beginning, the app runs fine. However, after 5-20 min run perfectly without any user interaction or secondary task running behind, the app crashes it, shows an empty screen with the Qt Icon and shows this error in the navigator console:

    WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
    3qtloader.js:382 Buffer creation failed
    qtloader.js:382 exception thrown: TypeError: Cannot set property 'name' of null,TypeError: Cannot set property 'name' of null
    at _emscripten_glCreateProgram (eval at completeLoadEmscriptenModule (http://x.x.x.x/qtloader.js:443:14), <anonymous>:1:192809)
    at wasm-function[5298]:0x1819bc
    at wasm-function[2025]:0x6f4f5
    at wasm-function[19939]:0x7019b8
    at wasm-function[19957]:0x708998
    at wasm-function[40448]:0xde0c8c
    at wasm-function[40456]:0xde4dea
    at wasm-function[5470]:0x188d57
    at wasm-function[42985]:0xec4691
    at wasm-function[20323]:0x735818
    VM14:1 Uncaught TypeError: Cannot set property 'name' of null
    at _emscripten_glCreateProgram (eval at completeLoadEmscriptenModule (qtloader.js:443), <anonymous>:1:192809)
    at /wasm-function[5298]:0x1819bc
    at /wasm-function[2025]:0x6f4f5
    at /wasm-function[19939]:0x7019b8
    at /wasm-function[19957]:0x708998
    at /wasm-function[40448]:0xde0c8c
    at /wasm-function[40456]:0xde4dea
    at /wasm-function[5470]:0x188d57
    at /wasm-function[42985]:0xec4691
    at /wasm-function[20323]:0x735818

    Kazam_screenshot_00003.png

    After 1804 times approx showing the pr![alt text](image url)evious error, then came a new one:

    VM33126:1 Uncaught RuntimeError: memory access out of bounds
    at wasm-function[2357]:0x8b4fb
    at wasm-function[19435]:0x6df14a
    at wasm-function[9249]:0x308452
    at wasm-function[2083]:0x73880
    at wasm-function[45323]:0xf5eaa9
    at wasm-function[45325]:0xf5ebe9
    at wasm-function[44797]:0xf3d43a
    at wasm-function[44815]:0xf3f7b5
    at wasm-function[44816]:0xf3ffc0
    at wasm-function[6330]:0x1d17d5
    qtloader.js:382 exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
    at wasm-function[2357]:0x8b4fb
    at wasm-function[19435]:0x6df14a
    at wasm-function[9249]:0x308452
    at wasm-function[2083]:0x73880
    at wasm-function[45323]:0xf5eaa9
    at wasm-function[45325]:0xf5ebe9
    at wasm-function[44797]:0xf3d43a
    at wasm-function[44815]:0xf3f7b5
    at wasm-function[44816]:0xf3ffc0
    at wasm-function[6330]:0x1d17d5

    Kazam_screenshot_00004.png

    Sometimes, the text below the Qt Icon says Application exit (18) or sometimes Application exit (1)

    In order to clarify things, the same application in Linux Desktop runs perfectly without any problem for large open sessions of the same app.

    Qt 5.14.0

    Any suggestions about what's going on?

    The truth is out there

    D 1 Reply Last reply
    0
    • oria66O Offline
      oria66O Offline
      oria66
      wrote on last edited by oria66
      #2

      I found this post. It's related I think. But now, How I wake up the context in Qt.html ?

      https://www.khronos.org/webgl/wiki/HandlingContextLost

      The truth is out there

      1 Reply Last reply
      0
      • oria66O oria66

        Hi, I made a web app that uses Qt Quick with C++ and I decide to test it with Web with Qt for WebAssembly new feature. The application itself interact with a REST API normally and shows data. This data consists of some numbers and two images with 3000x3000 px. The application doesn't have data streaming in real-time.

        In the beginning, the app runs fine. However, after 5-20 min run perfectly without any user interaction or secondary task running behind, the app crashes it, shows an empty screen with the Qt Icon and shows this error in the navigator console:

        WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost
        3qtloader.js:382 Buffer creation failed
        qtloader.js:382 exception thrown: TypeError: Cannot set property 'name' of null,TypeError: Cannot set property 'name' of null
        at _emscripten_glCreateProgram (eval at completeLoadEmscriptenModule (http://x.x.x.x/qtloader.js:443:14), <anonymous>:1:192809)
        at wasm-function[5298]:0x1819bc
        at wasm-function[2025]:0x6f4f5
        at wasm-function[19939]:0x7019b8
        at wasm-function[19957]:0x708998
        at wasm-function[40448]:0xde0c8c
        at wasm-function[40456]:0xde4dea
        at wasm-function[5470]:0x188d57
        at wasm-function[42985]:0xec4691
        at wasm-function[20323]:0x735818
        VM14:1 Uncaught TypeError: Cannot set property 'name' of null
        at _emscripten_glCreateProgram (eval at completeLoadEmscriptenModule (qtloader.js:443), <anonymous>:1:192809)
        at /wasm-function[5298]:0x1819bc
        at /wasm-function[2025]:0x6f4f5
        at /wasm-function[19939]:0x7019b8
        at /wasm-function[19957]:0x708998
        at /wasm-function[40448]:0xde0c8c
        at /wasm-function[40456]:0xde4dea
        at /wasm-function[5470]:0x188d57
        at /wasm-function[42985]:0xec4691
        at /wasm-function[20323]:0x735818

        Kazam_screenshot_00003.png

        After 1804 times approx showing the pr![alt text](image url)evious error, then came a new one:

        VM33126:1 Uncaught RuntimeError: memory access out of bounds
        at wasm-function[2357]:0x8b4fb
        at wasm-function[19435]:0x6df14a
        at wasm-function[9249]:0x308452
        at wasm-function[2083]:0x73880
        at wasm-function[45323]:0xf5eaa9
        at wasm-function[45325]:0xf5ebe9
        at wasm-function[44797]:0xf3d43a
        at wasm-function[44815]:0xf3f7b5
        at wasm-function[44816]:0xf3ffc0
        at wasm-function[6330]:0x1d17d5
        qtloader.js:382 exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
        at wasm-function[2357]:0x8b4fb
        at wasm-function[19435]:0x6df14a
        at wasm-function[9249]:0x308452
        at wasm-function[2083]:0x73880
        at wasm-function[45323]:0xf5eaa9
        at wasm-function[45325]:0xf5ebe9
        at wasm-function[44797]:0xf3d43a
        at wasm-function[44815]:0xf3f7b5
        at wasm-function[44816]:0xf3ffc0
        at wasm-function[6330]:0x1d17d5

        Kazam_screenshot_00004.png

        Sometimes, the text below the Qt Icon says Application exit (18) or sometimes Application exit (1)

        In order to clarify things, the same application in Linux Desktop runs perfectly without any problem for large open sessions of the same app.

        Qt 5.14.0

        Any suggestions about what's going on?

        D Offline
        D Offline
        dacidi
        wrote on last edited by dacidi
        #3

        @oria66 hi. did you solved this problem? when i move mouse cursor over the controls memory access out of bounds appear with no reason!

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dacidi
          wrote on last edited by
          #4

          @dacidi my problem solved using release with debug information instead of debug

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved