If I run an macro with the following one command:
roiManager("Set Color", "yellow"); I get the following error: java.lang.NullPointerException at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1283) at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2032) at ij.macro.Functions.roiManager(Functions.java:2772) at ij.macro.Functions.getFunctionValue(Functions.java:230) at ij.macro.Interpreter.getFactor(Interpreter.java:1385) at ij.macro.Interpreter.getTerm(Interpreter.java:1356) at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496) and a bunch more output. Running ImageJ 1.51m2, Java 1.8.0_112 (64 bit) MacOS 10.12.3 --aryeh -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Aryeh,
I am using Fiji version 1.51j8 java 1.8.0_66 (64 bit) on a mac OS X El Capitan version 10.11.6. I tried to regenerate your bug but I couldn't. I recorded the following script and then ran it with no problem: newImage("Untitled", "8-bit ramp", 2000, 2048, 1); //setTool("oval"); makeOval(633, 270, 228, 156); run("ROI Manager..."); roiManager("Add"); roiManager("Select", 0); roiManager("Set Color", "yellow"); roiManager("Set Line Width", 0); I hope someone figures it out, Avital On Sun, Mar 5, 2017 at 2:44 PM, Aryeh Weiss <[hidden email]> wrote: > If I run an macro with the following one command: > > roiManager("Set Color", "yellow"); > > I get the following error: > > java.lang.NullPointerException > at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1283) > at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2032) > at ij.macro.Functions.roiManager(Functions.java:2772) > at ij.macro.Functions.getFunctionValue(Functions.java:230) > at ij.macro.Interpreter.getFactor(Interpreter.java:1385) > at ij.macro.Interpreter.getTerm(Interpreter.java:1356) > at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496) > and a bunch more output. > > Running ImageJ 1.51m2, Java 1.8.0_112 (64 bit) > MacOS 10.12.3 > > --aryeh > > -- > Aryeh Weiss > Faculty of Engineering > Bar Ilan University > Ramat Gan 52900 Israel > > Ph: 972-3-5317638 > FAX: 972-3-7384051 > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Aryeh Weiss
Hi Michael
Thank you (and also Avital) for your quick replies. On 05/03/2017 17:12, Michael Schmid wrote: > Hi Aryeh, > > seems this is a bug in the daily build (I can reproduce it with 1.51m2). > I can't get it with ImageJ 1.51k, which is the 'stable' release. > I confirm this -- 1.51k works, so it appears to be a bug in the daily build. --aryeh > Michael > ________________________________________________________________ > > > On 2017-03-05 13:44, Aryeh Weiss wrote: >> If I run an macro with the following one command: >> >> roiManager("Set Color", "yellow"); >> >> I get the following error: >> >> java.lang.NullPointerException >> at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1283) >> at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2032) >> at ij.macro.Functions.roiManager(Functions.java:2772) >> at ij.macro.Functions.getFunctionValue(Functions.java:230) >> at ij.macro.Interpreter.getFactor(Interpreter.java:1385) >> at ij.macro.Interpreter.getTerm(Interpreter.java:1356) >> at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496) >> and a bunch more output. >> >> Running ImageJ 1.51m2, Java 1.8.0_112 (64 bit) >> MacOS 10.12.3 >> >> --aryeh >> >> -- >> Aryeh Weiss > -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Aryeh Weiss
> On Mar 5, 2017, at 7:44 AM, Aryeh Weiss <[hidden email]> wrote:
> > If I run an macro with the following one command: > > roiManager("Set Color", "yellow"); > > I get the following error: This v1.51m2 regression is fixed in the latest daily build (1.51m3). -wayne > java.lang.NullPointerException > at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1283) > at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2032) > at ij.macro.Functions.roiManager(Functions.java:2772) > at ij.macro.Functions.getFunctionValue(Functions.java:230) > at ij.macro.Interpreter.getFactor(Interpreter.java:1385) > at ij.macro.Interpreter.getTerm(Interpreter.java:1356) > at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496) > and a bunch more output. > > Running ImageJ 1.51m2, Java 1.8.0_112 (64 bit) > MacOS 10.12.3 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
On 05/03/2017 23:33, Wayne Rasband wrote:
>> On Mar 5, 2017, at 7:44 AM, Aryeh Weiss <[hidden email]> wrote: >> >> If I run an macro with the following one command: >> >> roiManager("Set Color", "yellow"); >> >> I get the following error: > This v1.51m2 regression is fixed in the latest daily build (1.51m3). > > -wayne --aryeh >> java.lang.NullPointerException >> at ij.plugin.frame.RoiManager.setProperties(RoiManager.java:1283) >> at ij.plugin.frame.RoiManager.runCommand(RoiManager.java:2032) >> at ij.macro.Functions.roiManager(Functions.java:2772) >> at ij.macro.Functions.getFunctionValue(Functions.java:230) >> at ij.macro.Interpreter.getFactor(Interpreter.java:1385) >> at ij.macro.Interpreter.getTerm(Interpreter.java:1356) >> at ij.macro.Interpreter.getStringExpression(Interpreter.java:1496) >> and a bunch more output. >> >> Running ImageJ 1.51m2, Java 1.8.0_112 (64 bit) >> MacOS 10.12.3 > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |