Ratios extension: Popup Index Out Of Bounds on startup

Eric Schnackenberg's Avatar

Eric Schnackenberg

20 Oct, 2025 04:26 PM

Started about a week ago, when I launch Moneydance I get an error pop up. With a Java Index Out Of Bounds exception. I dismiss it and Moneydance seems to operate properly.

From Toolbox and reviewing the console I see this in the console log:
toolbox:2025/10/20-11:32:12:
-----------------------------------------------------
Toolbox - quick information:
-----
MD CONSOLE FILE LOCATION: 'C:\Users\eschnack\.moneydance\errlog.txt'
MD CONFIG/PREFERENCES LOCATION: 'C:\Users\eschnack\.moneydance\config.dict'
-----
BACKUPS - Save Daily option: daily (config key: 'backup.scheme' value: 'daily')
BACKUPS - Keep no more than: 10 unique days of backups
BACKUPS - Separate Backup Foldr: True
BACKUPS - Backup Folder: 'C:\Users\eschnack_2\.moneydance\archive\backups' ** ERROR: INVALID AUTO-BACKUP LOCATION DETECTED **
..key - 'backup.location': 'C:\Users\eschnack_2\.moneydance\archive\backups'
..key - 'backup.last_browsed': 'C:\Users\eschnack_2\.moneydance\archive\backups'
..key - 'backup.last_saved': 'C:\Users\eschnack\.moneydance\archive\backups'
..key - '_default_backup_dir': '<not set>'
-----
System Default Locale Cty/Lang: 'US' / 'en'
MD Preference Locale Ctry/Lang: 'US' / 'en'
MD Locale Cty/Lang: 'US' / 'en'
Moneydance decimal point: '.'
-----
MD EXECUTION MODE: 2 (Normal)
-----------------------------------------------------

20251020-11:32:13.740 trunk data loaded (1.22 seconds), checking for incremental updates
20251020-11:32:13.740 loading un-synced txn files...
20251020-11:32:13.849 reading txn file 20251003173202_965.txn
20251020-11:32:13.867 reading txn file 20251003173436_478.txn
20251020-11:32:13.867 reading txn file 20251007143332_018.txn
20251020-11:32:13.867 reading txn file 20251007143332_307.txn
20251020-11:32:13.883 reading txn file 20251007143340_930.txn
20251020-11:32:13.883 reading txn file 20251007143346_665.txn
20251020-11:32:13.898 reading txn file 20251008193810_862.txn
20251020-11:32:13.909 reading txn file 20251009141547_321.txn
20251020-11:32:13.914 reading txn file 20251010202618_081.txn
20251020-11:32:13.914 reading txn file 20251013174748_203.txn
20251020-11:32:13.930 reading txn file 20251013174748_282.txn
20251020-11:32:13.939 reading txn file 20251013174848_189.txn
20251020-11:32:13.939 reading txn file 20251013174848_224.txn
20251020-11:32:13.946 reading txn file 20251013174912_907.txn
20251020-11:32:13.946 reading txn file 20251013174931_815.txn
20251020-11:32:13.962 reading txn file 20251013175304_042.txn
20251020-11:32:13.962 reading txn file 20251013175524_379.txn
20251020-11:32:13.978 reading txn file 20251015140911_358.txn
20251020-11:32:13.978 reading txn file 20251015140911_421.txn
20251020-11:32:13.994 reading txn file 20251015140911_883.txn
20251020-11:32:13.994 reading txn file 20251015141043_029.txn
20251020-11:32:13.994 reading txn file 20251015141044_003.txn
20251020-11:32:14.009 reading txn file 20251015141122_177.txn
20251020-11:32:14.009 reading txn file 20251017142006_305.txn
20251020-11:32:14.025 reading txn file 20251017142006_331.txn
20251020-11:32:14.039 reading txn file 20251017142006_566.txn
20251020-11:32:14.041 reading txn file 20251017142046_976.txn
20251020-11:32:14.041 reading txn file 20251017142135_055.txn
20251020-11:32:14.057 reading txn file 20251017142140_728.txn
20251020-11:32:14.057 reading txn file 20251017143430_419.txn
20251020-11:32:14.072 loading synced txn files...
20251020-11:32:14.072 finished loading / updating trunk data file
20251020-11:32:15.327 Stopping syncing: writing queued changes to txn log
20251020-11:32:15.327 ewsMoneyDance-20220516-1244[0 tasks] Stopping syncing: waiting for 0 to finish...
20251020-11:32:15.327 Stopping syncing: finished waiting after 0.0 seconds
20251020-11:32:15.327 validating file ewsMoneyDance-20220516-1244: root=ewsMoneyDance (b845006a-bdfa-4bae-9dd5-fe48f8ea3b2f) object counts: bdgt: 4, csnap: 58244, oltxns: 57, reminder: 14, secsubtypes: 1, txn: 7962, bdgtitem: 1026, curr: 335, olsvc: 3, acct: 297, misc: 3
20251020-11:32:15.765 Scheduling next reminders auto-commit for Mon Oct 20 11:32:20 EDT 2025 (was previously scheduled for Wed Dec 31 19:00:00 EST 1969)
20251020-11:32:15.796 MDPlus status undetermined or not activated
set antialiasing to HRGB
item count: 38
20251020-11:32:18.772 Exception dispatching event md:file:opened to extension
Error: Index 13 out of bounds for length 13
java.lang.ArrayIndexOutOfBoundsException: Index 13 out of bounds for length 13
at java.base/java.util.concurrent.CopyOnWriteArrayList.elementAt(Unknown Source)
at java.base/java.util.concurrent.CopyOnWriteArrayList.get(Unknown Source)
at kotlin.collections.CollectionsKt__MutableCollectionsKt.filterInPlace$CollectionsKt__MutableCollectionsKt(MutableCollections.kt:289)
at kotlin.collections.CollectionsKt__MutableCollectionsKt.removeAll(MutableCollections.kt:274)
at com.infinitekind.moneydance.model.AccountBook.removeAccountListener(AccountBook.kt:474)
at com.moneydance.modules.features.ratios.RatiosExtensionModel.removeAccountListener(RatiosExtensionModel.java:139)
at com.moneydance.modules.features.ratios.RatiosExtensionModel.setData(RatiosExtensionModel.java:91)
at com.moneydance.modules.features.ratios.Main.handleEvent(Main.java:162)
at com.moneydance.apps.md.controller.Main.sendEventToExtensions(Main.java:1664)
at com.moneydance.apps.md.controller.AppEventManager.fireEvent(AppEventManager.java:66)
at com.moneydance.apps.md.controller.Main.setCurrentBook(Main.java:1431)
at com.moneydance.apps.md.controller.Main.startApplication(Main.java:844)
at com.moneydance.apps.md.controller.Main.main(Main.java:200)
at Moneydance.main(Moneydance.java:7)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84)
at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94)
at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25)
20251020-11:32:18.857 JVM status: cores: 48, maxmem: 54.73G, allocated: 1.14G, used: 833.01M, free: 307.85M
20251020-11:32:18.857 finished file opening routines
There are issues/errors with securities. But I stopped tracking my investments in MD because my brokerage stopped supporting qfx downloads. But this was years ago.

I typically suspend W11 and reboot for update or OS instable or extremely slow response times.

Any suggestions? I tried most of the diagnostic options in toolbox but other than complaints about potential duplicate securities. I spotted no real errors.

Any suggestion for next step?

  1. 1 Posted by Stuart Beesley ... on 20 Oct, 2025 04:33 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Something's wrong with the ratios extension? Are you using it? If not, try removing that and rebooting? If you are, do you have the latest ratios version?

  2. 2 Posted by Eric Schnackenb... on 20 Oct, 2025 04:41 PM

    Eric Schnackenberg's Avatar

    I did correct the invalid auto-backup location and the popup disappeared. Strange that I never saw this popup until this week. I did update W11 this week.

    Yes, I do use the ratios extension. I will try removing & re-adding. I am retired so income is 0, since i am waiting to start collecting SS and using savings. That may confuse/break ratios.

    Thanks for pointing to the error source.

  3. 3 Posted by Stuart Beesley ... on 20 Oct, 2025 10:20 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Can you clarify the sequence that triggers this? Is it really at startup or have you had MD open with laptop in sleep mode? Or are you using file/open to switch datasets?

  4. 4 Posted by Stuart Beesley ... on 22 Oct, 2025 05:06 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    OK, IK have patched MD for the future (whenever MD2026 comes out) to prevent this error. In the mean-time I have updated ratios to trap/ignore this error.. Give it a go and report back. signed preview version here:

    https://infinitekind.com/app/md/extensions/preview/ratios.mxt

    Make sure the file name is exactly ratios.mxt after download when you install.

    Let me know?

  5. 5 Posted by Stuart Beesley ... on 29 Oct, 2025 09:45 AM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Eric??

  6. 6 Posted by Eric Schnackenb... on 29 Oct, 2025 02:47 PM

    Eric Schnackenberg's Avatar

    Hi Stuart,

    Once I fixed the incorrect autosave directory, I stopped seeing the popup. So, it looked good.

    Today, I loaded the extension and I still don't see any popup. I check the console and see only the warnings about potential duplicate securities.

    I'd say all is good. Please close this issue.

    Thanks again,

     Eric

  7. Maddy closed this discussion on 30 Oct, 2025 11:45 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac