Closed igorpisarev closed 4 years ago
I have seen this exception a few times, too. I wonder if it is as simple as changing
img -> (int) img.getWidth(),
img -> (int) img.getHeight()
to
img -> img == null ? 0 : (int) img.getWidth(),
img -> img == null ? 0 : (int) img.getHeight()
or similar.
I also sometimes get a similar but slightly different one:
Exception in thread "painter-thread" java.lang.ArrayIndexOutOfBoundsException: 3
at bdv.fx.viewer.render.MultiResolutionRendererGeneric.paint(MultiResolutionRendererGeneric.java:637)
at bdv.fx.viewer.render.RenderUnit.paint(RenderUnit.java:242)
at bdv.fx.viewer.render.PainterThread.run(PainterThread.java:46)
Sometimes the following exception occurs when the application is started, could be either with or without an existing project:
It's not breaking anything and the application continues to run as expected, so it's not high priority but would be nice to fix.