Hi, All
If to make zooming a picture in - i have the non-fatal error:
The interface is hung, this error is generated one by one, but if to zoom back out - it can be normalized.
It looks like the limit is around 4.3 times for my test picture enlarging. For smaller picture it can be OK upto 7.5 times.
There is some explanation: https://stackoverflow.com/questions/65565209/nullpointers-in-javafx-when-using-a-large-canvas
But how to detect it and prevent on time ? Now i do not zoom after 4.0 ratio. But it needs to check by the memory, i think, that depends on the picture size and PC RAM.
If to make zooming a picture in - i have the non-fatal error:
The point of the error is unknown (seems, in the JavaFX internal code) - it cannot be caught.java.lang.NullPointerException: Cannot invoke "com.sun.prism.RTTexture.createGraphics()" because "<local9>" is null
The interface is hung, this error is generated one by one, but if to zoom back out - it can be normalized.
It looks like the limit is around 4.3 times for my test picture enlarging. For smaller picture it can be OK upto 7.5 times.
There is some explanation: https://stackoverflow.com/questions/65565209/nullpointers-in-javafx-when-using-a-large-canvas
But how to detect it and prevent on time ? Now i do not zoom after 4.0 ratio. But it needs to check by the memory, i think, that depends on the picture size and PC RAM.
Last edited: