String index out of range when doing a complex inverse FFT
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 350
- PR merge metrics
- No merged PRs in 30d
Description
When doing an inverse **complex** FFT on a stack with a short name, the following error appears: _java.lang.StringIndexOutOfBoundsException: String index out of range: -9_. This has to do with line 553 in FFT.java: _String name = WindowManager.getUniqueName(imp.getTitle().substring(10))_.
Steps to reproduce:
- Open an image
- Do a **complex** FFT
- Rename the stack to something with <10 characters
- Do an inverse FFT
Workaround: rename the stack to something with >10 characters
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at line 553 of FFT.java and reproduce the inverse complex FFT after renaming a stack to fewer than 10 characters. The fix is done when this workflow no longer raises StringIndexOutOfBoundsException for a short stack name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100