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 826 - I cannot open *.avi files after updating my Fiji to ImageJ2. Before the update it was working perfectly. Now, I cannot come back to my previous version of Fiji :(
I cannot open *.avi files after updating my Fiji to ImageJ2. Before the updat...
Status: ASSIGNED
Product: ImageJ
Classification: Unclassified
Component: SCIFIO
unspecified
PC Windows
: P5 enhancement
Assigned To: Curtis Rueden
Depends on:
Blocks:
 
Reported: 2014-07-01 03:36 CDT by Lluís Soler Turu
Modified: 2015-04-06 15:49 CDT
3 users (show)

See Also:

Description Lluís Soler Turu 2014-07-01 03:36:48 CDT
(Fiji Is Just) ImageJ 2.0.0-rc-6/1.49b; Java 1.6.0_24 [64-bit]; Windows 7 6.1; 25MB of 12195MB (<1%)
 
org.scijava.NullContextException: Before attempting to use this object, please set its context by calling the setContext(...) method.

	at org.scijava.AbstractContextual.context(AbstractContextual.java:57)

	at org.scijava.AbstractGateway.get(AbstractGateway.java:90)

	at org.scijava.AbstractGateway.log(AbstractGateway.java:152)

	at io.scif.io.RandomAccessInputStream.<init>(RandomAccessInputStream.java:111)

	at io.scif.io.RandomAccessInputStream.<init>(RandomAccessInputStream.java:100)

	at io.scif.io.RandomAccessInputStream.<init>(RandomAccessInputStream.java:126)

	at io.scif.codec.AbstractCodec.decompress(AbstractCodec.java:166)

	at io.scif.formats.AVIFormat$AVIUtils.extractCompression(AVIFormat.java:1800)

	at io.scif.formats.AVIFormat$Metadata.populateImageMetadata(AVIFormat.java:316)

	at io.scif.AbstractParser.parse(AbstractParser.java:254)

	at io.scif.AbstractParser.parse(AbstractParser.java:335)

	at io.scif.AbstractParser.parse(AbstractParser.java:52)

	at io.scif.AbstractReader.setSource(AbstractReader.java:270)

	at io.scif.services.DefaultInitializeService.initializeReader(DefaultInitializeService.java:90)

	at io.scif.img.ImgOpener.createReader(ImgOpener.java:542)

	at io.scif.img.ImgOpener.openImgs(ImgOpener.java:144)

	at net.imagej.DefaultDatasetService.open(DefaultDatasetService.java:257)

	at net.imagej.DefaultDatasetService.open(DefaultDatasetService.java:241)

	at net.imagej.io.DatasetIOPlugin.open(DatasetIOPlugin.java:78)

	at net.imagej.io.DatasetIOPlugin.open(DatasetIOPlugin.java:50)

	at net.imagej.legacy.plugin.DefaultLegacyOpener.open(DefaultLegacyOpener.java:135)

	at net.imagej.legacy.DefaultLegacyHooks.interceptFileOpen(DefaultLegacyHooks.java:436)

	at net.imagej.legacy.DefaultLegacyHooks.interceptRunPlugIn(DefaultLegacyHooks.java:158)

	at ij.IJ.runPlugIn(IJ.java)

	at ij.Executer.runCommand(Executer.java:131)

	at ij.Executer.run(Executer.java:64)

	at java.lang.Thread.run(Thread.java:662)
Comment 1 Curtis Rueden 2014-07-01 08:40:37 CDT
Thanks for the bug report. We'll investigate ASAP.

In the meantime, there are three ways to get your files working again:

1) File > Import > Bio-Formats to import the files via Bio-Formats.

2) Edit > Options > ImageJ2 and uncheck "Use SCIFIO when opening files" to revert to the old ImageJ1 AVI reader, which will work the same way as before.

And if all else fails, you can use an older "Life-Line" version of Fiji available from: http://fiji.sc/Downloads