http://imagej.273.s1.nabble.com/ROI-manager-bug-let-tp5016334p5016344.html
reported by others [1].
AFAIK, the bug does not happen with Java 8, so try upgrading.
> The macro runs as expected, i.e., no problem. I tried stepping through it
> line by line and that also worked. After playing a bit more I understood
> the problem comes from closing the ROI manager with the X in the corner,
> rather than Ctrl-W. If closed with the X it no longer works. (Obviously a
> workaround is never to close with the X!) There's also an error output on
> the terminal (below). I'm using Ubuntu 12.04. My system java is Java(TM) SE
> Runtime Environment (build 1.7.0_80-b15).
> Michael
>
>
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
> null source
> at java.util.EventObject.<init>(EventObject.java:56)
> at java.awt.AWTEvent.<init>(AWTEvent.java:337)
> at java.awt.event.InvocationEvent.<init>(InvocationEvent.java:285)
> at java.awt.event.InvocationEvent.<init>(InvocationEvent.java:174)
> at sun.awt.X11.XBaseMenuWindow.dispose(XBaseMenuWindow.java:907)
> at java.awt.MenuComponent.removeNotify(MenuComponent.java:310)
> at java.awt.Menu.removeNotify(Menu.java:198)
> at java.awt.Component.removeNotify(Component.java:6991)
> at java.awt.Container.removeNotify(Container.java:2816)
> at java.awt.Window.removeNotify(Window.java:782)
> at java.awt.Frame.removeNotify(Frame.java:1041)
> at java.awt.Window$1DisposeAction.run(Window.java:1190)
> at java.awt.Window.doDispose(Window.java:1205)
> at java.awt.Window.dispose(Window.java:1147)
> at ij.plugin.frame.PlugInFrame.close(PlugInFrame.java:41)
> at ij.plugin.frame.RoiManager.close(RoiManager.java:2223)
> at ij.plugin.frame.PlugInFrame.windowClosing(PlugInFrame.java:32)
> at
> java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:349)
> at java.awt.Window.processWindowEvent(Window.java:2051)
> at
> ij.plugin.frame.RoiManager.processWindowEvent(RoiManager.java:1761)
> at java.awt.Window.processEvent(Window.java:2009)
> at java.awt.Component.dispatchEventImpl(Component.java:4872)
> at java.awt.Container.dispatchEventImpl(Container.java:2287)
> at java.awt.Window.dispatchEventImpl(Window.java:2719)
> at java.awt.Component.dispatchEvent(Component.java:4698)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)
> at java.awt.EventQueue.access$300(EventQueue.java:103)
> at java.awt.EventQueue$3.run(EventQueue.java:706)
> at java.awt.EventQueue$3.run(EventQueue.java:704)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
> at java.awt.EventQueue$4.run(EventQueue.java:720)
> at java.awt.EventQueue$4.run(EventQueue.java:718)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)
> at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
> at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
>
> ________________________________________
> From: ImageJ Interest Group [
[hidden email]] on behalf of Michael
> Schmid [
[hidden email]]
> Sent: Friday, May 06, 2016 20:44
> To:
[hidden email]
> Subject: Re: ROI manager bug-let
>
> Hi Michael,
>
> sorry, I can't reproduce this. Here is my sample macro:
>
> run("Blobs (25K)");
> setAutoThreshold("Default");
> run("Analyze Particles...", "exclude include summarize add");
> selectWindow("ROI Manager");
> run("Close");
> showStatus("ROI Manager has been closed");
> wait(2000);
> run("Analyze Particles...", "exclude include summarize add");
>
>
> I'm using ImageJ 1.51a16; Java 1.6.0_65 [64-bit]; Mac OS X 10.6.8
>
> If you see the problem with my macro, please report which Java and
> operating system version.
> If the macro shows the ROI Manager with the second run of "Analyze
> Particles...", can you determine what is differnet in your case,
> compared to the macro?
> Michael
> ________________________________________________________________
>
> On 2016-05-06 18:46, Michael Elbaum wrote:
> > Same behavior with 1.51a, just upgraded. I take an image, threshold,
> Analyze Particles to get an ROI manager. Then I close the ROI manager and
> run Analyze Particles again but no ROI manager comes up. The Results and
> Summary do update as expected.
> > best,
> > Michael
> >
> > ________________________________________
> > From: ImageJ Interest Group [
[hidden email]] on behalf of Gabriel
> Landini [
[hidden email]]
> > Sent: Friday, May 06, 2016 18:28
> > To:
[hidden email]
> > Subject: Re: ROI manager bug-let
> >
> > On Friday 06 May 2016 15:21:44 Michael Elbaum wrote:
> >> Dear developers,
> >> If I use the ROI manager and inadvertently close it rather than
> deleting
> >> contents, then I can't get it back. It still appears in windows list but
> >> the only way to restore it is to restart ImageJ. I'm using v1.50f8. Is
> >> there a work-around, or if not could this go on a bug-fix list? thanks,
> >
> > I cannot replicate this
> > Please see if this happens in the latest version. It is more useful to
> first
> > check the latest version because bugs are being fixed all the time.
> >
> > Cheers
> >
> > Gabriel
> >
> > --
> > ImageJ mailing list:
http://imagej.nih.gov/ij/list.html> >
> > --
> > ImageJ mailing list:
http://imagej.nih.gov/ij/list.html> >
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>