Solved Web app crashed with WebGL: CONTEXT_LOST_WEBGL error
-
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]:0x735818After 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]:0x1d17d5Sometimes, 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?
-
I found this post. It's related I think. But now, How I wake up the context in Qt.html ?
-
@oria66 hi. did you solved this problem? when i move mouse cursor over the controls
memory access out of bounds
appear with no reason! -
@dacidi my problem solved using release with debug information instead of debug