-
Notifications
You must be signed in to change notification settings - Fork 1
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
UI freezes when exporting lifetime image on M1 Mac #28
Comments
@Yang-J-LIN Ah, that is unfortunate. Have you seen the relevant troubleshooting instructions? https://imagej.net/learn/troubleshooting#if-imagej-freezes-or-hangs In particular, try shift+\ from the main Fiji window to see if you can capture a thread dump. Then we will at least learn where it's hanging, if not why. |
@ctrueden Hi, thanks for the quick reply. The easy way does not work. So I tried the "fallback" way. Here is the message after I pressed "export":
Btw, there is also a warning message when I open the FlimJ, I do not know whether it will affect this:
|
@Yang-J-LIN So with your terminal open and in focus, pressing ctrl+\ (or Ctrl+Pause on Windows) did not print a thread dump? I am not seeing such a thing in the output you included. Normally it would look something like this:
The most important bits will be any paragraphs with |
Anyway, I am guessing this problem is related to #25. It's only on macOS, and I think it's something to do with the version of JavaFX included with the Zulu 8 JDK+FX. I vaguely recall we observed this problem before when testing, maybe with the JBRSDK8 as well, which is frustrating. It may be that updating to OpenJDK 11 fixes the issue, but that might necessitate some code changes here to update the JavaFX usage from 8 to 11, as well as introducing dependencies on the now-external JavaFX11 libraries. I wish I had time to test on my system, since I do also run macOS, and am likely to be able to reproduce these issues, but I am really swamped with I2K workshop preparation at the moment. One other thing to try in the short term might be running Fiji with a different version of Java, perhaps Oracle Java 8 since it includes a copy of JavaFX 8. |
@ctrueden Sorry I forget to This is what it prints: Thread dump
|
Thanks @Yang-J-LIN, that is very helpful! Technically speaking, the problem is here:
Or in a nutshell: I do believe we encountered this problem before with the JetBrains JBRSDK, and there is a bug in their bug tracker about it which has since been fixed. It is unfortunate that the Zulu JDK also suffers from this issue. I did find one other report of this problem with OpenJDK 13 (not sure which flavor), but no answer on that thread about how to fix it. So, for the moment my advice is still to try with Oracle Java 8. I'd also like to update FLIMJ to JavaFX 11 so that we can test with Zulu 11, 17, and/or 18, but I don't have time right now, unfortunately. |
When I try to export the lifetime image, the UI freezes without giving any error information.
I am using the latest version of FIJI (MacOS x86_64), where
zulu8.60.0.21-ca-fx-jdk8.0.322-macosx_x64
is bundled.The text was updated successfully, but these errors were encountered: