I just had an issue with the "Register Virtual Stack Slices Plugin in FIJI: Whole FIJI freezes immediately after clicking OK in the inital Dialog. The bug is hard to reproduce, because it does only happen in 20% of the times I tried. However, after excessive debugging, I figured out, that it has something to do with JFileChooser.showOpenDialog calls in the run function of the Register_Virtual_Stack_MT class. Thus, the bug only happens if I turn “Save transforms” checkbox on or the “Shrinkage constrain” checkbox off.
The issue with JFileChooser is already known for some time:
And a potential solution (using FileDialog instead JFileChooser in case preferences say so) was written by @tpietzsch in
I wonder now, if anyone has already experience with this issue and how solving it would be efficient. As the bug in JFileChooser wasn’t solved in the past two years, wouldn’t it make sense to takle this in ImageJ/FIJI? E.g. by introducing a getUserDefinedFileLocation() function somewhere in FIJI which does the MacOs-detection and opens FileDialog instead of JFileChooser in case it runs on a Mac? I mean, I can copy the code from Tobias and file a Pull Request to the Register Virtual Slices Plugin. But I’m really not a big fan of copying code from one plugin to another and another and another… and another.
What do you (ImageJ/FIJI developers) think about that?