CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > enGrid

Black output screen but geometry present - Ubuntu 14.04

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By shivaang

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2016, 08:27
Default Black output screen but geometry present - Ubuntu 14.04
  #1
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
Hey all,
I recently installed Engrid and I got no problem with installation however when I import an STL file (from damper tutorial) or egc (from Heat exchanger) I get a black output screen.
From the damper tutorial I get the surface cells present and can even see that check surface integrity tells me that the mesh is ok.
I have also tried to import the mesh in paraview and see nothing when i go from engrid but when i open it seperately i see the stl images.
The Output file in the tmp folder is shown in figure 2 and the terminal output is shown in figure 3.

Any help would be greatly appreciated.
Attached Images
File Type: jpg engridstl.jpg (47.8 KB, 15 views)
File Type: png engrid_output.png (21.4 KB, 13 views)
File Type: png terminal.png (22.1 KB, 14 views)
shivaang is offline   Reply With Quote

Old   March 26, 2016, 09:30
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 questions:
  1. Which version of enGrid have you installed?
  2. Which installation instructions did you follow?
wyldckat is offline   Reply With Quote

Old   March 26, 2016, 18:18
Default
  #3
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
Thanks for the reply.
I have installed engrid 1.4. Using the instructions available on https://github.com/enGits/engrid/wik...D-Installation for a Ubuntu system.
shivaang is offline   Reply With Quote

Old   March 27, 2016, 08:00
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 Shivaang,

In a terminal/console window, from within the folder "engrid/src", please run the following commands:
Code:
ldd engrid > log.ldd.engrid
gzip < log.ldd.engrid > log.ldd.engrid.gz
Then please attach the file "log.ldd.engrid.gz" to your next post. This will give us a clear detail of which OpenGL library it's linked to.

And few more questions, to help diagnose the problem:
  1. Are you running Ubuntu inside a virtual machine?
    If you are, then:
    1. Are you using 3D acceleration?
    2. Which virtualization software are you using? Examples: VirtualBox or VMPlayer.
  2. If you are running in a real machine, did you install the drivers for the graphics card?
  3. You mentioned ParaView. How exactly did you install it?
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 27, 2016, 08:52
Default
  #5
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
Hey Bruno,

I have ran the commands that you mentioned and attached the output.
My machine's operating system has inbuilt Ubuntu (so not a virtual machine)
My drivers are installed- Checked this by glxgears command and also have checked that direct rendering is active.
For paraview I installed it using the instructions provided on the Openfoam.org website:
Code:
sudo apt-get download  paraviewopenfoam44  --allow-unauthenticated 
sudo dpkg -i paraviewopenfoam44_0-1_amd64.deb 
sudo apt-get install qt4-dev-tools 
sudo dpkg -i paraviewopenfoam44_0-1_amd64.deb
Thank you for the support, I really appreciate it.
Regards,
Shivaang Sachdeva
Attached Files
File Type: gz log.ldd.engrid.gz (2.0 KB, 2 views)
shivaang is offline   Reply With Quote

Old   March 27, 2016, 09:06
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Shivaang,

Mmm... from the log file that you attached, it indicates that it's linked to the Mesa OpenGL library:
Code:
libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007fd46514d000)
OK, then let's check how ParaView is linked to OpenGL. Please run the following commands:
Code:
ldd /opt/paraviewopenfoam44/lib/paraview-4.4/libvtkftgl-pv4.4.so > log.ldd.paraview
gzip < log.ldd.paraview > log.ldd.paraview.gz
You can run the commands anywhere you like, for example in your Desktop folder. Then please attach the file "log.ldd.paraview.gz" to your next post.

For example, I got the following:
Code:
libGL.so.1 => /usr/lib/fglrx/libGL.so.1 (0x00007f64249c7000)
Which is for the AMD/ATI driver I have in my machine.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 27, 2016, 09:51
Default
  #7
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
Hey Bruno,
The paraview seems to be linked to the same place from the file generated (shown in attached).
In the engrid linking file that i created, I got the following code, could this be the problem?
Code:
	
libengrid.so.1 => not found
libng.so.1 => not found
Regards,
Shivaang
Attached Files
File Type: gz log.ldd.paraview.gz (465 Bytes, 1 views)
shivaang is offline   Reply With Quote

Old   March 27, 2016, 10:14
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Shivaang,

OK, at least both are using the same OpenGL library.

I've compared with a build I made within a VM that has Ubuntu 14.04 and this was different:
Code:
libdrm.so.2 => /usr/local/lib/libdrm.so.2 (0x00007fd45c2b2000)
This is usually also associated to the graphics card drivers. Both ParaView and enGrid are reporting to be linking to these two, so that shouldn't be a problem... at least I hope not.

Quote:
Originally Posted by shivaang View Post
In the engrid linking file that i created, I got the following code, could this be the problem?
Code:
    
libengrid.so.1 => not found
libng.so.1 => not found
That's only because the libraries aren't visible on the path, unless we use enGrid's starter/launch script. This shouldn't be a problem, but you can double check this by doing the following command from within the "engrid/src" folder:
Code:
export LD_LIBRARY_PATH=./libengrid:./netgen_svn:$LD_LIBRARY_PATH
then you can do the ldd command once again.


The weird part is that I have the very vague idea that I've seen this happen in the past, but I can't remember what keywords I should be looking for...
The only thing that I can remember right now is that you can try the following:
Quote:
Originally Posted by preichl View Post
Setting the environment variable via the command below worked for me.

export LIBGL_ALWAYS_INDIRECT=y
Run this last command before you start running enGrid.


The other thing you might want to try is the following two commands:
Code:
wmUNSET
engrid
And then try importing again the STL file.
The wmUNSET command is an alias for unloading the OpenFOAM shell environment, so hopefully this will unload any potentially conflicting environment variables!?.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 27, 2016, 11:01
Default
  #9
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
Hey Bruno,
I have followed the instructions however it doesn't resolve the error. The command to fix the visibility of the library did work on the bright side.
The other codes did run however the stl file is still not visible.
I am not sure but whenever I export a geometry it is called "Operation 0" and when i perform the surface integrity it says that the operation is deleted "deleting Operation 0x1da8250". Could this be relevant?
Would it be advisable to download some other graphics card software?

Regards,
Shivaang Sachdeva
shivaang is offline   Reply With Quote

Old   March 27, 2016, 11:11
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 shivaang View Post
"deleting Operation 0x1da8250". Could this be relevant?
That's only an information for the developers. It's a debug-related message, stating that the operation is complete and the respective object that did the operation has been deleted (or at least it should have).

Quote:
Originally Posted by shivaang View Post
Would it be advisable to download some other graphics card software?
You can try and update the drivers for the graphics card.
If you're using an Intel graphics unit (possibly one that is embedded within the CPU), you might be using one that has a faulty OpenGL implementation


I was looking for threads about Intel cards and this one popped up: http://www.cfd-online.com/Forums/ope...14-04-a-3.html - do you have the package "libglu1-mesa-dev" installed in Ubuntu?


edit: The other possible solution is to disable the 3D accelerated desktop feature that Ubuntu usually has turned on by default.

Last edited by wyldckat; March 27, 2016 at 11:16. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   March 30, 2016, 09:04
Default
  #11
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
Dear Bruno,
Thanks for the assistance and sorry for the late reply. I actually was having some difficulty with the installation of new drivers (unsuccessful), my OpenGL version was mesa10.1.3. I am currently updating my system to ubuntu 15.10 and hopefully that will be able to resolve the issue. I searched for the libglu1-mesa-dev and saw that it was present and working, so it was not the issue. As for d accelerated I tried turning it off but it was not able to resolve the issue. I will try installing it with Ubuntu 15.10 and hopefully the issue will be resolved.
Thanks for the help and I will post if it resolved the problem.

Regards,
Shivaang
shivaang is offline   Reply With Quote

Old   March 30, 2016, 15:53
Default
  #12
New Member
 
Shivaang Sachdeva
Join Date: Mar 2016
Posts: 7
Rep Power: 10
shivaang is on a distinguished road
The issue has been resolved by updating to Ubtuntu 15.10. I am not sure whether that is the ideal way to resolve the issue. But I would like to say thank you for the assistance.
wyldckat likes this.
shivaang 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] Fehler OpenFOAM Ubuntu 14.04 Roeroe19 OpenFOAM Installation 2 January 11, 2015 14:55
RNG diverged during the analysis the flow over a multi element airfoil, why? s.m OpenFOAM Running, Solving & CFD 0 August 5, 2013 09:39
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34
Simulation of Flow through Complex 3D Geometry EmersonKB CFX 5 July 2, 2009 09:17
vitual _ real deneb FLUENT 3 January 22, 2007 05:31


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