Login  Register

GenericDialog limited to 25 sliders

Posted by Stephan.Preibisch@mdc-berlin.de on Apr 24, 2017; 6:08am
URL: http://imagej.273.s1.nabble.com/GenericDialog-limited-to-25-sliders-tp5018594.html

Hi,

I ran into a confusing bug that ImageJ crashes with an outofbounds exceptions when using >= 25 sliders:

Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 25
at ij.gui.GenericDialog.addSlider(GenericDialog.java:646)

This behaviour is wanted since there is a "public static final int MAX_SLIDERS = 25;”, which defines the array size.

Would it be ok to remove this limitation? It seems rather random and from my point of view it seems to make not much sense. But even if, it should not crash but throw a defined exception.

Thanks a lot,
Stephan
---

Dr. Stephan Preibisch
Group Leader

Berlin Institute for Medical Systems Biology (BIMSB), Max Delbrück Center for Molecular Medicine (MDC)
Building 89, 1.08b

email: [hidden email]<mailto:[hidden email]>
web: http://preibischlab.mdc-berlin.de


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html