QiangF / glvis

Automatically exported from code.google.com/p/glvis
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Cannot start GLVis #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

 I would very much like to use your software to visualize curved meshes, but I'm not able to start it properly. After I start the GLVis server, an attempt to visualize a mesh ends up with an error (I tried to open beam-hex.mesh from your website):

Generating coloring starting with element 4 / 8
Number of colors: 2
X Error of failed request:  BadColor (invalid Colormap parameter)
  Major opcode of failed request:  1 (X_CreateWindow)
  Resource id in failed request:  0x4a00002
  Serial number of failed request:  33
  Current serial number in output stream:  38

'ldd glvis' does not show anything suspicious:
       linux-vdso.so.1 (0x00007fff47fff000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fbfb8e8d000)
        libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fbfb8b70000)
        libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00007fbfb88f1000)
        libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fbfb86d5000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fbfb83d2000)
        libm.so.6 => /usr/lib/libm.so.6 (0x00007fbfb80d4000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fbfb7ebf000)
        libc.so.6 => /usr/lib/libc.so.6 (0x00007fbfb7b12000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fbfb78f3000)
        libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fbfb76ef000)
        libnvidia-tls.so.304.64 => /usr/lib/libnvidia-tls.so.304.64 (0x00007fbfb74ec000)
        libnvidia-glcore.so.304.64 => /usr/lib/libnvidia-glcore.so.304.64 (0x00007fbfb5101000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fbfb4eee000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fbfb91c6000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fbfb4ce9000)
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fbfb4ae3000)

I tried with several meshes in the data directory of mfem to make sure it's not 
a mesh issue, but none of the files works. 

The message

'Generating coloring starting with element 4 / 8' 

is random - when I run GLVis several times, the first number changes. Sometimes 
it's 3/8, sometimes it's 8/8.

I also attached my makefile. Mfem is in my ~/local/mfem-2.0, glvis is in 
~/local/glvis-2.0

glxinfo | grep glx gives me this:

server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:

I'm not sure GLVis actually supports opengl 1.4. If that's the cause of my 
problems, could you please update GLVis version on your website or suggest an 
alternative program to visualize curved elements?

Thank you very much for your help.

Best regards,

   Martin Vymazal

Original issue reported on code.google.com by Martin.V...@gmail.com on 17 Mar 2013 at 9:36

Attachments:

GoogleCodeExporter commented 9 years ago
Hello,

 I tried to build GLVis in debug mode and it runs fine. I only have problems in release mode.

 Best regards,

    Martin Vymazal

Original comment by Martin.V...@gmail.com on 20 Mar 2013 at 3:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello Martin,

Thank you for the bug report.

I think the problem you see with the release version may be related to a
bug we found some time ago -- in the file lib/tk.cpp, line 1137 is:
   glXGetFBConfigAttrib(display, fbConfig, GLX_RGBA, &x);
and it should actually be:
   glXGetConfig(display, vi, GLX_RGBA, &x);
This will be fixed in the next release.

The randomness in the message 'Generating coloring starting with element 4 / 8'
is intended (we pick a random starting element to start the coloring algorithm).

The GL/GLX versions are generally backward compatible, so version 1.4 is
perfectly fine.

Original comment by veselin@gmail.com on 6 Jul 2013 at 5:26

GoogleCodeExporter commented 9 years ago

Original comment by tzanio on 8 Jul 2013 at 5:17

GoogleCodeExporter commented 9 years ago

Original comment by tzanio on 8 Jul 2013 at 5:18

GoogleCodeExporter commented 9 years ago

Original comment by tzanio on 31 Jul 2013 at 1:18