QiangF / glvis

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

glvis not running #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
 I issued the command 
./glvis -m ../mfem/examples/refined.mesh -g ../mfem/examples/sol.gf
and a transient window appeared momentarily and then disappeared with following 
error:

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Resource id in failed request:  0x5000004
  Serial number of failed request:  41
  Current serial number in output stream:  42

Any handle to solve the issue?
Thanks

Original issue reported on code.google.com by abhih...@gmail.com on 14 May 2013 at 7:15

GoogleCodeExporter commented 9 years ago
Same issue. 

glvis-2.0 on x86_64 Linux/CentOS6.4
---

Here is the error I get:

Generating coloring starting with element 141 / 154
Number of colors: 3

The requested multisample mode is not available. Multisampling disabled.

X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Resource id in failed request:  0x4c00004
  Serial number of failed request:  45
  Current serial number in output stream:  46

Original comment by tzsari...@gmail.com on 30 Jun 2013 at 1:44

GoogleCodeExporter commented 9 years ago
The issue maybe caused by the following bug, mentioned in my reply to
issue 4: 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 message:
  'The requested multisample mode is not available. Multisampling disabled.'
means that your graphics card (or video driver) do not support the default
multisampling mode which is defined on line 16 in the makefile:
   DEFINES = -DGLVIS_MULTISAMPLE=4 -DGLVIS_MS_LINEWIDTH=1.4
You can try -DGLVIS_MULTISAMPLE=2 or just comment out this line to
disable multisampling support.

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
I changed lib/tk.cpp to glXGetConfig(display, vi, GLX_RGBA, &x) while it still 
giving the same problem.
 ../../glvis-2.0/glvis -m refined.mesh -g sol.gf

       _/_/_/  _/      _/      _/  _/
    _/        _/      _/      _/        _/_/_/
   _/  _/_/  _/      _/      _/  _/  _/_/
  _/    _/  _/        _/  _/    _/      _/_/
   _/_/_/  _/_/_/_/    _/      _/  _/_/_/

OpenGL Visualization
GLX Version : 1.4
GLX_RGBA : 1
GLX_RED_SIZE   : 8
GLX_GREEN_SIZE : 8
GLX_BLUE_SIZE  : 8
GLX_ALPHA_SIZE : 0
GLX_ACCUM_RED_SIZE   : 0
GLX_ACCUM_GREEN_SIZE : 0
GLX_ACCUM_BLUE_SIZE  : 0
GLX_ACCUM_ALPHA_SIZE : 0
GLX_DOUBLEBUFFER : 1
GLX_DEPTH_SIZE : 24
GLX_STENCIL_SIZE : 8
GLX_SAMPLE_BUFFERS_ARB : 1
GLX_SAMPLES_ARB : 4
glXIsDirect : 1
Window should be up
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Resource id in failed request:  0x5600004
  Serial number of failed request:  41
  Current serial number in output stream:  42

Original comment by abhih...@gmail.com on 24 Jul 2013 at 9:13

GoogleCodeExporter commented 9 years ago
I can suggest two things to try:
1) try adding -DGLVIS_GLX10 to GL_OPTS in the makefile -- this way glvis will
   use only glx 1.0 functions and in some cases this may help even when the glx
   version is newer than 1.0.
2) try the glvis development version (glvis-d15634d151.tgz) which contains the
   above-mentioned and a few other bug-fixes; use this version with the mfem
   development version (mfem-68e941f8fe.tgz) -- these versions should be
   backward compatible with 2.0 and may resolve the issue you're having.

If you still have the same issue with the development version try 1) with it.

Original comment by veselin@gmail.com on 24 Jul 2013 at 6:45

GoogleCodeExporter commented 9 years ago
Aah Veselin!  Thanks a lot for this advice. Though glvis-d15634d151.tgz did not 
work, -DGLVIS_GLX10 option worked nicely with MFEM 2.0. The error from Dev. 
version has been pasted in the issue tracker for glvis. 

THANKS AGAIN.

Original comment by abhih...@gmail.com on 25 Jul 2013 at 4:24

GoogleCodeExporter commented 9 years ago

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