NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #408 (closed defect: fixed)

Opened 2009-07-22T15:13:06-05:00

Last modified 2010-09-02T15:37:45-05:00

Exception when opening files with > 512 series in ImageJ

Reported by: melissa Owned by: melissa
Priority: major Milestone: bio-formats-4.1
Component: plugins Severity: serious
Keywords: Cc:
Blocked By: Blocking:


Opening data/incell/brian/2008. (which has 3840 series) in ImageJ produces the following exception:

java.lang.ArrayIndexOutOfBoundsException: 512
	at java.awt.GridBagLayout.GetLayoutInfo(
	at java.awt.GridBagLayout.getLayoutInfo(
	at java.awt.GridBagLayout.preferredLayoutSize(
	at java.awt.Container.preferredSize(
	at java.awt.Container.getPreferredSize(
	at java.awt.BorderLayout.preferredLayoutSize(
	at java.awt.Container.preferredSize(
	at java.awt.Container.getPreferredSize(
	at java.awt.Window.pack(
	at loci.plugins.util.WindowTools.addScrollBars(
	at loci.plugins.importer.SeriesDialog.showDialog(
	at ij.IJ.runUserPlugIn(
	at ij.IJ.runPlugIn(
	at ij.Executer.runCommand(

This is with Java 1.5.0_16 on Mac OS X. See

Change History

comment:1 Changed 2009-09-18T11:35:50-05:00 by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [5481]) An exception is no longer thrown if there are more than 512 series. Closes #408.

comment:2 Changed 2010-09-02T15:37:45-05:00 by curtis

r6874 improves the support for large numbers of series further. Before, datasets with many thousands of series had performance issues with the Bio-Formats Importer plugin, but they should be reasonably importable now. The general approach is to prompt for a single series list string, rather than using one checkbox per series, when the number of series is too large (200+).