CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] could not load the qt platform plugin "xcb" in "" even though it was found

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2021, 15:56
Default 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
supaol is on a distinguished road
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
supaol is offline   Reply With Quote

Old   November 14, 2021, 08:06
Post Identical error occurs in MacOS
  #2
New Member
 
Join Date: Nov 2021
Posts: 2
Rep Power: 0
lvwarren is on a distinguished road
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.
Attached Images
File Type: jpg Screen Shot 2021-11-14 at 7.03.56 AM.jpg (53.6 KB, 66 views)
lvwarren is offline   Reply With Quote

Old   December 1, 2021, 10:55
Default
  #3
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Hello,
The same for me. Did you find a solution ?
Thanks
Nolwenn is offline   Reply With Quote

Old   December 1, 2021, 16:41
Default
  #4
New Member
 
Join Date: Nov 2021
Posts: 2
Rep Power: 0
lvwarren is on a distinguished road
Quote:
Originally Posted by Nolwenn View Post
The same for me. Did you find a solution ?
Review the post above. Network connections must be enabled.
lvwarren is offline   Reply With Quote

Old   December 3, 2021, 04:19
Default
  #5
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
Quote:
Originally Posted by lvwarren View Post
Review the post above. Network connections must be enabled.
Sorry, I forgot to precise something: I am using Windows, not Mac ...
Nolwenn is offline   Reply With Quote

Old   January 14, 2022, 02:52
Default
  #6
New Member
 
Nolwenn
Join Date: Apr 2010
Posts: 26
Rep Power: 16
Nolwenn is on a distinguished road
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).
Nolwenn is offline   Reply With Quote

Old   February 20, 2022, 01:25
Default 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
saqibjamshed is on a distinguished road
Quote:
Originally Posted by Nolwenn View Post
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).
Can you please more elaborate the solution with steps and graphics.
__________________
SAQIB JAMSHED
Research Scholar at Dept. of Chemical Engg.
IIT Roorkee, Roorkee, India
saqibjamshed is offline   Reply With Quote

Old   February 23, 2022, 04:58
Default
  #8
New Member
 
Anish Desouza
Join Date: Feb 2022
Posts: 3
Rep Power: 4
anishdesouza246 is on a distinguished road
Same problem for me. Using OpenFOAM in Ubuntu on windows using WSL2. Please help
anishdesouza246 is offline   Reply With Quote

Old   February 23, 2022, 19:15
Default
  #9
New Member
 
Join Date: Feb 2022
Posts: 3
Rep Power: 4
Danton is on a distinguished road
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.
Danton is offline   Reply With Quote

Old   February 24, 2022, 20:45
Default
  #10
New Member
 
Join Date: Feb 2022
Posts: 3
Rep Power: 4
Danton is on a distinguished road
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 \rightarrow Settings \rightarrow Apps \rightarrow 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.
Danton is offline   Reply With Quote

Old   February 25, 2022, 00:25
Default
  #11
New Member
 
Anish Desouza
Join Date: Feb 2022
Posts: 3
Rep Power: 4
anishdesouza246 is on a distinguished road
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
anishdesouza246 is offline   Reply With Quote

Old   February 25, 2022, 18:37
Default
  #12
New Member
 
Join Date: Feb 2022
Posts: 3
Rep Power: 4
Danton is on a distinguished road
Quote:
Originally Posted by anishdesouza246 View Post
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
Thank you so much!
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:
  1. In my case now it's working with Ubuntu-20.04 in WSL1 (In WSL2 it was not working).
  2. The VcXsrv installer is good, but others like Xming also work.
I'm happy with it.
Danton is offline   Reply With Quote

Reply

Tags
openfoam9 installation, paraview

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 06:39
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 12:34.