Skip to content

IPython thinks that it crashed when matplotlib dies #3791

Closed

Description

@asmeurer
In [7]: Traceback (most recent call last):
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/figure.py", line 1006, in draw
    func(*args)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/axes.py", line 2086, in draw
    a.draw(renderer)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/text.py", line 531, in draw
    bbox, info = self._get_layout(renderer)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/text.py", line 313, in _get_layout
    ismath=ismath)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 152, in get_text_width_height_descent
    self.mathtext_parser.parse(s, self.dpi, prop)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/mathtext.py", line 3010, in parse
    box = self._parser.parse(s, font_output, fontsize, dpi)
  File "/Users/aaronmeurer/anaconda/envs/ipython1.0/lib/python2.7/site-packages/matplotlib/mathtext.py", line 2344, in parse
    str(err)]))
ValueError:
\begin{array}{ll}\cos\theta&-\sin\theta\end{array}
^
Unknown symbol: \begin (at char 0), (line:1, col:1)

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@scipy.org

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

The bug itself is a bug in matplotlib, but the issue is that IPython thinks that it crashed.

Activity

  1. minrk commented on Jul 26, 2013

    @minrk
    Member

    I believe this has to do with when IPython's crash handler is registered as excepthook. The crash handler is registered as excepthook when user code is not running, but this can still be triggered by matplotlib raising an exception from another thread.

  2. minrk commented on Jan 29, 2014

    @minrk
    Member

    Closing as duplicate of #3922 (later, but more active)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions