<html>
<head>
<base href="http://fiji.sc/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Gray Morphology throws exception in Batch Mode"
href="http://fiji.sc/bugzilla/show_bug.cgi?id=958">958</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Gray Morphology throws exception in Batch Mode
</td>
</tr>
<tr>
<th>Product</th>
<td>Fiji
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>Mac OS
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P4
</td>
</tr>
<tr>
<th>Component</th>
<td>Plugins
</td>
</tr>
<tr>
<th>Assignee</th>
<td>imagej-bugs@imagej.net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stealthyspambox@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>stealthyspambox@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>The following example macro script throws an exception on my Mac. The
exception is copied below.
myImage = File.openDialog("Choose Image");
setBatchMode(true);
open(myImage);
run("Gray Morphology", "radius=1 type=circle operator=erode");
setBatchMode(false);
Here is the exception:
(Fiji Is Just) ImageJ 2.0.0-rc-15/1.49k; Java 1.6.0_65 [64-bit]; Mac OS X
10.9.5; 30MB of 4283MB (<1%)
java.lang.NullPointerException
at GrayMorphology_.setup(GrayMorphology_.java:89)
at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:47)
at ij.IJ.runUserPlugIn(IJ.java:204)
at ij.IJ.runPlugIn(IJ.java:166)
at ij.Executer.runCommand(Executer.java:131)
at ij.Executer.run(Executer.java:64)
at ij.IJ.run(IJ.java:272)
at ij.macro.Functions.doRun(Functions.java:591)
at ij.macro.Functions.doFunction(Functions.java:89)
at ij.macro.Interpreter.doStatement(Interpreter.java:226)
at ij.macro.Interpreter.doStatements(Interpreter.java:214)
at ij.macro.Interpreter.run(Interpreter.java:111)
at ij.macro.Interpreter.run(Interpreter.java:81)
at ij.macro.Interpreter.run(Interpreter.java:92)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:153)
at ij.IJ.runMacro(IJ.java:119)
at ij.IJ.runMacro(IJ.java:108)
at net.imagej.legacy.IJ1Helper.runMacro(IJ1Helper.java:782)
at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:116)
at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:156)
at org.scijava.script.ScriptModule.run(ScriptModule.java:175)
at org.scijava.module.ModuleRunner.run(ModuleRunner.java:167)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:126)
at org.scijava.module.ModuleRunner.call(ModuleRunner.java:65)
at
org.scijava.thread.DefaultThreadService$2.call(DefaultThreadService.java:164)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
Information about your version of Java:
os.arch => x86_64
os.name => Mac OS X
os.version => 10.9.5
java.version => 1.6.0_65
java.vendor => Apple Inc.
java.runtime.name => Java(TM) SE Runtime Environment
java.runtime.version => 1.6.0_65-b14-462-11M4609
java.vm.name => Java HotSpot(TM) 64-Bit Server VM
java.vm.version => 20.65-b04-462
java.vm.vendor => Apple Inc.
java.vm.info => mixed mode
java.awt.graphicsenv => apple.awt.CGraphicsEnvironment
java.specification.name => Java Platform API Specification
java.specification.version => 1.6
sun.cpu.endian => little
sun.desktop => null
file.separator => /
The up-to-date check says: REMIND_LATER
Information relevant to JAVA_HOME related problems:
JAVA_HOME is set to: null
imagej.dir => /Users/jameskrom/Applications/Fiji/Fiji.app
Information about the version of each plugin:
Activated update sites:
ImageJ: <a href="http://update.imagej.net/">http://update.imagej.net/</a> (last check:20141110001443)
Fiji: <a href="http://fiji.sc/update/">http://fiji.sc/update/</a> (last check:20141110105222)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>