imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
513 stars 218 forks source link

java.awt.HeadlessException since 1.54i #253

Closed rudolphi closed 1 week ago

rudolphi commented 1 week ago

Since 1.54i, ij.io.FileOpener calls Recorder.suspendRecording(), and ij.plugin.frame.Recorder:33 defines a field private static TextArea textArea = new TextArea(); //recorded code goes here (start with dummy to avoid NullPointerException) that results in java.awt.HeadlessException -> java.lang.ExceptionInInitializerError in a headless environment (JSP server).

rasband commented 1 week ago

This regression is fixed in the ImageJ 1.54k8 daily build. The commit is at https://github.com/imagej/ImageJ/commit/8799326e2cd8b7f23f7f8648e8cb39f11b6f0383.

imagesc-bot commented 3 days ago

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/headless-issue-since-imagej-1-54i12/98569/2

rasband commented 2 days ago

The Recorder in the ImageJ 1.54k11 daily build no longer creates a TextArea at line 33. The commit is at 2024.07.11 (1.54k10; Recorder) · imagej/ImageJ@0abfe3e · GitHub.