Qtweb issues


Please read tips for efficient and successful posting and posting code

_ROOT Version: 6.32.06
_Platform: archlinux
_Compiler: gcc 14.2.1
the command of cmake root:

sudo cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src -Dwebgui=ON -Dqt6web=ON -Droot7=ON 

and the issues:

Path override failed for key base::DIR_APP_DICTIONARIES and path '/home/haibara_ai/qt/QRoot/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Path override failed for key base::DIR_APP_DICTIONARIES and path '/usr/lib/qt6/qtwebengine_dictionaries'
Info in <TGeoManager::TGeoManager>: Geometry tubeseg, poza3 created
Info in <TGeoManager::SetTopVolume>: Top volume is TOP. Master volume is TOP
Info in <TGeoNavigator::BuildCache>: --- Maximum geometry depth set to 100
Info in <TGeoManager::CheckGeometry>: Fixing runtime shapes...
Info in <TGeoManager::CheckGeometry>: ...Nothing to fix
Info in <TGeoManager::CloseGeometry>: Counting nodes...
Info in <TGeoManager::Voxelize>: Voxelizing...
Info in <TGeoManager::CloseGeometry>: Building cache...
Info in <TGeoManager::CountLevels>: max level = 1, max placements = 1
Info in <TGeoManager::CloseGeometry>: 2 nodes/ 2 volume UID's in poza3
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
Warning in <[ROOT.QtWebDisplay] Warning /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:49 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/gpad/RPadPainter.mjs:213: findInPrimitives not implemented for RPad
[70725:70809:1004/191501.425594:ERROR:context_group.cc(154)] ContextResult::kFatalFailure: WebGL2 blocklisted
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Mesa, GL_RENDERER = llvmpipe (LLVM 18.1.8, 256 bits), GL_VERSION = 24.2.3, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8261, ErrorMessage = BindToCurrentSequence failed: .
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Failed to create a WebGL2 context.
[70725:70809:1004/191501.435059:ERROR:context_group.cc(146)] ContextResult::kFatalFailure: WebGL1 blocklisted
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Mesa, GL_RENDERER = llvmpipe (LLVM 18.1.8, 256 bits), GL_VERSION = 24.2.3, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8261, ErrorMessage = BindToCurrentSequence failed: .
[70725:70809:1004/191501.442017:ERROR:context_group.cc(146)] ContextResult::kFatalFailure: WebGL1 blocklisted
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Mesa, GL_RENDERER = llvmpipe (LLVM 18.1.8, 256 bits), GL_VERSION = 24.2.3, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8261, ErrorMessage = BindToCurrentSequence failed: .
[70725:70809:1004/191501.447779:ERROR:context_group.cc(154)] ContextResult::kFatalFailure: WebGL2 blocklisted
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Mesa, GL_RENDERER = llvmpipe (LLVM 18.1.8, 256 bits), GL_VERSION = 24.2.3, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8261, ErrorMessage = BindToCurrentSequence failed: .
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Failed to create a WebGL2 context.
[70725:70809:1004/191501.454102:ERROR:context_group.cc(146)] ContextResult::kFatalFailure: WebGL1 blocklisted
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Mesa, GL_RENDERER = llvmpipe (LLVM 18.1.8, 256 bits), GL_VERSION = 24.2.3, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8261, ErrorMessage = BindToCurrentSequence failed: .
[70725:70809:1004/191501.459720:ERROR:context_group.cc(146)] ContextResult::kFatalFailure: WebGL1 blocklisted
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:29373: THREE.WebGLRenderer: A WebGL context could not be created. Reason:  Could not create a WebGL context, VENDOR = 0xffff, DEVICE = 0xffff, GL_VENDOR = Mesa, GL_RENDERER = llvmpipe (LLVM 18.1.8, 256 bits), GL_VERSION = 24.2.3, Sandboxed = no, Optimus = no, AMD switchable = no, Reset notification strategy = 0x8261, ErrorMessage = BindToCurrentSequence failed: .
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:28949: THREE.WebGLRenderer: Error creating WebGL context.
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/jsrootsys/modules/three.mjs:28921: Uncaught (in promise) Error: Error creating WebGL context.
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rootwebpage.cpp:54 in virtual void RootWebPage::javaScriptConsoleMessage(QWebEnginePage::JavaScriptConsoleMessageLevel, const QString&, int, const QString&)>: rootscheme://root.server1/rootui5sys/geom/lib/GeomDrawing.js:48: Uncaught TypeError: Cannot read properties of null (reading 'domElement')
Error in <[ROOT.QtWebDisplay] Error /home/haibara_ai/qt/root/root_src/gui/qt5webdisplay/rooturlschemehandler.cpp:127 in virtual void TWebGuiCallArg::HttpReplied()>: Qt 6.7.3 request FAIL path win3 file root.longpoll

I would be very grateful if it could solve my problem

Hello,

I think this might be a question for @linev or @couet.

Yes @linev will know.

Hi,

For some reasons WebGL is not working in your QWebEngine. This make impossible to use 3D graphics. Searching in internet, I found possible workaround here:

Can you try to export following shell variable before starting qtweb application:

export QTWEBENGINE_CHROMIUM_FLAGS=--ignore-gpu-blacklist

And if you are not interested in 3D graphics (like geometry viewer or lego plots),
one can provide qtweb application without these elements shown by default.

thanks, but nothing has changed. I have had a lot of problems about web with WSL. I will try it on another linux after three days. thanks again.