Login  Register

Can't open stacks in AIJ any longer - StackOverflowError

Posted by cduston on Jan 09, 2024; 3:29pm
URL: http://astroimagej.170.s1.nabble.com/Can-t-open-stacks-in-AIJ-any-longer-StackOverflowError-tp2336.html

So I am getting some new behavior from AIJ - I can no longer open stacks of images. I noticed this on my Pop_OS system (which I think is based on Ubuntu 22.04) last week, but I've checked again on my Slackware system:

$ uname -a
Linux Zonadar.home.org 6.2.11-cld #1 SMP PREEMPT_DYNAMIC Mon Apr 17 11:04:26 EDT 2023 x86_64 12th Gen Intel(R) Core(TM) i7-12700K GenuineIntel GNU/Linux
$ cat /etc/slackware-version
Slackware 15.0

The behavior is that 1) I open a single file from the main window, which works fine. 2) On the new window (with the image), I select File -> Open Image Sequence in New Window, 3) Doesn't open, instead I get a long error message starting with PatternSyntaxException (attached here).

This is at least reproducible in other directories on my machine, and appear to be true for both distros I've tried this one (Pop_OS and Slackware).

Oh, and I'm running 5.3.2.00, and checked update status by trying to force update to daily build. Also tried a simple reinstall of AIJ, no dice.

I have played with the memory settings a little bit, but mostly shooting in the dark, just turning down the memory and threads settings, but behavior still occurs.

Any further advice?

AIJ 5.3.2.00; ImageJ 1.54h2; Java 18.0.1 [64-bit]; Linux 6.2.11-cld; 291MB of 23
936MB (1%)
 
java.lang.StackOverflowError
	at java.desktop/sun.awt.X11GraphicsDevice.pGetBounds(Native Method)
	at java.desktop/sun.awt.X11GraphicsDevice.getBounds(Unknown Source)
	at java.desktop/sun.awt.X11GraphicsConfig.getBounds(Unknown Source)
	at java.desktop/java.awt.Window.init(Unknown Source)
	at java.desktop/java.awt.Window.<init>(Unknown Source)
	at java.desktop/java.awt.Window.<init>(Unknown Source)
	at java.desktop/java.awt.Dialog.<init>(Unknown Source)
	at java.desktop/java.awt.Dialog.<init>(Unknown Source)
	at ij.gui.GenericDialog.<init>(GenericDialog.java:127)
	at ij.gui.GenericDialog.<init>(GenericDialog.java:118)
	at ij.plugin.FolderOpener.showDialog(FolderOpener.java:628)
	at ij.io.Opener.openZip(Opener.java:1066)
	at ij.io.Opener.openImage(Opener.java:391)
	at ij.plugin.FolderOpener.getFileCount(FolderOpener.java:956)
	at ij.plugin.FolderOpener.showDialog(FolderOpener.java:673)

(and then it repeats the last 5 lines over and over)

PS: Actually, when I switch to a different directory I get a *slightly* different error message - but error occurs in the same place:

AIJ 5.3.2.00; ImageJ 1.54h2; Java 21.0.1 [64-bit]; Linux 6.2.11-cld; 279MB of 16
000MB (1%)
 
java.util.regex.PatternSyntaxException: Stack overflow during pattern compilatio
n
\.zip
	at java.base/java.util.regex.Pattern.error(Unknown Source)
	at java.base/java.util.regex.Pattern.<init>(Unknown Source)
	at java.base/java.util.regex.Pattern.compile(Unknown Source)
	at java.base/java.lang.String.split(Unknown Source)
	at java.base/java.lang.String.split(Unknown Source)
	at ij.astro.util.ZipOpenerUtil.getFilesInZipImpl(ZipOpenerUtil.java:45)
	at ij.astro.util.ZipOpenerUtil.getFilesInZip(ZipOpenerUtil.java:37)
	at ij.io.Opener.openZip(Opener.java:1063)
	at ij.io.Opener.openImage(Opener.java:391)
	at ij.plugin.FolderOpener.getFileCount(FolderOpener.java:956)
	at ij.plugin.FolderOpener.showDialog(FolderOpener.java:673)

EDIT: Tried resetting via this thread, didn't work: http://astroimagej.170.s1.nabble.com/Java-exception-when-trying-to-import-image-sequence-td1944.html

MORE EDIT: I rewound to version 5.0.0, and that seems to work (on Slackware at least). I'll stick with the old versions for the moment.