|
[Sponsors] |
[OpenFOAM.org] could not load the qt platform plugin "xcb" in "" even though it was found |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 13, 2021, 16:56 |
could not load the qt platform plugin "xcb" in "" even though it was found
|
#1 |
New Member
Oliver Goertz
Join Date: Oct 2021
Posts: 1
Rep Power: 0 |
Hi everyone
I have just installed openfoam9 in windows with ubuntu 20.04 LTS and using wsl2 using the instructions from https://openfoam.org/download/windows/ There was no problem until i tried to launch paraview and ocurred this 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, xcb. ------------------------------------------------------------------ I tried to see what the problem was using export QT_DEBUG_PLUGINS=1 and then executed paraview and this was the result: ------------------------------------------------------------------- QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" ... QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.5.3", "MetaData": { "Keys": [ "eglfs" ] }, "archreq": 0, "className": "QEglFSIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("eglfs") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.5.3", "MetaData": { "Keys": [ "linuxfb" ] }, "archreq": 0, "className": "QLinuxFbIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("linuxfb") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.5.3", "MetaData": { "Keys": [ "minimal" ] }, "archreq": 0, "className": "QMinimalIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("minimal") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.5.3", "MetaData": { "Keys": [ "minimalegl" ] }, "archreq": 0, "className": "QMinimalEglIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("minimalegl") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.5.3", "MetaData": { "Keys": [ "offscreen" ] }, "archreq": 0, "className": "QOffscreenIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("offscreen") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.5.3", "MetaData": { "Keys": [ "vnc" ] }, "archreq": 0, "className": "QVncIntegrationPlugin", "debug": false, "version": 330752 } Got keys from plugin meta data ("vnc") QFactoryLoader::QFactoryLoader() looking at "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata= { "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterfac e.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 "/opt/paraviewopenfoam56/lib/platforms" ... loaded library "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqxcb.so" 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, xcb. Aborted --------------------------------------------------------------------- I have had a hard time trying to find what the problem is but I cannot find the solution. I would be greatfull if anyone can help me. Thanks |
|
November 14, 2021, 09:06 |
Identical error occurs in MacOS
|
#2 |
New Member
Join Date: Nov 2021
Posts: 2
Rep Power: 0 |
I get the same error in MacOS when XQuartz-->Preferences-->Security does not have the box checked that says Allow connections from network clients.
Figuring this out required reviewing the install document: https://openfoam.org/download/9-macos/ --> Step 4 Hope this helps. |
|
December 1, 2021, 11:55 |
|
#3 |
New Member
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16 |
Hello,
The same for me. Did you find a solution ? Thanks |
|
December 1, 2021, 17:41 |
|
#4 |
New Member
Join Date: Nov 2021
Posts: 2
Rep Power: 0 |
||
December 3, 2021, 05:19 |
|
#5 |
New Member
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16 |
||
January 14, 2022, 03:52 |
|
#6 |
New Member
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16 |
Hello,
I finally realise that I had the same issue with all graphical applications. A way around for me was to update the display IP adress and playing a little with Xlaunch settings (all tick on the extra settings). |
|
February 20, 2022, 02:25 |
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ""
|
#7 |
New Member
SAQIB JAMSHED
Join Date: Oct 2018
Posts: 2
Rep Power: 0 |
Can you please more elaborate the solution with steps and graphics.
__________________
SAQIB JAMSHED Research Scholar at Dept. of Chemical Engg. IIT Roorkee, Roorkee, India |
|
February 23, 2022, 05:58 |
|
#8 |
New Member
Anish Desouza
Join Date: Feb 2022
Posts: 3
Rep Power: 4 |
Same problem for me. Using OpenFOAM in Ubuntu on windows using WSL2. Please help
|
|
February 23, 2022, 20:15 |
|
#9 |
New Member
Join Date: Feb 2022
Posts: 3
Rep Power: 4 |
Same problem for me. Using OpenFOAM in Ubuntu on windows using WSL2.
I had a working version for some time. Then I had problems with the Tutorials "first glimpse" series. Trying to solve the problems I must have spoiled the installation or some Windows settings. I tried many times to remove Ubuntu (Versions 18.04 and 20.04) in WSL, reinstalling it and different ways of installing OpenFOAM and ParaView again. I have tried different Windows X Server software (Xming, VcXsrv, …) with similar results. I can't restore the state where it was working any more. I can't work through the tutorials to learn OpenFOAM and ParaView. |
|
February 24, 2022, 21:45 |
|
#10 |
New Member
Join Date: Feb 2022
Posts: 3
Rep Power: 4 |
I've got a semi satisfactory solution now.
I tried many combinations of Ubuntu versions, software versions, installation procedures and WSL settings. After googling a lot, I found out that the problems where not ParaView specific. So, to shorten the tests, instead of always installing OpenFOAM and ParaView, I just installed some X11 Apps with sudo apt install x11-apps -y and tested one of them (xcalc, xclock or xeyes). This way, I found out that the X11 Apps only work in Ubuntu 18.04 with WSL1 installed. Neither Ubuntu 20.04 nor WSL2 would work. So, if you have Ubuntu 20.04, uninstall it in Windows with Start Settings Apps Apps & features. In the PowerShell enter wsl --set-default-version 1, to set the environment to WSL1 for the next installation. If already Ubuntu 18.04 is installed, you can use the command wsl --set-version Ubuntu-18.04 1 to change the environment to WSL1. After seeing that one of the X11 Apps works correctly, you can install OpenFOAM and ParaView. Using my installation procedures I ended up with ParaView version 5.4.1, which unfortunately is not the latest version. My next task will be trying to install the latest version of ParaView. |
|
February 25, 2022, 01:25 |
|
#11 |
New Member
Anish Desouza
Join Date: Feb 2022
Posts: 3
Rep Power: 4 |
I was having the same problem but now I managed to get it working. You would need to Download the VcXsrv installer. That can be found here
https://openfoam.org/download/windows/ Scroll down the page until to see it. Follow the steps in that page and it will work |
|
February 25, 2022, 19:37 |
|
#12 | |
New Member
Join Date: Feb 2022
Posts: 3
Rep Power: 4 |
Quote:
The installation procedures from https://openfoam.org/download/windows/ are very clear and gave me a good working solution. There are just two points to mention:
|
||
Tags |
openfoam9 installation, paraview |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 07:39 |
Problem of compilation OF 14Allwmake command not found | erik_d | OpenFOAM Bugs | 13 | September 13, 2008 22:45 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |