ROI manager bug-let

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

ROI manager bug-let

Michael Elbaum
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,
Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Gabriel Landini
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
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Michael Elbaum
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
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Michael Schmid
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
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Michael Elbaum
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
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

ctrueden
Hi Michael,

> java.lang.IllegalArgumentException: null source

I have also witnessed that bug on Linux with Java 7, as well as seen it
reported by others [1].

AFAIK, the bug does not happen with Java 8, so try upgrading.

Regards,
Curtis

[1] E.g.: http://forum.imagej.net/t/strange-bug-with-information-window/1211

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Fri, May 6, 2016 at 1:59 PM, Michael Elbaum <
[hidden email]> wrote:

> 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
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Michael Elbaum
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

ctrueden
Hi Michael,

> Otherwise I'll install a bundled Java under ImageJ.

Definitely; if you download a fresh Fiji from http://fiji.sc/#download then
it comes bundled with Java 8, which should work going back to at least
12.04, if not further.

Regards,
Curtis

--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
Did you know ImageJ has a forum? http://forum.imagej.net/


On Fri, May 6, 2016 at 3:01 PM, Michael Elbaum <
[hidden email]> wrote:

> Thanks.  I'll see if I can do that without breaking my aging Ubuntu.
> Otherwise I'll install a bundled Java under ImageJ.
> Best,
> Michael
>
>
> > On 6 במאי 2016, at 22:42, Curtis Rueden <[hidden email]> wrote:
> >
> > Hi Michael,
> >
> >> java.lang.IllegalArgumentException: null source
> >
> > I have also witnessed that bug on Linux with Java 7, as well as seen it
> > reported by others [1].
> >
> > AFAIK, the bug does not happen with Java 8, so try upgrading.
> >
> > Regards,
> > Curtis
> >
> > [1] E.g.:
> http://forum.imagej.net/t/strange-bug-with-information-window/1211
> >
> > --
> > Curtis Rueden
> > LOCI software architect - http://loci.wisc.edu/software
> > ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
> > Did you know ImageJ has a forum? http://forum.imagej.net/
> >
> >
> > On Fri, May 6, 2016 at 1:59 PM, Michael Elbaum <
> > [hidden email]> wrote:
> >
> >> 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
> >>
> >
> > --
> > 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
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Gabriel Landini
In reply to this post by Michael Elbaum
On Friday 06 May 2016 18:59:43 Michael Elbaum wrote:
> 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!)

Ah, yes now I can reproduce this with Oracle Java 7.

Perhaps this is related to this odd problem that happens when I close IJ from
the X icon in the main window, or with the Quit menu command? Do you get this
too?:

========================
Exception during disposal:
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
        at java.awt.Window.doDispose(Window.java:1209)
        at java.awt.Window.dispose(Window.java:1147)
        at ij.ImageJ.run(ImageJ.java:801)
        at java.lang.Thread.run(Thread.java:744)
Caused by: 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:224)
        at java.awt.event.InvocationEvent.<init>(InvocationEvent.java:188)
        at java.awt.event.InvocationEvent.<init>(InvocationEvent.java:150)
        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:6980)
        at java.awt.Container.removeNotify(Container.java:2800)
        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.event.InvocationEvent.dispatch(InvocationEvent.java:241)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        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:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        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)
========================

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ROI manager bug-let

Michael Elbaum
Funny. When I Quit from the menu there's a long list of complaints from java on the terminal. The X in the corner closes cleanly. The problem does seem to be related to java 1.7 though. A fresh Fiji install as Curtis suggested works fine, and I found an old Fiji with 1.6 that works as well. problem solved.
thanks,
Michael

________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of Gabriel Landini [[hidden email]]
Sent: Saturday, May 07, 2016 12:49
To: [hidden email]
Subject: Re: ROI manager bug-let

On Friday 06 May 2016 18:59:43 Michael Elbaum wrote:
> 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!)

Ah, yes now I can reproduce this with Oracle Java 7.

Perhaps this is related to this odd problem that happens when I close IJ from
the X icon in the main window, or with the Quit menu command? Do you get this
too?:

========================
Exception during disposal:
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
        at java.awt.Window.doDispose(Window.java:1209)
        at java.awt.Window.dispose(Window.java:1147)
        at ij.ImageJ.run(ImageJ.java:801)
        at java.lang.Thread.run(Thread.java:744)
Caused by: 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:224)
        at java.awt.event.InvocationEvent.<init>(InvocationEvent.java:188)
        at java.awt.event.InvocationEvent.<init>(InvocationEvent.java:150)
        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:6980)
        at java.awt.Container.removeNotify(Container.java:2800)
        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.event.InvocationEvent.dispatch(InvocationEvent.java:241)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        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:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        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)
========================

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html