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

Dragging a window over ToF-E Histogram crashes Potku #240

Open
tpitkanen opened this issue Jan 11, 2022 · 1 comment
Open

Dragging a window over ToF-E Histogram crashes Potku #240

tpitkanen opened this issue Jan 11, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@tpitkanen
Copy link
Member

Steps to reproduce

  1. Open a request
  2. Open a measurement
  3. Drag a window (Log, Composition changes, Depth profiles, Energy spectra) over the ToF-E Histogram so that the mouse cursor touches the Matplotlib area
  4. Potku should crash

Traceback:

Traceback (most recent call last):
  File "C:\Users\<user>\.virtualenvs\potku-<hash>\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 60, in paintEvent
    memoryview(reg))
  File "C:\Users\<user>\.virtualenvs\potku-<hash>\lib\site-packages\matplotlib\cbook\__init__.py", line 2054, in _unmultiplied_rgba8888_to_premultiplied_argb32
    if alpha8.min() != 0xff:
  File "C:\Users\<user>\.virtualenvs\potku-<hash>\lib\site-packages\numpy\core\_methods.py", line 43, in _amin
    return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity
@tpitkanen tpitkanen added the bug Something isn't working label Jan 11, 2022
@tpitkanen
Copy link
Member Author

The problem has been around since at least 19fb51d. Earlier versions don't work with current global/request settings, so I didn't test them.

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

No branches or pull requests

1 participant