CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [Other] ParaView-5.4.0 installation (https://www.cfd-online.com/Forums/openfoam-installation/189979-paraview-5-4-0-installation.html)

anydimenx July 2, 2017 00:02

ParaView-5.4.0 installation
 
Hi, all.
I failed to install ParaView-5.4.0. I followed the instructions on the official website step by step. When I opened it, a window actually appeared, however, it cannot be used. There prints the following errors:
QXcbIntegration: Cannot create platforms OpenGL context, neither GLX nor EGL are enabled.
QOpenGLWidget: Failed to create context
composeAndFlush: makeCurrent() failed

My operating system is Ubuntu 16.04, 64 bit, and I can run ParaView 5.0.1 well.

Could you please tell me how to resolve the problem. Thank you.

wyldckat July 2, 2017 18:38

Quick answer:
  1. I'm guessing that you first installed OpenFOAM 4.1 with ParaView 5.0.1 from Deb packages. This installation provides a build of ParaView that uses only OpenGL v1.
  2. The ParaView 5.4.0 version that is provided at paraview.org is built only with support for OpenGL v2.
  3. The error message that you are getting is implying that your machine does not have OpenGL v2 support.
    • So either you are running Ubuntu 16.04 inside a virtual machine (which rarely has OpenGL v2 support);
    • or if Ubuntu is installed in your real machine, then the machine doesn't have a graphics card that supports OpenGL v2.
Is there a specific reason why you need to use ParaView 5.4.0?

anydimenx July 2, 2017 23:53

Hi, Bruno.
Thank you for your reply. Ubuntu 16.04 is installed in my real machine, but there is only the integrated graphic card:

$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 06)

and I checked my OpenGL version:

$ glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2)
OpenGL core profile version string: 4.3 (Core Profile) Mesa 12.0.6
OpenGL core profile shading language version string: 4.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 12.0.6
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 12.0.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

Is my OpenGL version 3.0 ? I'm confused about the OpenGL version now, it seems it is neither OpenGL v1 nor v2.

Besides, I installed OpenFOAM v4.1 through source code compiling, not the deb packages. Recently, OpenFOAM-v1706 is released and ParaView 5.4.0 is used in that third party source package. I just want to try some new features, so I compiled them following the online instructions, but encountered such a problem. I have done some other checking after I posted the thread, I found that ParaView 5.3.0 still cannot run with the same error messages, however, ParaView 5.2.0 succeeds.

Above is my situation now, did you mean that it's due to the machine limitation? Could you please explain further and help me find out the cause? What else information do you need, I would like to provide :)

wyldckat July 8, 2017 14:38

Quick answer: Given that the Intel GPU HD 530 is somewhat recent (at least regarding support), my guess is that this is still in the list of missing support in ParaView's capabilities. I read on the mailing list a few days ago something about that... but I can't find it at the moment.

Please send an email about this to the ParaView mailing list: https://www.paraview.org/mailman/listinfo/paraview - the developers follow and answer questions on the ParaView mailing list.

anydimenx July 12, 2017 08:27

Hi, Bruno, thank you for your suggestions.
I have reinstalled the operating system, the current version is ubuntu 16.04.2 LTS, instead of the old verision ubuntu 16.04 LTS. The paraview 5.4 can be installed successfully, while the OpenGL version is still the same as the old one, with Mesa 12.0.6. However, once I decreased the opacity to be less than 1, the paraview then crushed, the terminal gave this message:

intel_do_flush_locked failed: Input/output error
Segmentation fault (core dumped)

It seems that the rendering fails. I could not explain those phenomenon, what I can do is just to present the observations. I do not know whether it has something to do with my physical machine limitations.

sam.h September 12, 2017 03:12

paraFOAM opening error
 
Hi all,

I was trying to install the latest version of openfoam and was successful in doing so by following the link http://www.openfoam.com/code/build-guide.php
But I am getting the error as mentioned in this thread by Li Jinlong.

Older version also co-exist with new version (using alias).

OS : Ubuntu 14.04 LTS
OpenFOAMV17.06

$ glxinfo | grep OpenGL
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NVC0
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.1.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:

Quote:

Originally Posted by anydimenx (Post 655547)
Hi, all.
I failed to install ParaView-5.4.0. I followed the instructions on the official website step by step. When I opened it, a window actually appeared, however, it cannot be used. There prints the following errors:
QXcbIntegration: Cannot create platforms OpenGL context, neither GLX nor EGL are enabled.
QOpenGLWidget: Failed to create context
composeAndFlush: makeCurrent() failed

My operating system is Ubuntu 16.04, 64 bit, and I can run ParaView 5.0.1 well.

Could you please tell me how to resolve the problem. Thank you.

Any resolution found on this problem ?

Please let me know.

Thank you.

Regards,
Sam.H

wyldckat December 31, 2017 11:25

Greetings to all!

OK, I'm really late on this, but here goes what I'm able to answer:
Quote:

Originally Posted by anydimenx (Post 656783)
The paraview 5.4 can be installed successfully, while the OpenGL version is still the same as the old one, with Mesa 12.0.6. However, once I decreased the opacity to be less than 1, the paraview then crushed, the terminal gave this message:

intel_do_flush_locked failed: Input/output error
Segmentation fault (core dumped)

That's either a GPU limitation or a driver flaw. As I mentioned before, at least the older Intel CPUs with integrated GPUs have incomplete OpenGL implementations.

If you try to build OpenFOAM 5.x from source code - instructions available here: https://openfoamwiki.net/index.php/I...x/OpenFOAM-5.x - you will the option to build ParaView with this additional argument:
Code:

-rendering OpenGL
which will make ParaView be built with the older OpenGL implementations, instead of the new OpenGL2+ ones.
Although reducing opacity could still result in non-perfect transparencies.



Quote:

Originally Posted by sam.h (Post 664060)
$ glxinfo | grep OpenGL
OpenGL vendor string: nouveau

[...]

Any resolution found on this problem ?

Have you tried installing NVidia's drivers? They should have a complete implementation of OpenGL2+ extensions that ParaView 5.4.0 needs. Because the implementations in "nouveau" are likely incomplete.

Best regards,
Bruno


All times are GMT -4. The time now is 23:47.