Posted by
Stein Rørvik on
Oct 07, 2020; 7:11pm
URL: http://imagej.273.s1.nabble.com/Opening-AVI-files-is-broken-since-1-53c-tp5024001.html
I can no longer open AVI files directly (as saved by ImageJ),
neither via macro nor the GUI by using the open() command.
This simple macro fails:
run("Close All");
run("T1 Head (16-bits)");
run("AVI... ", "compression=JPEG frame=7 save=C:/Users/steinr/Test/t1-head.avi");
open("C:/Users/steinr/Test/t1-head.avi");
I get this Java error in the log window:
ImageJ 1.53f27; Java 1.8.0_172 [64-bit]; Windows 10 10.0; 167MB of 49063MB (<1%)
java.lang.NullPointerException
at ij.WindowManager.isDuplicateName(WindowManager.java:327)
at ij.WindowManager.makeUniqueName(WindowManager.java:363)
at ij.plugin.AVI_Reader.run(AVI_Reader.java:331)
at ij.io.Opener.openImage(Opener.java:351)
at ij.io.Opener.openImage(Opener.java:243)
at ij.io.Opener.open(Opener.java:109)
at ij.IJ.open(IJ.java:1852)
at ij.macro.Functions.open(Functions.java:2990)
at ij.macro.Functions.doFunction(Functions.java:158)
at ij.macro.Interpreter.doStatement(Interpreter.java:278)
at ij.macro.Interpreter.doStatements(Interpreter.java:264)
at ij.macro.Interpreter.run(Interpreter.java:160)
at ij.macro.Interpreter.run(Interpreter.java:93)
at ij.macro.MacroRunner.run(MacroRunner.java:139)
at java.lang.Thread.run(Thread.java:748)
If I select File - Open and try to select this AVI file via the GUI, ImageJ just crashes completely (disappears).
Using the macro recorder and the new AVI import dialog, I get this line:
run("AVI...", "select=C:/Users/steinr/Test/t1-head.avi avi=C:/Users/steinr/Test/t1-head.avi use");
(Why is the filename listed twice, BTW?)
Both
run("AVI...", "avi=C:/Users/steinr/Test/t1-head.avi use");
and
run("AVI...", "select=C:/Users/steinr/Test/t1-head.avi use");
seem to work fine though.
With 1.53b or earlier the syntax was like this:
run("AVI...", "open=C:/Users/steinr/Test/t1-head.avi first=10 last=100 use");
The first= and last= parameters still work, but they are not shown in the GUI.
I suppose these problems have a similar cause (new dialog) as the Import Sequence bugs fixed recently.
I am using daily build ImageJ 1.53f with Java 1.8 on Windows 10/64-bit.
Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html