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

Can't get master to connect to display on OSX #53

Closed
markcmiller86 opened this issue Mar 20, 2018 · 7 comments
Closed

Can't get master to connect to display on OSX #53

markcmiller86 opened this issue Mar 20, 2018 · 7 comments
Assignees

Comments

@markcmiller86
Copy link

After building master (according to #52), I can't get it to run correctly...

[scratlantis:mfem/build/data] miller86% glvis -m escher.mesh

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

Generating coloring starting with element 18 / 42
Number of colors: 3
Can't connect to display!
Initializing the visualization failed.

I know glxgears works fine here.

@markcmiller86
Copy link
Author

So, I am able to get glvis-3.3 release working fine on my OSX system. Its just the current master that is broken in some respects. Just FYI. No urgency.

@tzanio
Copy link
Member

tzanio commented Mar 22, 2018

Hi Mark,

Did you build glvis@master with mfem@master (if not, can you try that)? Can you double check that you can run glxgears from inside XQuartz terminal (⌘N)?

I'm not sure what is going on here -- I have macOS Sierra, 10.12.6, and all versions of GLVis seem to behave well on it.

@GLVis/everyone: Does anyone else have similar Can't connect to display! issues on a Mac?

@tzanio tzanio self-assigned this Mar 22, 2018
@markcmiller86
Copy link
Author

Yes, I can run glxgears from inside XQuartz terminal window.

Will try both @ master and see if that fixes

@v-dobrev
Copy link
Member

v-dobrev commented Apr 8, 2018

Hmm, this looks like an issue with X11. The error message comes from here:

glvis/lib/tk.cpp

Lines 1305 to 1309 in d31a391

display = XOpenDisplay(0);
if (!display) {
fprintf(stderr, "Can't connect to display!\n");
return GL_FALSE;
}

which means that XOpenDisplay fails. Could this be a linking issue? For example, if the libX11.dylib that glvis is linked with is not compatible with the running XQuartz.

@thengineer
Copy link

Just for the record, I used to have the same issue.
I've tried v3.3, v3.4 and the current master branch: all versions fail with the message above.

What helped, was to install XQuartz from the official website instead of through homebrew.

@dsellers94
Copy link

dsellers94 commented Nov 27, 2020

Hi I see that this issue has been closed but I am having this exact same problem. I installed Xquarts through the website, not homebrew. Is it worth trying to reinstall? Can anyone offer any further advice?

I am using mfem-4.2 and glvis-3.4 on MacOS 10.15.4.

EDIT: The problem exists for v3.3 as well as v3.4. I am a complete beginner with mfem and just trying to get the examples and visualization working before I try to learn to use the library.

EDIT: I can also run glxgears in the XQuarts terminal, after I figured out what each of those was.

@dsellers94
Copy link

dsellers94 commented Nov 27, 2020

This problem appears to be solved by reinstalling XQuarts.

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

5 participants