Login  Register

ImageJ ROI manager Negative Array Size Exception

Posted by yorkh2 on Jan 23, 2017; 1:29pm
URL: http://imagej.273.s1.nabble.com/ImageJ-ROI-manager-Negative-Array-Size-Exception-tp5017933.html

Hi,

I have been adding ROI selections to the ROI manager and saving my progress as I go.  When I load the Roiset.zip file back into Fiji, I get the following message and only a portion of the ROI's show up in the manager window:

java.lang.NegativeArraySizeException
        at ij.io.RoiDecoder.getRoi(RoiDecoder.java:256)
        at ij.plugin.frame.RoiManager.openZip(RoiManager.java:760)
        at ij.plugin.frame.RoiManager.open(RoiManager.java:726)
        at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2005)
        at ij.macro.Functions.roiManager(Functions.java:2758)
        at ij.macro.Functions.getFunctionValue(Functions.java:230)
        at ij.macro.Interpreter.getFactor(Interpreter.java:1385)
        at ij.macro.Interpreter.getTerm(Interpreter.java:1356)
        at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496)
        at ij.macro.Interpreter.getStringTerm(Interpreter.java:1315)
        at ij.macro.Interpreter.getString(Interpreter.java:1272)
        at ij.macro.Interpreter.doStatement(Interpreter.java:281)
        at ij.macro.Interpreter.doStatements(Interpreter.java:218)
        at ij.macro.Interpreter.run(Interpreter.java:115)
        at ij.macro.Interpreter.run(Interpreter.java:85)
        at ij.macro.Interpreter.run(Interpreter.java:96)
        at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:155)
        at ij.IJ.runMacro(IJ.java:134)
        at ij.io.Opener.openZip(Opener.java:941)
        at ij.io.Opener.openImage(Opener.java:355)
        at ij.io.Opener.openImage(Opener.java:243)
        at ij.io.Opener.open(Opener.java:110)
        at ij.io.Opener.openAndAddToRecent(Opener.java:292)
        at ij.plugin.DragAndDrop.openFile(DragAndDrop.java:192)
        at ij.plugin.DragAndDrop.run(DragAndDrop.java:159)
        at java.lang.Thread.run(Thread.java:745)

Has anyone encountered this before and what can I do to fix this?  Thanks!

Kind regards,

Tate