jetperch / pyjoulescope_ui

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

Black Screenshot with "copy image to clipboard" #239

Closed Nono-73 closed 7 months ago

Nono-73 commented 7 months ago

Joulescope model

JS110

UI version

other

What OS are you seeing the problem on?

Windows 10

What happened?

I have Joulescope_UI 1.0.42. When I take screenshot (with 'right-click'->'copy image to clipboard') and I paste it, the screenshot is a black screen : image but in reality I have this : image But if I display a second measure, like current, the 'copy image to clipaboard' work fine : image

What was expected?

Use 'copy image to clipboard' even when there is a measurement displayed

How to reproduce?

  1. Display just one measure (voltage for example)
  2. Right-Click -> 'copy image to clipboard'
  3. paste it

Extra information

No response

mliberty1 commented 7 months ago

Hi @Nono-73 and thanks for reporting this issue. I was able to successfully duplicate the behavior, except I find that it is always a black image on my PC.

After investigating, it looks like the image capture takes place immediately. However, if you were just moving the mouse, the image could have still be rendering. The fix is to defer the image capture until the next render completes. The fix is in https://github.com/jetperch/pyjoulescope_ui/commit/a617e595f6eec5ee10b48c21f9174bc2af750ae5 which will be in the next UI release.