Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glvis not running #5

Closed
GoogleCodeExporter opened this issue Nov 21, 2015 · 7 comments
Closed

glvis not running #5

GoogleCodeExporter opened this issue Nov 21, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

 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 [email protected] on 14 May 2013 at 7:15

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 30 Jun 2013 at 1:44

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 6 Jul 2013 at 5:54

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Accepted
  • Added labels: Priority-High, Type-Defect

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 24 Jul 2013 at 9:13

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 24 Jul 2013 at 6:45

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 25 Jul 2013 at 4:24

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant