Today, I noticed that my python code while executing, produces the following upon execution without actually execute the code:
Segmentation fault (core dumped)
After checking out this page (Error: Segmentation fault (core dumped)), I noticed that my python has actually crashed rather than something else.
Here is the error message first I received before my later attempts resulting in the above error message (This is not reproducible and I was lucky to save it somewhere):
Traceback (most recent call last):
File "my_code.py", line 984, in <module>
cf = ax12.tricontourf(x, y, z, levels, cmap=cm.get_cmap(cmap, len(levels)-1), norm=norm)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_axes.py", line 8025, in tricontourf
return mtri.tricontourf(self, *args, **kwargs)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/tri/tricontour.py", line 282, in tricontourf
return TriContourSet(ax, *args, **kwargs)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/tri/tricontour.py", line 40, in __init__
ContourSet.__init__(self, ax, *args, **kwargs)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/contour.py", line 846, in __init__
kwargs = self._process_args(*args, **kwargs)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/tri/tricontour.py", line 51, in _process_args
tri, z = self._contour_args(args, kwargs)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/tri/tricontour.py", line 85, in _contour_args
**kwargs)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/tri/triangulation.py", line 164, in get_from_args_and_kwargs
triangulation = Triangulation(x, y, triangles, mask)
File "/home/username/anaconda3/lib/python3.6/site-packages/matplotlib/tri/triangulation.py", line 55, in __init__
self.triangles, self._neighbors = _qhull.delaunay(x, y)
RuntimeError: Error in qhull Delaunay triangulation calculation: precision error (exitcode=3); use python verbose option (-v) to see original qhull error.
By the way, I am using python3 from anaconda on an Ubuntu linux. Is there any way to narrow down the issue by downgrading to some previous versions of python? However, it doesn't seem that python itself has been upgraded recently after checking it through:
conda info python
Thanks,