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

Waveform widget does not render correctly when zoomed into large dual marker region #285

Closed
mliberty1 opened this issue Jul 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mliberty1
Copy link
Member

mliberty1 commented Jul 31, 2024

Joulescope model

JS220

UI version

1.1.10

What OS are you seeing the problem on?

Windows 11

What happened?

If I add a dual marker to a large region and then zoom in, the Waveform widget no longer renders correctly.

zoom_dual_marker

The log file also contains the following warning:

ERROR:2024-07-31 16:54:39,007:waveform_widget.py:1443:joulescope_ui.widgets.waveform.waveform_widget:Exception during drawing
Traceback (most recent call last):
  File "C:\PROGRA~1\JOULES~1\joulescope_ui\widgets\waveform\waveform_widget.py", line 1441, in plot_paint
  File "C:\PROGRA~1\JOULES~1\joulescope_ui\widgets\waveform\waveform_widget.py", line 1535, in _plot_paint
  File "C:\PROGRA~1\JOULES~1\joulescope_ui\widgets\waveform\waveform_widget.py", line 1929, in _draw_markers_background
OverflowError

What was expected?

The UI should continue to render correctly.

How to reproduce?

  1. Add a dual marker, and expand.
  2. Zoom in far while keeping the dual marker in the view.
  3. Observe the behavior.
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
No open projects
Development

No branches or pull requests

1 participant