Closed opiateblush closed 9 months ago
I can get the same InexactError: trunc(Int64, NaN)
using the following:
using GtkObservables
zr=ZoomRegion((1:100,1:100))
c=XY(UserUnit(50),UserUnit(50))
and then calling the following over and over:
zr=zoom(zr,0.5,c)
which simulates zooming in. I think this could be fixed by refusing to zoom in further when you get to the point where a pixel fills the whole canvas.
Using Gtk to repeatedly call a function that updates the image to an image with a different resolution causes an InexactError that corrupts the Gtk loop. In order for that behavior to occur one has to scroll (resize) the image in the gui continuously and fast (it takes a few seconds before it crashes). The following example can be used to demonstrate the issue:
The error:
System Info: Ubuntu 22.04 Julia 1.9.4 Gtk4 v0.5.4 GtkObservables v2.0.3 ImageView v0.12.0 Images v0.26.0 Observables v0.5.5