Skip to content

Terminal hangs when running a macro for image fusion headlessly, but not for other macros #150

@agustleoa

Description

@agustleoa

Hi there!

I think this might be related to issue 130, but I'm unsure what the user meant. Hence the new issue.

When I run the following macro headlessly, two tiles are fused:

run("Image Fusion", "select=/path/to/dir/dataset.xml process_angle=[All angles] process_channel=[All channels] process_illumination=[All illuminations] process_tile=[All tiles] process_timepoint=[All Timepoints] bounding_box=[Currently Selected Views] downsampling=1 interpolation=[Linear Interpolation] fusion_type=[Avg, Blending] pixel_type=[32-bit floating point] interest_points_for_non_rigid=[-= Disable Non-Rigid =-] produce=[Each timepoint & channel] fused_image=[Save as (compressed) TIFF stacks] output_file_directory=/path/to/dir filename_addition=aardvark");

This is great! But my terminal hangs. Here are the last few lines in my terminal (in debug mode):

(Fri Feb 07 15:44:24 CET 2025): DONE.
[DEBUG] Discovered user interface: net.imagej.legacy.ui.LegacyUI
[DEBUG] Discovered user interface: org.scijava.ui.swing.sdi.SwingSDIUI
[DEBUG] Discovered user interface: org.scijava.ui.awt.AWTUI
[DEBUG] Discovered user interface: org.scijava.ui.swing.mdi.SwingMdiUI
[DEBUG] Discovered user interface: org.scijava.ui.headless.HeadlessUI
[DEBUG] Launching user interface: org.scijava.ui.headless.HeadlessUI
[DEBUG] publish(
context = org.scijava.Context@7d55141e
consumed = false
ui = headless,null,null), called from non-EDT Thread:null
[DEBUG] publish(
context = org.scijava.Context@7d55141e
consumed = false,null,null), called from non-EDT Thread:null
^C%

My understanding is that Fiji is calling upon some GUI element and waiting for user input. No GUI appears, and without the user input, the terminal hangs. I might be wrong though.

To check if this was a general problem with running macros headlessly, I ran my macros for defining a dataset, detecting interest points, and registering interest points. When running those headlessly, I did not run into any problems.

Here is my log file (without debugging): fusion_gui_2.log

Does anyone know how to fix this? Any thoughts or comments would be appreciated. Thanks!

Cheers,

Ágúst

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions