-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Some examples dont work (segfault and std::runtime_error) #316
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
Comments
I ran into a similar error to yours, my bug report is: terminate called after throwing an instance of 'std::runtime_error' ,what(): No axisThe reason for my error is that Ubuntu installed matplotlib in two ways:
Therefore, one of them should be uninstalled when performing 3D drawing, so I executed:
After that it ran successfully. |
I am seeing the same problem and this solution did not work for me. I am running on Windows and I have only one installation of matplotlib. It's version 3.7.1. |
Same error for me. Arch linux with python 3.10.10 |
And, I've got a fix for this issue. |
Same issue. |
I cloned the repo, made a build directory and made all of the examples. When trying to run them, however, certain ones worked and others didnt. The ones that simply segfaulted still displayed a plot. the ones that resulted in a runtime error didnt even show a plot.
System:
OS: Ubuntu 20.04.4 LTS x86_64
Kernel: 5.4.0-113-generic
"python3 --version" gives Python 3.8.10
$ ./animation
Segmentation fault (core dumped)
$ ./basic
Saving result to ./basic.png
Segmentation fault (core dumped)
$ ./contour
Segmentation fault (core dumped)
$ ./fill
Segmentation fault (core dumped)
$ ./bar
Segmentation fault (core dumped)
$ ./colorbar
Segmentation fault (core dumped)
$ ./lines3d
Segmentation fault (core dumped)
$ ./minimal
Segmentation fault (core dumped)
$ ./surface
Segmentation fault (core dumped)
$ ./modern
Segmentation fault (core dumped)
$ ./spy
Segmentation fault (core dumped)
$ ./subplot2grid
Segmentation fault (core dumped)
$ ./update
Segmentation fault (core dumped)
$ ./xkcd
findfont: Font family ['xkcd', 'xkcd Script', 'Humor Sans', 'Comic Neue', 'Comic Sans MS'] not found. Falling back to DejaVu Sans.
findfont: Font family ['xkcd', 'xkcd Script', 'Humor Sans', 'Comic Neue', 'Comic Sans MS'] not found. Falling back to DejaVu Sans.
Segmentation fault (core dumped)
$ ./fill_inbetween
terminate called after throwing an instance of 'std::runtime_error'
what(): Call to show() failed.
Aborted (core dumped)
$ ./nonblock
terminate called after throwing an instance of 'std::runtime_error'
what(): Call to subplot() failed.
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: