CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Black Screen with Paraview 5.6.0 on Ubuntu 18.04 after OpenFOAM update

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 1 Post By ksmithgall
  • 2 Post By wyldckat
  • 1 Post By artymk4
  • 2 Post By ksmithgall
  • 1 Post By wyldckat
  • 1 Post By mariaard

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 31, 2018, 13:46
Default Black Screen with Paraview 5.6.0 on Ubuntu 18.04 after OpenFOAM update
  #1
New Member
 
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9
ksmithgall is on a distinguished road
I just upgraded to the lastest openfoam version 6 distribution which includes an update to paraview 5.6.0 and when I run paraview I get a black screen. If I click around I can get some of the windows to show. Anyone else had this issue? Thanks
artymk4 likes this.
ksmithgall is offline   Reply With Quote

Old   January 1, 2019, 09:33
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 ksmithgall,

Happy new year!

Onto the problem: It's probable that it's because of the switch from legacy OpenGL mode to OpenGL2 3.3 and newer, which forcefully started with ParaView 5.5.

In situations like yours, the trick now is to use the command line argument "--mesa", as instructed... what the... it's not instructed on the release page: https://openfoam.org/news/paraview-5-6/

Shoot... they implemented an automatic fallback method that isn't working, because your ParaView opens without crashing.

A question, so that this can be reported to them at https://bugs.openfoam.org/ - What do the following commands give you?
Code:
lspci | grep VGA
glxinfo | grep OpenGL
If the second command tells you that "glxinfo" is not installed then please install it as instructed:
Code:
sudo apt install mesa-utils
Then run again:
Code:
lspci | grep VGA
glxinfo | grep OpenGL
This will tell us the necessary information to diagnose better when the "--mesa" option should be used.


In the meantime, try to use the following command to workaround the problem:
Code:
sudo sed -i -e 's=\(paraview "\)=#\1=' /opt/openfoam6/bin/paraFoam
which will disable the first attempt to run ParaView and let's then the script got straight to the option with "--mesa".

Best regards,
Bruno
artymk4 and mariaard like this.
__________________
wyldckat is offline   Reply With Quote

Old   January 3, 2019, 06:37
Default
  #3
Member
 
Martin
Join Date: Aug 2018
Posts: 33
Rep Power: 7
artymk4 is on a distinguished road
I had the same problem as ksmithgall. All I did is this:
Quote:
Originally Posted by wyldckat View Post
Code:
sudo sed -i -e 's=\(paraview "\)=#\1=' /opt/openfoam6/bin/paraFoam
and now it's working - command paraFoam opens the new ParaView 5.6.0
wyldckat likes this.
artymk4 is offline   Reply With Quote

Old   January 4, 2019, 15:48
Default
  #4
New Member
 
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9
ksmithgall is on a distinguished road
Hello wyldckat and happy new year to you!


Running
Code:
lspci | grep VGA
results in:
Code:
22:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 41)
61:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
and running
Code:
glxinfo | grep OpenGL
results in:
Code:
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 6.0, 128 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.0.5
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 18.0.5
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.0.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
Your code did allow paraFoam to function. When I launch it i get this message, but it functions:

Code:
**********************************************************
ParaView failed to open using available graphics hardware.
Trying fallback to software rendering using MESA.
**********************************************************
I/O    : uncollated
I built this machine a few months ago and have had some issues getting the graphics card to work. Based on what you see, would you say this is a system configuration problem or a paraview problem?
Thanks
ksmithgall is offline   Reply With Quote

Old   January 4, 2019, 18:19
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 @ksmithgall:
  • 2 graphics cards usually make it harder to ensure that the correct one is used.
  • The NVidia GTX 1060 should be very well able and capable of running with OpenGL 3.3 or higher.
  • Ubuntu uses an intermediate rendering driver which allows more easily to switch between drivers... but in this case, it seems to have hard-locked itself to enforce the lowest denominator, namely got stuck to the limitations on the weaker integrated graphics card.
  • Please try running the following commands:
    Code:
    export MESA_GL_VERSION_OVERRIDE=3.3
    paraview
    Then use the menu "Sources -> Cone" and click the "Apply" button. This should create a 3D cone that is more like a pyramid-cone with 6 sides.
    • If you're able to see the cone, then it's working as intended with the NVidia card.
    • If not, you might need to look into how to disable the ASPEED graphics chip... which is probably embedded into the motherboard and therefore can only be turned off in the BIOS/UEFI during boot up.
wyldckat is offline   Reply With Quote

Old   January 7, 2019, 07:01
Default
  #6
New Member
 
Join Date: Dec 2018
Posts: 2
Rep Power: 0
mariaard is on a distinguished road
Hello and happy new year! I have the same problem; Up until 2019, I typed paraFoam and it loaded nicely. However, maybe because of the OpenGL switch @wyldckat mentioned, when I type ParaFoam or paraview on the console I only get a black window, nothing loads.


I followed the steps from @wyldckat and the command



Code:
sudo sed -i -e 's=\(paraview "\)=#\1=' /opt/openfoam6/bin/paraFoam
now runs it, but with the following message:
Code:
**********************************************************
ParaView failed to open using available graphics hardware.
Trying fallback to software rendering using MESA.
**********************************************************
I/O    : uncollated
I have also noticed that it is now slower.


I run OpenFoam on a VirtualMachine that runs ubuntu 18.04 so I do not have a GPU to choose from, everything is virtual.


Any help is appreciated!
mariaard is offline   Reply With Quote

Old   January 7, 2019, 17:47
Default
  #7
New Member
 
Kurt
Join Date: Feb 2017
Posts: 10
Rep Power: 9
ksmithgall is on a distinguished road
@wyldckat
I finally have the issue resolved. Ultimately it was coming an incorrect installation of the nvidia driver in ubuntu (man that was a pain), not related to the paraview update with openfoam. Thanks for the help diagnosing it. Though through this process I think it showed that the MESA fallback software rendering isn't functioning as intended.

@mariaard
For a virtual machine you're going to be limited to software rendering. The only other option you have would be to remove the current version and install the version just prior to the update with paraview 5.6.0 http://dl.openfoam.org/
wyldckat and mariaard like this.
ksmithgall is offline   Reply With Quote

Old   January 12, 2019, 08:35
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quote:
Originally Posted by ksmithgall View Post
@mariaard
For a virtual machine you're going to be limited to software rendering. The only other option you have would be to remove the current version and install the version just prior to the update with paraview 5.6.0 http://dl.openfoam.org/
Quick answer: I've written the steps to downgrade here: paraview 5.6 on Ubuntu 18.04 (Windows 10 WSL) - post #2.
mariaard likes this.
wyldckat is offline   Reply With Quote

Old   January 18, 2019, 11:07
Default
  #9
New Member
 
Join Date: Dec 2018
Posts: 2
Rep Power: 0
mariaard is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I've written the steps to downgrade here: paraview 5.6 on Ubuntu 18.04 (Windows 10 WSL) - post #2.

Thank you, I did this last week and it worked. However, my issue is now solved by doing 2 things:
1. Update my host's graphic drivers
2. In the nvidia control panel, in the 3D settings, in the Global Settings, I set the OpenGL rendering GPU to my GeForce GTX and also in the Program Settings, I set for my virtualBox the setting of OpenGL rendering GPU to GeForce GTX.



I do not know if one of these things was the problem, but for now, it works!

Thank you for your answers!
wyldckat likes this.
mariaard is offline   Reply With Quote

Old   August 9, 2019, 14:08
Default
  #10
New Member
 
Zahra Ashoori
Join Date: Mar 2016
Location: Tehran - Iran
Posts: 9
Rep Power: 10
zanis is on a distinguished road
Hi Bruno,


I have problem running paraFoam. First it doesn't work and I have to use "paraFoam -builtin".


Second, when I run paraview, cell array is empty! While, as you know better, it should shows U, P, Alpha, etc...
What's the problem?


I use openFoam-7 and olaFlow.


Regards
Zahra
zanis is offline   Reply With Quote

Old   August 23, 2019, 01:13
Default [Solved] The issue is with the Graphics Driver
  #11
New Member
 
Sai Darbha
Join Date: Aug 2019
Posts: 8
Blog Entries: 2
Rep Power: 6
sphani4391 is on a distinguished road
I was facing black screen error when I open ParaView 5.6.0 in Ubuntu 18.04. The issue is NOT WITH PARAVIEW at all. It's an issue with the graphics card. Basically what's happening is that paraview is loading correctly but is not getting rendered on the screen.

For me, it was resolved by updating the graphics driver. The procedure is as discussed below:

I'm using a HP Z2 PC with NVIDIA Graphics card. Just needed to install the latest NVIDIA graphics driver and the paraview started working like a charm:

1. Open "Softwares and Updates" window from the Applications
2. Go to "Additional Drivers" tab. It will show a list of drivers
3. Choose the latest driver for NVIDIA and click on "Apply Changes". For me, it was nvidia-driver-430.
4. It will show a prompt for a secure boot password. Basically, this is an additional layer of security to allow proprietary software (such as this driver) to load everytime you logon.
5. After installation, reboot the system. It will take you to MOK Manager.
6. Click on "Change Secure Boot State" and then "Enroll key" and enter the secure boot password you've set while installing the driver. This step needs to be done only the first time you reboot after driver installation.
7. After the reboot, check the current driver: Settings> Details> About. The graphics information should now be updated.
For more info on updating the graphics, check the page: https://www.linuxbabe.com/ubuntu/ins...r-ubuntu-18-04
sphani4391 is offline   Reply With Quote

Old   August 25, 2019, 07:51
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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:
Quote:
Originally Posted by zanis View Post
I have problem running paraFoam. First it doesn't work and I have to use "paraFoam -builtin".
@zanis: Without knowing which installation instructions you've followed and which operating system you are using, it's not possible to properly diagnose why it's not working.



Quote:
Originally Posted by sphani4391 View Post
The issue is NOT WITH PARAVIEW at all. It's an issue with the graphics card. Basically what's happening is that paraview is loading correctly but is not getting rendered on the screen.

For me, it was resolved by updating the graphics driver.
@sphani4391: Many thanks for sharing your solution!
wyldckat is offline   Reply With Quote

Old   August 29, 2019, 11:52
Default
  #13
Member
 
Join Date: Sep 2018
Posts: 53
Rep Power: 7
tecmul is on a distinguished road
Hello everyone, I'm having a somewhat similar issue with Paraview 5.6, bundled with OpenFOAM 6. Installation from the repository on Ubuntu 18.04 goes well and OpenFOAM works fine. Paraview however, starts up OK but is slow to respond. For example zooming in on an object or moving around happens with a little delay, almost as if the system is struggling to render a simple box on the screen. Rolling back to 5.4 fixes the problem, but that version has issues with GUI scaling on high def screens so it would be nice if I could use the newer version. I updated my graphics driver to nvidia-430 without effect.
Can anyone suggest a solution?
tecmul 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] OpenFoam v1812 - paraview black screen user_ ParaView 0 February 28, 2019 06:51
Black output screen but geometry present - Ubuntu 14.04 shivaang enGrid 11 March 30, 2016 14:53
[OpenFOAM.org] Problems with Paraview (OpenFOAM 2.4.0 from source code in Ubuntu 14.04) Gerrit OpenFOAM Installation 4 August 15, 2015 11:05
paraFoam / paraview black screen gfilip OpenFOAM 6 July 13, 2009 04:30
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 05:32.