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

[OpenFOAM.org] paraview 5.6 on Ubuntu 18.04 (Windows 10 WSL)

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By wyldckat
  • 1 Post By chapellane
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2019, 07:13
Default paraview 5.6 on Ubuntu 18.04 (Windows 10 WSL)
  #1
New Member
 
Neil Turner
Join Date: Jan 2019
Posts: 2
Rep Power: 0
chapellane is on a distinguished road
Last year I was using OpenFoam happily having followed the instructions at openfoam.org/download/windows without really understanding what I was doing and everything worked beautifully. Before Christmas, for unrelated reasons, I had to remove and reinstall a lot of the software on that computer, including the Ubuntu application. Now I have tried to install OpenFoam again the same way, and while the OpenFoam part of the installation works just fine, the paraview part no longer functions properly.

I can see here that the installation I had before would probably have had an earlier version of paraview. Also that the new version uses a different OpenGL than the older versions. I suspect it is this that makes the problem. I have tried setting the environment variable LIBGL_ALWAYS_INDIRECT but it makes no difference.

The result of any paraview command is the same:
Code:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-neil'
failed to get the current screen resources
Xlib:  extension "MIT-SHM" missing on display "localhost:0.0".
The last being repeated many times. The "Startup Screen" appears and functions correctly, but the main window contains nothing (except some snapshots of all the other windows that the X server is currently rendering, though those will disappear if (for example) that portion of the window is taken out of the display area and brought back). There are no menu bars, and the only accessible feature is the close button.

Can someone help to make paraview 5.6 work under WSL or help me to revert back to the paraview I had before (I suspect it was 5.4, but I'm not completely sure)?

Thanks.

Neil
chapellane is offline   Reply With Quote

Old   January 12, 2019, 09:34
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Neil and welcome to the forum,

I feel like I must apologize for allowing this to happen, but I haven't had time to contribute in order to avoid from this happening in the first place

The simplest solution is to go back in time, namely to install an older OpenFOAM 6 Deb package that still binds to ParaView 5.4.0, until this issue is sorted out. This can be done with the following commands:
Code:
sudo apt remove paraviewopenfoam56
sudo apt install paraviewopenfoam54
sudo apt install openfoam6=20181130

sudo apt-mark hold openfoam6
The last command will enforce that the installed version is not upgraded automatically.

Then when the fix is implemented, you can unblock the package "openfoam6" from upgrading, by running:
Code:
sudo apt-mark unhold openfoam6

I did try a more convoluted way of getting a more recent version of OpenFOAM 6 Deb package to work with the "openfoamparaview54" package, but it did not work

I still have to look into this better, so once I've gotten a better understanding on how to solve this issue on all platforms, I'll open a bug report on how to fix this.

Best regards,
Bruno
waku2005 and SUBHANKAR like this.
__________________
wyldckat is offline   Reply With Quote

Old   January 14, 2019, 12:21
Default
  #3
New Member
 
Neil Turner
Join Date: Jan 2019
Posts: 2
Rep Power: 0
chapellane is on a distinguished road
Thanks for your suggestions. Before you responded, I installed ParaView on Windows, and ran all of the OpenFOAM cases in a Windows directory mounted in /mnt. This isn't enough of a drawback for me to go back and try what you have suggested.

Thanks for looking.

Neil
wyldckat likes this.
chapellane is offline   Reply With Quote

Old   March 5, 2019, 18:58
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick note: This issue should be fixed in the more recent Deb packages from the OpenFOAM Foundation. In CFD Direct's newsletter that I received today was the indication that this issue should be fixed, although I haven't tested it myself.
Ramzy1990 likes this.
wyldckat is offline   Reply With Quote

Old   January 20, 2020, 17:19
Default
  #5
Member
 
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9
gian93 is on a distinguished road
hi wyldckat .I've also compiled openfoam 7 in ubuntu 1804 running on the wls for windows 10.
I get the same error described before.
this is the link where I found the source code

https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04

after compiling openfoam I get this error when I try to run paraview/paraFoam

PHP Code:
Created temporary 'WG30_60.OpenFOAM'
QStandardPathsXDG_RUNTIME_DIR not setdefaulting to '/tmp/runtime-giovanni93'
failed to get the current screen resources
[M310518:22436] *** Process received signal ***
[
M310518:22436SignalAborted (6)
[
M310518:22436Signal code:  (-6)
[
M310518:22436] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7fe62b08ef20]
[
M310518:22436] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fe62b08ee97]
[
M310518:22436] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fe62b090801]
[
M310518:22436] [ 3] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkRenderingOpenGL2-pv5.6.so.1(_ZN22vtkXOpenGLRenderWindow13CreateAWindowEv+0x75c)[0x7fe6254a3aec]
[
M310518:22436] [ 4] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkRenderingOpenGL2-pv5.6.so.1(_ZN21vtkOpenGLRenderWindow29CreateHardwareOffScreenWindowEii+0x19)[0x7fe62541c429]
[
M310518:22436] [ 5] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkRenderingOpenGL2-pv5.6.so.1(_ZN22vtkXOpenGLRenderWindow21CreateOffScreenWindowEii+0x2e)[0x7fe6254a3fce]
[
M310518:22436] [ 6] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkRenderingOpenGL2-pv5.6.so.1(_ZN21vtkOpenGLRenderWindow14SupportsOpenGLEv+0x505)[0x7fe625418ef5]
[
M310518:22436] [ 7] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkPVClientServerCoreRendering-pv5.6.so.1(_ZN37vtkPVRenderingCapabilitiesInformation20GetLocalCapabilitiesEv+0x1b2)[0x7fe6286736a2]
[
M310518:22436] [ 8] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkPVClientServerCoreRendering-pv5.6.so.1(_ZN37vtkPVRenderingCapabilitiesInformation14CopyFromObjectEP9vtkObject+0x9)[0x7fe6286736e9]
[
M310518:22436] [ 9] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionCore25GatherInformationInternalEP16vtkPVInformationj+0x34)[0x7fe62896e404]
[
M310518:22436] [10] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionCore17GatherInformationEjP16vtkPVInformationj+0x32)[0x7fe62896e622]
[
M310518:22436] [11] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqApplicationComponents-pv5.6.so.1(_ZN21pqDefaultViewBehavior16onServerCreationEP8pqServer+0x53)[0x7fe62ee73f53]
[
M310518:22436] [12] /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x865)[0x7fe62bf09645]
[
M310518:22436] [13] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqCore-pv5.6.so.1(_ZN20pqServerManagerModel11serverAddedEP8pqServer+0x42)[0x7fe62e081122]
[
M310518:22436] [14] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqCore-pv5.6.so.1(_ZN20pqServerManagerModel19onConnectionCreatedEx+0x326)[0x7fe62e044b56]
[
M310518:22436] [15] /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x865)[0x7fe62bf09645]
[
M310518:22436] [16] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqCore-pv5.6.so.1(_ZN23pqServerManagerObserver17connectionCreatedEx+0x42)[0x7fe62e082c92]
[
M310518:22436] [17] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqCore-pv5.6.so.1(+0x1530e9)[0x7fe62e0830e9]
[
M310518:22436] [18] /usr/lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN11QMetaObject8activateEP7QObjectiiPPv+0x865)[0x7fe62bf09645]
[
M310518:22436] [19] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkGUISupportQt-pv5.6.so.1(+0x40aeb)[0x7fe629410aeb]
[
M310518:22436] [20] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkGUISupportQt-pv5.6.so.1(+0x2b6a8)[0x7fe6293fb6a8]
[
M310518:22436] [21] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkCommonCore-pv5.6.so.1(_ZN18vtkCallbackCommand7ExecuteEP9vtkObjectmPv+0x19)[0x7fe626d8f2e9]
[
M310518:22436] [22] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkCommonCore-pv5.6.so.1(+0x2677ea)[0x7fe626eb77ea]
[
M310518:22436] [23] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkPVClientServerCoreCore-pv5.6.so.1(_ZN16vtkProcessModule15RegisterSessionEP10vtkSession+0x16a)[0x7fe62d3bbf6a]
[
M310518:22436] [24] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkPVServerManagerCore-pv5.6.so.1(_ZN12vtkSMSession13ConnectToSelfEi+0x7a)[0x7fe62d7ad74a]
[
M310518:22436] [25] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqCore-pv5.6.so.1(_ZN15pqObjectBuilder12createServerERK16pqServerResourcei+0x27d)[0x7fe62e00654d]
[
M310518:22436] [26] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqApplicationComponents-pv5.6.so.1(_ZN25pqAlwaysConnectedBehavior11serverCheckEv+0xbe)[0x7fe62ee27c2e]
[
M310518:22436] [27] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqApplicationComponents-pv5.6.so.1(_ZN25pqAlwaysConnectedBehaviorC2EP7QObject+0xfd)[0x7fe62ee27d5d]
[
M310518:22436] [28] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/libvtkpqApplicationComponents-pv5.6.so.1(_ZN19pqParaViewBehaviorsC1EP11QMainWindowP7QObject+0xa60)[0x7fe62eea2430]
[
M310518:22436] [29] /home/giovanni93/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/ParaView-5.6.0/lib/paraview(_ZN18ParaViewMainWindowC1Ev+0x759)[0x7fe62f60c329]
[
M310518:22436] *** End of error message ***
Aborted (core dumped
How is possible to fix it ? thanks
gian93 is offline   Reply With Quote

Old   January 20, 2020, 19:38
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. If you install from Deb package, you should no longer have this problem: https://openfoam.org/download/7-ubuntu/
  2. If you really want to build from source code, my best guess right now is that you are missing Xming or similar, as instructed here: https://openfoam.org/download/windows-10/ - look for section "Enabling Graphical Applications".
__________________
wyldckat is offline   Reply With Quote

Old   January 21, 2020, 05:49
Default
  #7
Member
 
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9
gian93 is on a distinguished road
Hi wyldckat,
I've installed openfoam 1706 for windows following these instruction https://www.openfoam.com/download/in...windows-10.php

I've enabled Xming with this of version and all works fine.

When I try to run of7 together with Xming, I get the previous error. I correctly defined an alias for the two versions and the source of the respective openfoam environment works properly...


to enable graphical application I've added at the end of the bashrc file the line

echo "export DISPLAY=:0" >> ${HOME}/.bashrc


graphical application works fine only under of1906 but I want to run it properly also with of7
gian93 is offline   Reply With Quote

Old   January 29, 2020, 09:47
Default
  #8
Member
 
giovanni
Join Date: Sep 2017
Posts: 50
Rep Power: 9
gian93 is on a distinguished road
hi guys, problem partially solved by following this link
: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04


the only problem is that for large case size Xming on WLS experienced some difficulties on loading paraFoam..
gian93 is offline   Reply With Quote

Reply


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
[OpenFOAM.org] OpenFOAM 3.0.1 in Ubuntu 18.04 jlr OpenFOAM Installation 4 January 3, 2019 13:57
[OpenFOAM.org] (Script)OpenFOAM 2.3.0 and Paraview for Ubuntu 14.04 p0kerus OpenFOAM Installation 2 December 2, 2014 08:54
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
Problems with visualization (bundled ParaView 3.8) in Ubuntu 10.04 eiffleduarte OpenFOAM 1 July 13, 2010 18:59
Successful Installaton Of OpenFOAM-1.6 and Paraview in Ubuntu 9.04 AlanR OpenFOAM Installation 21 September 17, 2009 12:27


All times are GMT -4. The time now is 15:18.