-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 1.53j, ij.io.Opener no longer works on headless #140
Comments
@rudolphi With which version of the original ImageJ was this working for you? In a BeakerX Groovy notebook, using the following code: %classpath add mvn net.imagej:ij:1.53d
System.setProperty("java.awt.headless", "true")
blobs = new ij.io.Opener().open("/home/curtis/data/blobs.tif") I receive:
So it doesn't work with 1.53d either. And same error with 1.53a. Are you using ImageJ2/Fiji, or plain ImageJ? Assuming ImageJ2/Fiji, I took the liberty of transferring this issue into the imagej-legacy repo. Please note that ImageJ2 adds headless patching on top of the original ImageJ, to enable better headless support, so I took the liberty of moving your issue here to imagej-legacy, which (along with ij1-patcher) is the project responsible for this patching. Be aware that the newest version of ImageJ officially supported by the ImageJ2 patching mechanism is currently 1.53f. I would not recommend updating the ImageJ core beyond that until we get the patching mechanism updated to support ImageJ's latest code changes. |
I am using groupId=net.imagej, artifactId=ij. The problem is the IJ.init() that has been added to Menus.getCommands() if pluginsTable is null. Menus.getCommands() is called during class initialization. |
@rudolphi OK, I transferred the issue back to the original ImageJ repository, then. With which version of ImageJ are you able to use |
It works smoothly with 1.53i |
@rudolphi Ah I see, I was testing the wrong thing. I was using
And with 1.53j:
So @rasband this is an issue introduced in b553ff4, which as @rudolphi points out, adds an |
This bug should be fixed in the ImageJ 1.53o20 daily build. The Menus.getCommands() method now has a test for headless mode.
|
Throws
The text was updated successfully, but these errors were encountered: