qt.qpa.xcb: could not connect to display :1.0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
-
What output do you get from paraview if you set QT_DEBUG_PLUGINS to 1 ?
-
wrote on 27 Jan 2022, 06:19 last edited by
@SGaist
I get the following output:QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms/libqxcb.so" Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": { "Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("xcb") QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/platforms" ... loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforms/libqxcb.so" loaded library "Xcursor" QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platformthemes" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/platformthemes" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts" ... QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata= { "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1", "MetaData": { "Keys": [ "compose", "xim" ] }, "archreq": 0, "className": "QComposePlatformInputContextPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("compose", "xim") QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/platforminputcontexts" ... loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/styles" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/styles" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines" ... QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines/libqsvgicon.so" Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines/libqsvgicon.so, metadata= { "IID": "org.qt-project.Qt.QIconEngineFactoryInterface", "MetaData": { "Keys": [ "svg", "svgz", "svg.gz" ] }, "archreq": 0, "className": "QSvgIconPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("svg", "svgz", "svg.gz") QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/iconengines" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats" ... QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats/libqsvg.so" Found metadata in lib /home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats/libqsvg.so, metadata= { "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface", "MetaData": { "Keys": [ "svg", "svgz" ], "MimeTypes": [ "image/svg+xml", "image/svg+xml-compressed" ] }, "archreq": 0, "className": "QSvgPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("svg", "svgz") QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/imageformats" ... loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/imageformats/libqsvg.so" loaded library "/home/b/OpenFOAM/ParaView-5.9.1/plugins/iconengines/libqsvgicon.so" QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/accessible" ... QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/bin/accessible" ... VisRTX 0.1.6, using devices: 0: NVIDIA GeForce RTX 3050 Ti Laptop GPU (Total: 4.1 GB, Available: 4.0 GB) debug: In unknown, line 0 debug: QFactoryLoader::QFactoryLoader() checking directory path "/home/b/OpenFOAM/ParaView-5.9.1/plugins/xcbglintegrations" ... debug: In unknown, line 0 debug: QFactoryLoader::QFactoryLoader() looking at "/home/b/OpenFOAM/ParaView-5.9.1/plugins/xcbglintegrations/libqxcb-glx-integration.so"
-
wrote on 27 Jan 2022, 07:53 last edited by
Hi, paraview works because is using it's own Qt (version 5.9.1).
On the same PC you also have Qt version 5.12.8 and 5.12.9 installed. Having more than one version of Qt installed on the same computer is always risky :.-(
Try to get rid of that qt5-default Qt version 5.12.8 and instead install complete versions of flameshot and gnuplot (so that they get also get their own, internal Qt version, like paraview has now). -
wrote on 22 Dec 2022, 12:13 last edited by
I am using a remote Jupyter notebook and trying to start the qtconsole but getting the following error.
qt.qpa.xcb: could not connect to display :0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.
I have tried both
export DISPLAY=:0
$
export DISPLAY=:1 -
When you say remote, how are you accessing it ?
-
wrote on 22 Dec 2022, 14:24 last edited by muhammad4997
@SGaist I access it via IP and port like
http://<IP>:8999The Jupyter is deployed on another server machine
-
So you have a JupyterLab session running ?
-
wrote on 23 Dec 2022, 10:13 last edited by
@SGaist No its not a JupyterLab session. It is only notebook running on a remote machine. On remote machine i installed it via
"pip install notebook" -
What is your exact setup ?
You seem to be running your notebook in a browser. -
Hi,
Any chances that your desktop environment runs on top of Wayland ?
What are you currently using ?
wrote on 22 Jan 2023, 16:19 last edited by@SGaist Hello, I got the same problem as this post "qt.qpa.xcb: could not connect to display. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. And I am installing code_saturne v7.2.0 in WSL ubuntu 20.04.5. It seems like my laptop environment runs on Wayland, since when I use synaptic, it showed that: 'Probably you're running Synaptic on Wayland with root permission.
Please restart your session without Wayland, or run Synaptic without root permission.'
Do you have any suggestions about this? Very appreciate. -
@SGaist Hello, I got the same problem as this post "qt.qpa.xcb: could not connect to display. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. And I am installing code_saturne v7.2.0 in WSL ubuntu 20.04.5. It seems like my laptop environment runs on Wayland, since when I use synaptic, it showed that: 'Probably you're running Synaptic on Wayland with root permission.
Please restart your session without Wayland, or run Synaptic without root permission.'
Do you have any suggestions about this? Very appreciate.@Ximeng hi and welcome to devnet,
Did you try to use the Qt version provided by your distribution ? It should be configured to be directly usable under Wayland.