Comments (14)
Which version of XQuartz and macOS are you running?
from glvis.
Last week I was running OS 10.12.6 and Xquartz 2.7.9. This weekend I upgraded to OS 10.14 and Xquartz 2.7.11, but got the same error.
from glvis.
And you are still getting the error with a clean clone of master
without the -DGLVIS_GLX10
option?
from glvis.
That's unlikely to make a difference, but can you try starting Xquartz manually before you run the glvis -m ...
command?
from glvis.
I logged out of quartz, opened Xquartz, and logged back into quartz. Then I reset hard to the master branch for glvis, added the -DGLVIS_GLX10 flag in the makefile (where it is commented out), and compiled. Sample line looks like:
cd lib; /usr/tce/packages/mvapich2/mvapich2-2.2-intel-18.0.1/bin/mpicxx -O3 -DNDEBUG -I/g/g19/bs/quartz/mfem/bens_build -I/g/g19/bs/quartz/metis/build/Linux-x86_64/include -I/g/g19/bs/quartz/hypre/src/hypre/include -DGLVIS_MULTISAMPLE=4 -DGLVIS_MS_LINEWIDTH=1.4 -I/usr/include -DGLVIS_GLX10 -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE -I/usr/include/freetype2 -c vsvector.cpp
But, the error persists even on a simple attempt to visualize an MFEM mesh from the parent directory of MFEM and GLVIS:
quartz $ ./glvis/bin/glvis -m mfem/data/beam-hex.mesh
_/_/_/ _/ _/ _/ _/
_/ _/ _/ _/ _/_/_/
_/ _/_/ _/ _/ _/ _/ _/_/
_/ _/ _/ _/ _/ _/ _/_/
_/_/_/ _/_/_/_/ _/ _/ _/_/_/
Generating coloring starting with element 8 / 8
Number of colors: 2
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 20
Current serial number in output stream: 21
from glvis.
A new postdoc Ben Yee had a similar issue but was addressed by using an older version of Xquartz; would this help? I was running a fairly outdated version already last week though (2.7.9).
from glvis.
Wait, are you trying to run GLVis remotely on a linux server and visualize it locally on a Mac?
from glvis.
@v-dobrev Yes
from glvis.
I just tried this on Mac (macOS 10.13.6 with XQuartz 2.7.11) and it worked fine. However, this is with an ssh connection that I just opened - I've had issues with the X connection going bad after some time - initially I can open X applications (emacs) fine but later it no longer works.
Can you try restarting your ssh connection? I know this is not a real solution but it is not a GLVis issue either.
from glvis.
Strange, yea I have tried rebooting and starting a fresh ssh. How is your ssh set up? I have my ~/.ssh/config file set up like
host quartz
hostname quartz.llnl.gov
user my_username
ForwardX11 yes
ForwardX11Trusted yes
Were you on quartz when you tried?
from glvis.
I use ssh -X quartz.llnl.gov
. Can you open other X applications, e.g. xterm?
from glvis.
On my Macs (laptop and iMac with macOS 10.13.6) I have to use -Y
instead of -X
, but otherwise the following works both when I'm plugged in the network and via Wi-Fi:
ssh -Y quartz.llnl.gov
(Also, my ~/.ssh/config
files are essentially empty)
from glvis.
Thanks, yea ForwardX11Trusted
yes corresponds to -Y
. Turns out this is a mac/Xquartz/graphics issue. Although gvim, xterm, etc., work, trying to call glxgears on quartz gives the same error. Found similar problems hiding around the internet, e.g., https://bugs.freedesktop.org/show_bug.cgi?id=93953#c6. One recommendation is to call defaults write org.macosforge.xquartz.X11 enable_iglx -bool true
on command line. This didn't work for me and the only solution I found was to revert to Xquartz 2.7.8, which for whatever reason does not have this issue.
from glvis.
Thanks Ben.
Acording to https://github.com/CDAT/vcdat/wiki/Troubleshooting, you need to reboot after the default write
command. Did you try that?
from glvis.
Related Issues (20)
- Failed to initialize SDL: No available video device HOT 4
- Scalar fields with MapType INTEGRAL do not display properly HOT 1
- make install is broken on 4.2? "not a member of mfem::Geometry" HOT 1
- Screenshot does not behaves reliably in glvs script HOT 2
- glvis over x2go connection to remote sever results in FATAL: window and/or OpenGL context creation failed. HOT 4
- Fail to display Hex mesh of GMSH format HOT 2
- Change colorbar number format HOT 4
- Wrong vertex ids with ncmesh HOT 3
- Space mouse support HOT 1
- Build GLVis using gcc under MacOS HOT 2
- How to generate isosurface plots? HOT 2
- Additional color palettes? HOT 5
- Visualization of Hexahedra file format HOT 2
- Triangular patches when in smoother mode HOT 2
- How to compile GLVis for Windows? HOT 9
- Updating GLVis mesh vector or scalar solution without drawing a new mesh HOT 4
- Calling VisualizationSceneSolution3d from own application HOT 4
- New release of glvis? HOT 1
- Fatal error building GLVis HOT 4
- Set maximum and minimum in GLVis for time-dependent problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glvis.