jetperch / pyjoulescope_ui

Joulescope graphical user interface
https://www.joulescope.com
Apache License 2.0
87 stars 26 forks source link

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

Closed mliberty1 closed 2 months ago

mliberty1 commented 3 months ago

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.