<div dir="ltr"><div>Hi Mark<br><br>I am using IJ2 in headless mode with some custom commands I wrote. So it is always possible that I still have old references somewhere. However that stack trace was actually generated with 0.7.4. When I had noted that 0.7.5-SNAPSHOT threw an exception, I went back to 0.7.4 to make sure that worked but it also had the same exception. Then I went back to 0.7.3 which worked (other than the floating point problem). <br>
<br></div>Below is the stack trace using 0.7.5-SNAPSHOT. (btw since I am using IJ2 maybe there is something else wrong in the dependency tree?? One of the IJ2 components?? Should I set the sci-java version to a SNAPSHOT version too?? It is 1.111 right now. <br>
<div><br> at org.scijava.Context.inject(Context.java:273)<br> at org.scijava.plugin.DefaultPluginService.createInstance(DefaultPluginService.java:241)<br> at org.scijava.plugin.DefaultPluginService.createInstances(DefaultPluginService.java:229)<br>
at org.scijava.plugin.DefaultPluginService.createInstancesOfType(DefaultPluginService.java:220)<br> at org.scijava.plugin.AbstractSingletonService.createInstances(AbstractSingletonService.java:95)<br> at org.scijava.plugin.AbstractSingletonService.getInstances(AbstractSingletonService.java:73)<br>
at org.scijava.plugin.AbstractSingletonService$1.get(AbstractSingletonService.java:87)<br> at org.scijava.plugin.AbstractSingletonService$1.get(AbstractSingletonService.java:83)<br> at org.scijava.object.ObjectIndex.resolvePending(ObjectIndex.java:391)<br>
at org.scijava.object.ObjectIndex.get(ObjectIndex.java:136)<br> at org.scijava.object.DefaultObjectService.getObjects(DefaultObjectService.java:89)<br> at io.scif.codec.DefaultCodecService.getCodec(DefaultCodecService.java:65)<br>
at io.scif.formats.tiff.TiffCompression.compress(TiffCompression.java:330)<br> at io.scif.formats.tiff.TiffSaver.writeImage(TiffSaver.java:391)<br> at io.scif.formats.tiff.TiffSaver.writeImage(TiffSaver.java:279)<br>
at io.scif.formats.TIFFFormat$Writer.savePlane(TIFFFormat.java:1250)<br> at io.scif.formats.TIFFFormat$Writer.savePlane(TIFFFormat.java:1290)<br> at io.scif.AbstractWriter.savePlane(AbstractWriter.java:107)<br> at io.scif.img.ImgSaver.writePlanes(ImgSaver.java:532)<br>
at io.scif.img.ImgSaver.saveImg(ImgSaver.java:380)<br> at io.scif.img.ImgSaver.saveImg(ImgSaver.java:133)<br> at io.scif.img.ImgSaver.saveImg(ImgSaver.java:114)<br><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Dec 13, 2013 at 1:40 PM, Mark Hiner <span dir="ltr"><<a href="mailto:hinerm@gmail.com" target="_blank">hinerm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra">Hi Brian,<br></div><div class="gmail_extra"><div class="gmail_quote"><div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div> I referenced the scifio 0.7.5-SNAPSHOT (would that be correct to get the absolute latest??)</div>
</div></blockquote><div><br></div></div><div>Yep this should be the latest snapshot.<br></div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
in my POM and ran into an exception when executing my code. </div></div></blockquote></div><div><br>...<br> <br></div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
at io.scif.formats.TIFFFormat$Writer.savePlane(TIFFFormat.java:1255)<br> at io.scif.formats.TIFFFormat$Writer.savePlane(TIFFFormat.java:1295)<br> at io.scif.AbstractWriter.savePlane(AbstractWriter.java:107)<br>
at io.scif.img.ImgSaver.writePlanes(ImgSaver.java:532)<br>
at io.scif.img.ImgSaver.saveImg(ImgSaver.java:380)<br> at io.scif.img.ImgSaver.saveImg(ImgSaver.java:133)<br> at io.scif.img.ImgSaver.saveImg(ImgSaver.java:114)<br></div></div></blockquote><div><br></div></div>
<div>That stack trace suggests that an older version of the TIFFFormat is being used. It must be from prior<a href="https://github.com/scifio/scifio/commit/379530aab9a9848e59363d87dcbdb79c4842bfc3" target="_blank"> commit 37953</a> (because the TiffSaver.writeImage call is now on line 1250, not 1255). I'm assuming it's from the 0.7.4 release.<br>
<br></div><div> Are you just running the code snippet that Curtis posted a while back (or your own similar snippet)? Or are you using SCIFIO in IJ2, or another application?<br><br></div><div> Could you run "mvn dependency:tree", or check the "Maven Dependencies" tab if you're using Eclipse? I'm assuming something must still have a 0.7.4 SCIFIO reference, which is being pulled in instead of 0.7.5...<br>
<br></div><div>Sorry for the inconvenience.. let me know what you find!<br><br></div><div>Thanks,<br>Mark<br></div></div></div></div>
</blockquote></div><br></div>