ParaView crashes after installing OpenFOAM 11

Hi,

I first installed ParaView 5.10 on my Linux machine (Ubuntu 22.04.4 LTS) and it worked fine.

Recently I installed OpenFaom 11 and the program also calculates, but since the installation my ParaView crashes every time. I can neither open the program with paraview command nor with ParaFOAM.

Mesa warning: failed to remap glCompressedTexImage1D
Mesa warning: failed to remap glCompressedTexImage2D
Mesa warning: failed to remap glCompressedTexImage3D
Mesa warning: failed to remap glCompressedTexSubImage1D
Mesa warning: failed to remap glCompressedTexSubImage2D
Mesa warning: failed to remap glCompressedTexSubImage3D
Mesa warning: failed to remap glGetCompressedTexImage
Mesa warning: failed to remap glLoadTransposeMatrixd
...

Loguru caught a signal: SIGSEGV
Stack trace:
29      0x615335c672d5 paraview(+0x92d5) [0x615335c672d5]
28      0x786b63a29e40 __libc_start_main + 128
27      0x786b63a29d90 /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x786b63a29d90]
26      0x615335c66fa4 paraview(+0x8fa4) [0x615335c66fa4]
25      0x615335c6c9e4 paraview(+0xe9e4) [0x615335c6c9e4]
24      0x615335c6815d paraview(+0xa15d) [0x615335c6815d]
23      0x786b63799ce0 pqParaViewBehaviors::pqParaViewBehaviors(QMainWindow*, QObject*) + 2432
22      0x786b636eee72 pqAlwaysConnectedBehavior::pqAlwaysConnectedBehavior(QObject*) + 322
21      0x786b6272f4a6 pqObjectBuilder::createServer(pqServerResource const&, int) + 406
20      0x786b615d4906 vtkSMSession::ConnectToSelf(int) + 38
19      0x786b6351f8f3 vtkProcessModule::RegisterSession(vtkSession*) + 147
18      0x786b5e114782 /opt/paraviewopenfoam510/lib/libvtkCommonCore-pv5.10.so.1(+0x514782) [0x786b5e114782]
17      0x786b5dff6b3d vtkCallbackCommand::Execute(vtkObject*, unsigned long, void*) + 29
16      0x786b63d43691 /opt/paraviewopenfoam510/lib/libvtkGUISupportQt-pv5.10.so.1(+0x29691) [0x786b63d43691]
15      0x786b61af17c8 /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f17c8) [0x786b61af17c8]
14      0x786b62692456 pqServerManagerObserver::connectionCreated(long long) + 70
13      0x786b61af17c8 /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f17c8) [0x786b61af17c8]
12      0x786b6277c5c6 pqServerManagerModel::onConnectionCreated(long long) + 838
11      0x786b6268ef76 pqServerManagerModel::serverAdded(pqServer*) + 70
10      0x786b61af17c8 /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f17c8) [0x786b61af17c8]
9       0x786b63759a26 pqDefaultViewBehavior::onServerCreation(pqServer*) + 86
8       0x786b614d8489 vtkPVSessionCore::GatherInformation(unsigned int, vtkPVInformation*, unsigned int) + 377
7       0x786b614d819a vtkPVSessionCore::GatherInformationInternal(vtkPVInformation*, unsigned int) + 58
6       0x786b555c621d vtkPVRenderingCapabilitiesInformation::CopyFromObject(vtkObject*) + 13
5       0x786b555c61e3 vtkPVRenderingCapabilitiesInformation::GetLocalCapabilities() + 339
4       0x786b60950675 vtkOpenGLRenderWindow::SupportsOpenGL() + 1029
3       0x786b60954d05 vtkOpenGLRenderWindow::OpenGLInit() + 133
2       0x786b639b4f93 vtkglew_glewInit + 611
1       0x786b6399b33a /opt/paraviewopenfoam510/lib/libvtkglew-pv5.10.so.1(+0x5c33a) [0x786b6399b33a]
0       0x786b63a42520 /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x786b63a42520]
(   0.497s) [paraview        ]                       :0     FATL| Signal: SIGSEGV
Segmentation fault (core dumped)

I did the installation according to the website (Download v11 | Ubuntu | OpenFOAM). What is the problem and how can I fix it?

Many thanks in advance

How did you install ParaView ?
How did you install OpenFOAM ?

ParaView:
sudo apt-get install paraview

OpenFOAM:

sudo sh -c "wget -O - https://dl.openfoam.org/gpg.key > /etc/apt/trusted.gpg.d/openfoam.asc"
sudo add-apt-repository http://dl.openfoam.org/ubuntu
sudo apt-get update
sudo apt-get -y install openfoam11

sudo apt-get update
sudo apt-get upgrade

and then adding

source /opt/openfoam11/etc/bashrc

to bashrc.

Maybe an important point. It does work with OpenFOAM 9. Only version 11 crashes my ParaView.

Remove this, it prevents ParaView to work.

But how do I start openFoam from the terminal?

just call source /opt/openfoam11/etc/bashrc when you need it.

Ok, thank you very much Mathieu . :+1: