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
Print a helpful warning when using x.plot and DISPLAY is not set #211
Comments
hum...
I think it's really an X11 issue. |
|
@danlipsa what do you think? I feel VTK's error is better than most other software in that matter. |
@doutriaux1 @jypeter We should try not to crash and we probably can make it more clear that DISPLAY is an environment variable that the user should set (or should set properly). |
Well, it said bad X server connection and not the usual variation of Can't open display. I regularly have problems using vcs in virtual machines and X servers, that's why I did not think at first that it was just a problem of DISPLAY not being defined But we want to be nice and helpful to the end users, don't we? That's why, when you call "x.plot" (or x.png, x.pdf, etc...) it would be nice to print an error message saying it can't be done (and maybe give some hints) rather than something looking like a VTK internal error Besides, I got a core dumped, which did not help me determine what was going on |
@jypeter Indeed, we should not crash. We could print a better error by intercepting the VTK message and printing our own. |
👍 |
|
@danlipsa is there a way to know if vtk was compiled against mesalib? |
@doutriaux1 FYI have just tried this script in cdat 8.0 on a remote server, after my X server had crashed (so DISPLAY is set, but no working X server), and I got a similar error
Well, I'm not sure you can do something about this (i.e. displaying an error message rather than crashing python)... I have also cleared the DISPLAY variable, and in that cas I indeed get your error message and stay in python
|
@charlesdoutriaux It's quite hard (the first time you get the error) to understand what is happening, when you use x.plot and there is no DISPLAY. Especially since it completely crashes python!
Can you print an error message and make this more user friendly? Maybe this has already been addressed in 2.10, but I'm still running 2.8
The text was updated successfully, but these errors were encountered: