NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1191 - Error while merging channels command
Error while merging channels command
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2015-11-17 06:02 CST by carlijn.vandewater1
Modified: 2015-11-18 11:11 CST
2 users (show)

See Also:


Attachments
Two folders each containing 3 .tif files used to make two stacks (774.30 KB, application/x-rar)
2015-11-18 00:39 CST, carlijn.vandewater1

Description carlijn.vandewater1 2015-11-17 06:02:56 CST
Hello,

I've imported two image sequences of both 212 images (.tif files). When I try to merge these image stacks I get the following error. The folder I'm importing from only contain 212 images and no other filetypes. I' ve also imported only 50 of these images and still got the same error. 

Error:
(Fiji Is Just) ImageJ 2.0.0-rc-41/1.50b; Java 1.6.0_24 [64-bit]; Windows 7 6.1; 154MB of 12245MB (1%)
 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1937)
	at java.lang.String.substring(String.java:1904)
	at ij.plugin.RGBStackMerge.getName(RGBStackMerge.java:234)
	at ij.plugin.RGBStackMerge.getInitialNames(RGBStackMerge.java:221)
	at ij.plugin.RGBStackMerge.mergeStacks(RGBStackMerge.java:46)
	at ij.plugin.RGBStackMerge.run(RGBStackMerge.java:24)
	at ij.IJ.runPlugIn(IJ.java:182)
	at ij.Executer.runCommand(Executer.java:132)
	at ij.Executer.run(Executer.java:62)
	at java.lang.Thread.run(Thread.java:662)


Recorded macro (eventhough I just opened them via the Fiji menu File>Import>Image Sequence):
run("Image Sequence...", "open=[D:\\20151113_OKO\\13112015_Fucci_treatments\\E98-Fucci sort control washed GFP\\C2\\Img0001.tif] sort");
run("Image Sequence...", "open=[D:\\20151113_OKO\\13112015_Fucci_treatments\\E98-Fucci sort control washed RFP\\C1\\Img0001.tif] sort");

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: CHECK_TURNED_OFF

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\Users\z931157\DOWNLO~1\FIJI-W~1\Fiji.app/java/win64/jdk1.6.0_24//jre
  imagej.dir => C:\Users\z931157\DOWNLO~1\FIJI-W~1\Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20151017033411)
Fiji: http://update.fiji.sc/ (last check:20151017042838)
BioVoxxel: http://sites.imagej.net/BioVoxxel/ (last check:20151016184842)

Files not up-to-date:
  945b6a66 (LOCAL_ONLY) 20151109095140 luts/FociPicker_256Colors.lut
  db71a076 (LOCAL_ONLY) 20130130061123 macros/IHC_Profiler.txt
  0a5c1981 (LOCAL_ONLY) 20150701121127 plugins/Color_Profiler.jar
  1617f9d1 (LOCAL_ONLY) 20151109095047 plugins/Foci_Picker3D$PixelCollection3D.class
  4f03b5a2 (LOCAL_ONLY) 20151109095036 plugins/Foci_Picker3D.class
  833ba9a6 (LOCAL_ONLY) 20130730092737 plugins/IHC Profiler/IHC_Profiler.class
  be4ffb9b (LOCAL_ONLY) 20130130061123 plugins/IHC_Profiler.txt
  3c21996d (LOCAL_ONLY) 20150511092636 plugins/RGBtoLab_.class
  9e5984f3 (LOCAL_ONLY) 20060502092450 plugins/RGBtoYUV_.class
  844d1f78 (OBSOLETE_MODIFIED) 20150511093310 plugins/Threshold_Colour.jar
Comment 1 Wayne Rasband 2015-11-17 14:48:16 CST
Please attach two stacks that we can use to reproduce this bug.
Comment 2 carlijn.vandewater1 2015-11-18 00:39:15 CST
Created attachment 276
Two folders each containing 3 .tif files used to make two stacks
Comment 3 Wayne Rasband 2015-11-18 11:11:33 CST
This bug, triggered by folder names shorter than 3 characters, is fixed in the latest ImageJ daily build (1.50e35).