Login  Register

Re: Headless ImageJ2-rc2 - Analyze Particles returns no result

Posted by dscho on Jun 23, 2014; 4:31pm
URL: http://imagej.273.s1.nabble.com/Headless-ImageJ2-rc2-Analyze-Particles-returns-no-result-tp5008127p5008376.html

Hi Paul,

On Mon, 16 Jun 2014, Paul van Schayck wrote:

> A remaining issue is that when the macro (or js script for that matter)
> finishes there is a delay (1 minute) in ImageJ fully exiting.  An
> explicit exit() does not seem to help. This does not happen in Fiji. I
> saw a recent commit for this on Github, but that does not seem to have
> completely solved it.

That is strange. We run our regression tests (including macros) pretty
frequently and no such behavior was recorded. Maybe this behavior does not
occur in headless mode?

In any case, do you know about the Ctrl+\ trick on the console to ask Java
for a thread dump? That might help you determine which thread is still
alive (and obviously blocking).

> >> Running scripts this way in pure ImageJ has been giving this exception
> >> for me for a few weeks. However, it does work in the daily Fiji build.
> >>
> >> Exception in thread "main" java.lang.NullPointerException
> >>         at net.imagej.launcher.ClassLauncher.launch(ClassLauncher.java:248)
> >>         at net.imagej.launcher.ClassLauncher.run(ClassLauncher.java:184)
> >>         at net.imagej.launcher.ClassLauncher.main(ClassLauncher.java:76)
> >
> >Hmm... I cannot reproduce in my Fiji.app/...
>
> No, exactly, it does work for me in Fiji.app/ but it does *not* work
> in ImageJ.app/.

I'll have another look. Thank you for pointing out that the problem occurs
in ImageJ.app/, it never occured to me that that was the issue.

Ciao,
Johannes

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