Coder Social home page Coder Social logo

Comments (14)

tzanio avatar tzanio commented on May 18, 2024

Which version of XQuartz and macOS are you running?

from glvis.

bensworth avatar bensworth commented on May 18, 2024

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.

tzanio avatar tzanio commented on May 18, 2024

And you are still getting the error with a clean clone of master without the -DGLVIS_GLX10 option?

from glvis.

tzanio avatar tzanio commented on May 18, 2024

That's unlikely to make a difference, but can you try starting Xquartz manually before you run the glvis -m ... command?

from glvis.

bensworth avatar bensworth commented on May 18, 2024

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.

bensworth avatar bensworth commented on May 18, 2024

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.

v-dobrev avatar v-dobrev commented on May 18, 2024

Wait, are you trying to run GLVis remotely on a linux server and visualize it locally on a Mac?

from glvis.

bensworth avatar bensworth commented on May 18, 2024

@v-dobrev Yes

from glvis.

v-dobrev avatar v-dobrev commented on May 18, 2024

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.

bensworth avatar bensworth commented on May 18, 2024

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.

v-dobrev avatar v-dobrev commented on May 18, 2024

I use ssh -X quartz.llnl.gov. Can you open other X applications, e.g. xterm?

from glvis.

tzanio avatar tzanio commented on May 18, 2024

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.

bensworth avatar bensworth commented on May 18, 2024

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.

tzanio avatar tzanio commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.