-
Notifications
You must be signed in to change notification settings - Fork 42
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
rqt_plot crashes when resizing the window #54
Comments
Possibly related to this and #35, I see
|
I am also seeing the issue described by Johnathan with the following setup
The error message was:
I found that a workaround is to right-click on the rqt_plot window banner and maximize the window. Then right click again and un-maximize. Afterwards, the rqt_plot no longer seems to crash upon resizing. Setting the layout type to "tight" may also have had an effect, per advice in Issue #35. This "fix" appears to persist across multiple re-launches. |
After installing pyqtgraph via pip, rqt_plot is no longer crashing on resize (and is correctly displaying a graph at startup). I am still using the matplotlib interface for presentation. |
Thank you very much. This fixed the issue for me also! |
This also worked for me! I was running Ubuntu 18.04 and ROS melodic in a virtual machine in Oracle Virtual Box |
This is a duplicate of #35, which was actually fixed in #52 nearly a year ago, becoming part of release >= 0.4.11. |
That's a cleaner way to resolve ros-visualization#35 and ros-visualization#54.
That's a cleaner way to resolve ros-visualization#35 and ros-visualization#54.
ROS 1 branch with the fix in #69 is pending release to kinetic, melodic, and noetic. Will be in the next respective syncs. I haven't looked at the ROS 2 fix yet but will try to soon. |
This fix was released to ROS 1 quite a while ago, and I also just retested this on the latest ROS 2 Rolling. It seems to not occur there. With all of that said, I'm going to close this out, but please feel free to reopen if this is still occurring for you. |
Steps to reproduce.
I get this error:
qurrent@qurrent-HP-Z820-Workstation:~/catkin_ws$ rqt_plot /vrx/debug/wind/speed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py", line 77, in paintEvent self.resizeEvent(event) File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_plot/data_plot/mat_data_plot.py", line 110, in resizeEvent self.figure.tight_layout() File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 2031, in tight_layout self.subplots_adjust(**kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 1881, in subplots_adjust self.subplotpars.update(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 241, in update raise ValueError('bottom cannot be >= top') ValueError: bottom cannot be >= top
OS: Ubuntu 18.04
Version: ros-melodic-rqt is already the newest version (0.5.1-1bionic.20200320.111301)
Any help here would be great!
Thanks,
Jonathan L Clark
The text was updated successfully, but these errors were encountered: