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

Linearview and Sideview crash on Clear figure by clicking on the remove button #1857

Closed
dhgkunkel opened this issue Aug 4, 2023 · 1 comment · Fixed by #1858
Closed

Linearview and Sideview crash on Clear figure by clicking on the remove button #1857

dhgkunkel opened this issue Aug 4, 2023 · 1 comment · Fixed by #1858
Assignees
Labels
bug Something isn't working msui
Milestone

Comments

@dhgkunkel
Copy link

In side view when pushing the button "remove", I get the following error:

Please report bugs in MSS to https://github.com/Open-MSS/MSS

Information about the fatal error:

Traceback (most recent call last):
File "/usr/local/miniconda3/envs/mssenv/lib/python3.10/site-packages/mslib/msui/wms_control.py", line 709, in clear_map
self.view.clear_figure()
AttributeError: 'MplSideViewCanvas' object has no attribute 'clear_figure'

@ReimarBauer ReimarBauer added the bug Something isn't working label Aug 5, 2023
@ReimarBauer ReimarBauer added this to the 8.1.2 milestone Aug 5, 2023
@ReimarBauer
Copy link
Member

Same problem also in LinearView

Traceback (most recent call last):
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/site-packages/mslib/msui/wms_control.py", line 709, in clear_map
    self.view.clear_figure()
AttributeError: 'MplLinearViewCanvas' object has no attribute 'clear_figure'
CRITICAL: MSS Version: 8.1.1
CRITICAL: Python Version: 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:23:14) [GCC 10.4.0]
CRITICAL: Platform: Linux-6.2.0-10018-tuxedo-x86_64-with-glibc2.35 (('64bit', 'ELF'))
CRITICAL: Fatal error: Traceback (most recent call last):
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/site-packages/mslib/msui/wms_control.py", line 709, in clear_map
    self.view.clear_figure()
AttributeError: 'MplLinearViewCanvas' object has no attribute 'clear_figure'

@ReimarBauer ReimarBauer changed the title Clear figure sideview Liearview and Sideview crash on Clear figure by clicking on the remove button Aug 5, 2023
@joernu76 joernu76 changed the title Liearview and Sideview crash on Clear figure by clicking on the remove button Lienarview and Sideview crash on Clear figure by clicking on the remove button Aug 6, 2023
@joernu76 joernu76 changed the title Lienarview and Sideview crash on Clear figure by clicking on the remove button Linearview and Sideview crash on Clear figure by clicking on the remove button Aug 6, 2023
@joernu76 joernu76 self-assigned this Aug 6, 2023
joernu76 added a commit that referenced this issue Aug 6, 2023
@joernu76 joernu76 linked a pull request Aug 6, 2023 that will close this issue
ReimarBauer pushed a commit that referenced this issue Aug 10, 2023
* Fix broken remove/clear_figure link.

Fix #1857

* fix clear figure in linear view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working msui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants