# paraview execution problems

**URL:** https://discourse.paraview.org/t/paraview-execution-problems/12418
**Category:** ParaView Support
**Created:** [June 30, 2023, 12:58pm UTC](https://discourse.paraview.org/t/paraview-execution-problems/12418 "2023-06-30T12:58:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![eric72](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@eric72](https://discourse.paraview.org/u/eric72)
#### Post date: [June 30, 2023, 12:58pm UTC](https://discourse.paraview.org/t/paraview-execution-problems/12418/1 "2023-06-30T12:58:41Z")

</div>

I installed wsl in windows 10, changed it to wsl2, and installed ubuntu 20.04.6.  
[openfoam.org](http://openfoam.org) installed precompiled openfoam10 and paraviewopenfoam 5.10.  
However, the openfoam runs well, but the paraview fails. Run xming and export DISPLAY=:0 before running paraview  
I ran paraview and got the following error message.

**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**

The same error occurs when I delete openfoam and paraview, reinstall it, and try again.  
I’ve tried a lot of things, but they’re all useless.  
I would appreciate your help if anyone had a problem like this.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 30, 2023, 1:02pm UTC](https://discourse.paraview.org/t/paraview-execution-problems/12418/2 "2023-06-30T13:02:32Z")

</div>

> [@I'm using Ubuntu 22 and ParaView reports "Could not load the Qt platform plugin 'xcb'"](https://discourse.paraview.org/t/im-using-ubuntu-22-and-paraview-reports-could-not-load-the-qt-platform-plugin-xcb/10642):
>
> Install missing xcb packages using apt install libxcb-xinerama0 apt install libxcb-xinput0

---

<div class="post-metadata">

### Author: ![eric72](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@eric72](https://discourse.paraview.org/u/eric72)
#### Post date: [July 3, 2023, 1:29am UTC](https://discourse.paraview.org/t/paraview-execution-problems/12418/3 "2023-07-03T01:29:50Z")

</div>

Thank you for your reply.  
I did what you told me to do.

Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
libxcb-xinerama0 is already the newest version (1.14-2).  
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.

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.  
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

Only the same message appears.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 3, 2023, 4:57am UTC](https://discourse.paraview.org/t/paraview-execution-problems/12418/4 "2023-07-03T04:57:31Z")

</div>

> [@eric72](#):
>
> qt.qpa.xcb: could not connect to display

You have no display because you are running inside WSL, can’t run ParaView in that case.

---

<div class="post-metadata">

### Author: ![eric72](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/e/3da27b/32.png) [@eric72](https://discourse.paraview.org/u/eric72)
#### Post date: [July 3, 2023, 5:30am UTC](https://discourse.paraview.org/t/paraview-execution-problems/12418/5 "2023-07-03T05:30:24Z")

</div>

Thank you for your answer.  
I have installed and used ubuntu, openfoam, and paraview using wsl on three computers with Windows 10.  
Originally, paraview was executed well on one computer, but the pvbatch command was not executed, but after deleting the openfoam and paraview, it started to not work after reinstalling.
