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

Fix linalg error #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karenbodie
Copy link

We encountered an issue that has been fixed in foxy_devel: #73

Running rqt_plot results in an exception:

packages/numpy/linalg/linalg.py", line 88, in _raise_linalgerror_singular
    raise LinAlgError("Singular matrix")

This PR cherry picks the fix, and has been verified by two users who were encountering the issue.

fyi @iwanders, @mikepurvis, @jasonimercer

On Windows, when we make the rqt_plot window very small, it
causes matplotlib to throw an exception like:

numpy.linalg.LinAlgError: Singular matrix

The trouble seems to be that the matplotlib resize event is
trying to invert a zero-sized matrix (I think), so it is
giving numpy fits.  If one of the dimensions of the windows
is 0, just skip trying to apply a tight_layout to it.

Signed-off-by: Chris Lalancette <[email protected]>
@jasonimercer
Copy link

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants