|
[Sponsors] |
[OpenFOAM.com] ParaView 5.5.2: "OpenGL Warning: glXChooseVisual: bad attrib=..., ignoring" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 15, 2018, 13:04 |
ParaView 5.5.2: "OpenGL Warning: glXChooseVisual: bad attrib=..., ignoring"
|
#1 |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
To start off, I am completely new to OpenFOAM as of this week and almost brand new to Linux. So for now, just assume I know nothing haha
After struggling through the install (build from source) of OpenFOAM v1806, I got to the end of the guide (www.openfoam.com/code/build-guide.php) where you run this command: Code:
run cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily ./ cd pitzDaily blockMesh simpleFoam paraFoam Oddly enough, after the initial build I couldn't get paraview to do anything. Now it opens the default ParaView window but doesn't load the results from OpenFOAM. Please help Further reference: Lubuntu 18.04 (i think), currently in VirtualBox but going to reinstall on my dualboot Ubuntu 18.04 once I get this version nailed down for practice |
|
August 15, 2018, 17:33 |
Update
|
#2 |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Well, apparently restarting Terminal fixed something, and now I can use the suggested commands to ./allMake and build out paraView the way it is telling me to.
Now though, NO WINDOWS will open up and i get the following errors: Code:
openfoam@openfoam-VirtualBox:~/OpenFOAM/OpenFOAM-v1806/applications/utilities/postProcessing/graphics/PVReaders/pitzDaily$ paraFoam Created temporary 'pitzDaily.OpenFOAM' (paraview:3383): dbind-WARNING **: 13:29:51.629: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files QApplication: invalid style override passed, ignoring it. OpenGL Warning: glXChooseVisual: bad attrib=0x186a0, ignoring OpenGL Warning: glXChooseVisual: bad attrib=0x186a1, ignoring Segmentation fault (core dumped) Update 2: By disabling "3d hardware acceleration" in VirtualBox settings, I can now get this to happen, but ParaView still doesn't actually display anything except for the 'welcome' dialogue Last edited by corsair2014; August 15, 2018 at 17:43. Reason: update2 |
|
August 17, 2018, 14:19 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: It's because ParaView needs OpenGL2, more specifically OpenGL 3.3. Try running the following command:
Code:
export MESA_GL_VERSION_OVERRIDE=3.3 Code:
paraFoam If this does not work, install the packages "libglu1-mesa-dev", e.g.: Code:
sudo apt-get install libglu1-mesa-dev With luck, this allows you to run ParaView without having to rebuild it.
__________________
|
|
August 17, 2018, 14:42 |
|
#4 | |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Quote:
Thank you for the reply! Unfortunately neither of these worked; MESA Override = 3.3 didn't allow the application to start still, and when I try and install libglu1-mesa-dev it says I already have the most up to date version |
||
August 17, 2018, 20:33 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick request: I'm trying now to test this myself, but I don't know when I'll reach a conclusion... but in the meantime, please install the package "virtualbox-guest-x11" within the virtual machine:
Code:
sudo apt install virtualbox-guest-x11 Edit: OK, 3D acceleration for X11 is broken and there is no clear plan to fix it: https://www.virtualbox.org/wiki/X11Guest3D Am currently working on writing instructions on how to use Mesa instead. Last edited by wyldckat; August 17, 2018 at 23:24. Reason: see "Edit:" |
|
August 18, 2018, 03:14 |
|
#6 | |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Quote:
|
||
August 18, 2018, 20:50 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings corsair2014,
I don't have a solution yet, but I might as well write down what I know so far:
Best regards, Bruno |
|
August 20, 2018, 18:36 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi corsair2014,
I finally managed to figure things out. I kept head-butting to try and build OSMesa and Mesa directly into ParaView, until I finally got my head around the fact that all we need is to build the Onscreen Mesa drivers as explained here: https://blog.kitware.com/messing-wit...ew-5-0vtk-7-0/ - and then simply copy the built Mesa libraries into ParaView's "lib" folder et voilà, we have CPU-based OpenGL up and running by default with in ParaView . However, ParaView was rather slow to run, even though it uses all cores in the CPU to render as fast as possible... As for the instructions to build on Ubuntu 18.04, I've written them here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04 From there, since you have pretty much the majority of things already built, all you need are the steps for building Mesa:
Let me/us know if it works for you as well! Best regards, Bruno |
|
August 20, 2018, 19:28 |
|
#9 | |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Quote:
Install / build per instructions went smoothly and ended with the correct log. Screenshots show the latest attempt at running paraview (ParaFoam) |
||
August 20, 2018, 21:00 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Something isn't right here... why are you running as "root"? In the second post you were running with the user-name "openfoam"...
As normal user, run the following commands, so that we can try and isolate the problem: Code:
echo $ParaView_DIR ls -l $ParaView_DIR/lib/libGL* ls -l $ParaView_DIR/bin/paraview which paraview Code:
echo $ParaView_DIR /home/ofuser/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2 ls -l $ParaView_DIR/lib/libGL* lrwxrwxrwx 1 ofuser ofuser 10 ago 20 22:28 /home/ofuser/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/lib/libGL.so -> libGL.so.1 lrwxrwxrwx 1 ofuser ofuser 12 ago 20 22:28 /home/ofuser/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/lib/libGL.so.1 -> libGL.so.1.5 -rwxr-xr-x 1 ofuser ofuser 66548288 ago 20 22:28 /home/ofuser/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/lib/libGL.so.1.5 ls -l $ParaView_DIR/bin/paraview -rwxr-xr-x 1 ofuser ofuser 84216 ago 20 21:17 /home/ofuser/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/bin/paraview which paraview /home/ofuser/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/ParaView-5.5.2/bin/paraview |
|
August 23, 2018, 15:00 |
|
#11 | |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Quote:
Here is the results of the above stated commands in terminal: Code:
openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-v1806/run/pitzDaily$ echo $ParaView_DIR openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-v1806/run/pitzDaily$ ls -l $ParaView_DIR/lib/libGL* lrwxrwxrwx 1 root root 10 Aug 20 15:21 /lib/libGL.so -> libGL.so.1 lrwxrwxrwx 1 root root 12 Aug 20 15:21 /lib/libGL.so.1 -> libGL.so.1.5 -rwxr-xr-x 1 root root 66548240 Aug 20 15:21 /lib/libGL.so.1.5 openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-v1806/run/pitzDaily$ ls -l $ParaView_DIR/bin/paraview ls: cannot access '/bin/paraview': No such file or directory openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-v1806/run/pitzDaily$ which paraview openfoam@openfoam-VirtualBox:~/OpenFOAM/openfoam-v1806/run/pitzDaily$ |
||
August 23, 2018, 16:19 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, good thing you're working inside a virtual machine... and I guess that now we know where the "libGL.*" ended up namely at "/lib".
Hopefully it didn't damage anything, but this folder is likely not being used to get libraries from, for running with ParaView. More specifically, this folder is likely one of the last ones in the paths defined on the environment variable "LD_LIBRARY_PATH", which would explain why it didn't load it. So, how to fix this... here are the steps I can deduce without testing myself first:
|
|
August 23, 2018, 16:47 |
|
#13 | |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Quote:
Do I delete all 3 "libGL.so.x" files? The "Mesa-18.0.5" folder is placed in the Home directory currently |
||
August 23, 2018, 17:13 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Yes, but only those 3 on that specific folder.
You may need to delete it with root permissions, but you can first try with your normal user permissions, since it's created in your own folder. |
|
August 23, 2018, 18:24 |
|
#15 | |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Quote:
Okay so I couldn't do "of1806" command so I use the "source ~/OpenFOAM/OpenFOAM-v1806/etc/bashrc" command; hope this does the same thing? Not sure what this does to be honest. Then followed step 10.5 And we now have a GUI window! Woohoo! Now... is it supposed to look this way? I ran the 'sample' test case from the installation guide: Code:
run cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily ./ cd pitzDaily blockMesh simpleFoam paraFoam |
||
August 24, 2018, 14:53 |
|
#16 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
In your case, you can add the following line to your "~/.bashrc" file (notice the dot between the slash and the 'b'): Code:
alias of1806='source ~/OpenFOAM/OpenFOAM-v1806/etc/bashrc' Code:
of1806 Quote:
Things will start to make more sense once you start following their tutorial guide: https://www.openfoam.com/documentation/tutorial-guide/ |
|||
August 27, 2018, 12:09 |
|
#17 |
New Member
Colton
Join Date: Aug 2018
Posts: 9
Rep Power: 8 |
Ah got it! Now to learn how to use the program haha
Thank you for all your help! Hope this thread can help someone else too |
|
Tags |
compile, paraview |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.6 ext | fportela | OpenFOAM Installation | 11 | December 26, 2013 19:55 |
is internalField(U) equivalent to zeroGradient? | immortality | OpenFOAM Running, Solving & CFD | 7 | March 29, 2013 02:27 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |
Problems of Duns Codes! | Martin J | Main CFD Forum | 8 | August 15, 2003 00:19 |