iCoud Sync - Moneydance quits unexpectedly

Mark Zeppel's Avatar

Mark Zeppel

12 Oct, 2021 12:20 AM

I have just installed the new version of Moneydance. After installing the program I attempted to change syncing from Dropbox to iCloud. When I did this, the program quit unexpectedly and continues to do so each time I reopen it. I have given Moneydance full disk access.
An error report file is attached.

Showing page 2 out of 3. View the first page

  1. 31 Posted by blitheo on 15 Oct, 2021 10:36 AM

    blitheo's Avatar

    I have the same crash problem, having tried to change syncing from Dropbox to iCloud. Question for Sean - you asked: 'in the Apple ID section of System Preferences, is the "Optimise Mac Storage" checkbox selected?' But you didn't say if it should it be ticked or not. Can tell us which it should be?

    Here is the error report I received via Terminal:

    The default interactive shell is now zsh.
    To update your account to use zsh, please run `chsh -s /bin/zsh`.
    For more details, please visit https://support.apple.com/kb/HT208050.
    /Applications/Moneydance.app/Contents/MacOS/Moneydance ; exit;
    Nicholass-iMac:~ nicholashall$ /Applications/Moneydance.app/Contents/MacOS/Moneydance ; exit;
    MacHelper2: loaded platform helper
    loading machelper library
    2021-10-15 11:41:09.691 Moneydance[914:16245] initialising ICloudContainer. Should think of something to do here!
    2021-10-15 11:41:09.691 Moneydance[914:16245] jcloud: ubiquityToken: {length = 20, bytes = 0x3ed69831d41120b407f8a76e9670b125fe776d07}
    2021-10-15 11:41:09.692 Moneydance[914:16277] time for NSFileManager.URLForUbiquityContainerIdentifier to return: 0.000379 seconds
    2021-10-15 11:41:09.692 Moneydance[914:16277] jcloud: ubiquity URL: file:///Users/nicholashall/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/
    initial iCloud availability: UNKNOWN
    iCloud is available (after 0.204 seconds)
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by com.bulenkov.darcula.DarculaLaf (file:/Applications/Moneydance.app/Contents/Java/darcula.jar) to constructor com.apple.laf.AquaLookAndFeel()
    WARNING: Please consider reporting this to the maintainers of com.bulenkov.darcula.DarculaLaf
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    2021-10-15 11:42:40.727 Moneydance[914:16316] jcloud: creating path to URL file:///Users/nicholashall/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/9da7d24c-5561-4f9c-b3cc-fa58aebdca61/
    2021-10-15 11:42:40.727 Moneydance[914:16316] jcloud: create pathto file:///Users/nicholashall/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/9da7d24c-5561-4f9c-b3cc-fa58aebdca61/: result: YES (error: (null))
    2021-10-15 11:42:43.832 Moneydance[914:16802] jcloud: in coordinator: writing to url: file:///Users/nicholashall/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/9da7d24c-5561-4f9c-b3cc-fa58aebdca61/mdata-v1
    2021-10-15 11:42:43.840 Moneydance[914:16802] jcloud: in coordinator: writing to url: file:///Users/nicholashall/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/9da7d24c-5561-4f9c-b3cc-fa58aebdca61/mdsyncinfo.txt
    2021-10-15 11:42:43.888 Moneydance[914:16802] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid domain=nil in -[NSError initWithDomain:code:userInfo:]'
    *** First throw call stack:
    0 CoreFoundation 0x00007fff205ef1db __exceptionPreprocess + 242
    1 libobjc.A.dylib 0x00007fff20328d92 objc_exception_throw + 48
    2 Foundation 0x00007fff212a75f5 NSPushAutoreleasePool + 0
    3 Foundation 0x00007fff212a74c1 +[NSError errorWithDomain:code:userInfo:] + 49
    4 libmachelper.dylib 0x000000013999d57b __43-[TIKUbiquityContainer dateModified:error:]_block_invoke + 256
    5 Foundation 0x00007fff21397700 -[NSFileCoordinator _invokeAccessor:thenCompletionHandler:] + 87
    6 Foundation 0x00007fff2139768e __73-[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:]_block_invoke + 102
    7 Foundation 0x00007fff2151b739 __85-[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:]_block_invoke.334 + 113
    8 Foundation 0x00007fff21301abb -[NSFileCoordinator(NSPrivate) _withAccessArbiter:invokeAccessor:orDont:andRelinquishAccessClaim:] + 615
    9 Foundation 0x00007fff212ebbca -[NSFileCoordinator(NSPrivate) _coordinateReadingItemAtURL:options:error:byAccessor:] + 866
    10 Foundation 0x00007fff212eb84d -[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:] + 91
    11 libmachelper.dylib 0x000000013999d406 -[TIKUbiquityContainer dateModified:error:] + 177
    12 libmachelper.dylib 0x000000013999e987 Java_com_moneydance_apps_md_controller_sync_ICloudContainer_nativeGetModified + 104
    13 ??? 0x000000010c9b23d0 0x0 + 4506461136
    14 ??? 0x000000010c9ac9b0 0x0 + 4506438064
    libc++abi: terminating with uncaught exception of type NSException
    Abort trap: 6
    Saving session...
    ...copying shared history...
    ...saving history...truncating history files...
    Deleting expired sessions...20 completed.

    [Process completed]

    Hoping we can get a fix for this soon,

  2. 32 Posted by Stuart Beesley ... on 15 Oct, 2021 11:57 AM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar


  3. Support Staff 33 Posted by Sean Reilly on 15 Oct, 2021 04:01 PM

    Sean Reilly's Avatar

    It shouldn't matter whether Optimise is ticked or not... Moneydance uses the iCloud APIs which automatically download any files that aren't already synced to the computer, if they are needed.

    Generally I was just trying to narrow down the circumstances in which the error occurred so that I could try and reproduce it. I still haven't been able to reproduce it, but I have made a couple of changes in the code which is mentioned in the crash report. Can anyone who is seeing this error try the current preview version (build 4056) from here: https://infinitekind.com/preview and please let me know if it does or doesn't correct the problem? Also, if it doesn't correct the problem, can you copy-and-paste the text of the crash report into a response here?


    Sean Reilly
    Developer, The Infinite Kind

  4. 34 Posted by Jeff on 15 Oct, 2021 04:58 PM

    Jeff's Avatar

    Sean -
    I installed the preview coded and got the same crash. Crash report attached

  5. 35 Posted by Mark Zeppel on 16 Oct, 2021 03:27 AM

    Mark Zeppel's Avatar

    Moneydance 2022 (4056) crashes after selecting iCloud sync

  6. 36 Posted by stepmcnul on 16 Oct, 2021 04:50 AM

    stepmcnul's Avatar

    same here - still crashes, error log attached

  7. 37 Posted by Jeff on 16 Oct, 2021 10:44 AM

    Jeff's Avatar

    I reinstalled the old version and set sync back to shared folder. MD2021 works normally, sync is active etc.

    I installed the MD2022 4056 again and it still crashes on start up. It looks like, for me anyway, it's not tied to iCloud syncing alone. Again, I have it set to re-open the last file.

  8. 38 Posted by Stuart Beesley ... on 16 Oct, 2021 11:13 AM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    What happens if you load 2021.1 and set sync to do not sync, then exit and launch MD2022 (latest preview)...? Even with no sync turned on do you get the same crash?

    Second question... On MD2021.1 can you try file/new dataset.... then launch this in MD2022... Does that open or crash?

  9. 39 Posted by stepmcnul on 18 Oct, 2021 04:01 AM

    stepmcnul's Avatar

    On #1, I ran 2021 and changed to 'no sync'. Ran 2022 preview and the file opened ok. Changed sync to iCloud and it crashed after a few seconds.

    On #2, I ran 2021 and created a new file. Ran 2022 preview and the file opened ok. Changed sync to iCloud and NO crash.

  10. 40 Posted by Stuart Beesley ... on 18 Oct, 2021 06:23 AM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    @stepmcnul - that is very interesting... So there is something lurking in your Dataset that iCloud Sync doesn't like......

  11. 41 Posted by Stuart Beesley ... on 18 Oct, 2021 02:32 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    I have one possible experiment left, if you are willing?

    Install 2021.1
    Open your dataset
    File / Export Backup > to a name of your choosing...

    File / Restore from backup, make sure your backup is open.
    Install and run Toolbox extension.. Make sure it's the latest version(1042)
    Options, Hacker Mode, Hacker Menu,
    'Force RESET Sync settings (generates new SyncID and turns Sync off. You can turn it back on after MD restart)'... make sure this runs OK Exit MD
    Install latest preview 2022(4056)
    Open MD, ensure your backup is open
    Window>Show Console; keep open
    Turn on iCloud Sync

    what happens?

    When this test is complete, you can just file / open your original dataset...

    (not support, just a fellow user)

  12. 42 Posted by stepmcnul on 19 Oct, 2021 01:24 AM

    stepmcnul's Avatar

    Interesting! I did as you suggested and the backup restored, turned on iCloud and everything worked - no crash. As soon as I opened the original data set though, it crashed again. I have no idea how a dataset can cause a crash but a backup of it doesn't.

    I guess I can just use the backup as my new dataset though

  13. 43 Posted by Stuart Beesley ... on 19 Oct, 2021 07:20 AM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    I can provide instructions later today as to how to do this in your live dataset.

  14. 44 Posted by Stuart Beesley ... on 19 Oct, 2021 09:06 AM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    Several points...

    • it would be great to see your sync settings on both your live dataset and the restored copy that now works on iCloud... Can you launch Window>Moneybot Console> OPEN this script (attached), Click RUN, and then copy / paste the output from both datasets? The script is readonly and very safe.....

    • Can you back this live dataset up again, and keep that safe.

    • You have three choices... 1/ Wait for the MD fix
      2/ Use the restored dataset
      3/ Run the Toolbox, Force Disable option on your live dataset (after the backup)

    As for point 1, is there any chance we can get a copy of your dataset to try and troubleshoot? Let us know... I'm sure sure Sean has ways to accept it, or even do a screen sharing session with you......?

  15. Support Staff 45 Posted by Sean Reilly on 19 Oct, 2021 09:20 AM

    Sean Reilly's Avatar

    Would you be open to sharing the original data set which causes the crash (or a new blank data set which causes it, if you have one)? If so, can use create a zip of the data file (or a recent backup/.moneydancearchive of it) and upload it using the following link?


    That link will put it into my private dropbox folder, and isn't accessible by anyone but me. I will of course delete the file as soon as I fix this, or at any point that you request it.


    Sean Reilly
    Developer, The Infinite Kind

  16. 46 Posted by stepmcnul on 20 Oct, 2021 03:02 AM

    stepmcnul's Avatar

    I will continue to work with the restored dataset as that seems the only real option for now. It was hard to run the script on the bad dataset because MD doesn't stay open for very long but here goes.

    I shouldn't upload the actual dataset as it contains confidential information

  17. 47 Posted by Stuart Beesley ... on 20 Oct, 2021 04:44 AM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    That's it! Thank you. I have reproduced it.. This is the errant key causing the issue:
    migrated.netsync.dropbox.fileid: 4a6ccf4b-1287-44ac-affc-7eaf371bcef0
    I will pass along to Sean....

  18. Support Staff 48 Posted by Sean Reilly on 28 Oct, 2021 12:17 PM

    Sean Reilly's Avatar

    Hi All,

    Just following up this thread to say that the latest preview build should fix this problem:

    Please let me know if you have any trouble with iCloud syncing after installing that version.


    Sean Reilly
    Developer, The Infinite Kind

  19. 49 Posted by Jeff on 28 Oct, 2021 12:41 PM

    Jeff's Avatar

    Actually, 2022.1 4059 is not working for me. My process:
    1) after installing, upgrade. Current setting was sync with shared folder. When I launched the new version the first time, it crashed.
    2) Reverted back to 2021 version, and opened the file fine. I changed sync to NONE and closed the file. Reopened the file to verify settings held and they did. Exited out.
    3) Installed the preview again (4059) and opened the file. All is well. Closed the file.
    4) Opened the file again. All is well still. looking good.
    5) Changed sync setting to iCloud Drive. After closing settings dialog, MD crashed.
    6) Tried to re-open, crashed immediately.

  20. 50 Posted by Stuart Beesley ... on 28 Oct, 2021 01:13 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    Can you run this attached script in Moneybot Console and post the results back here. It just displays your internal Sync settings..

  21. 51 Posted by mysoftware on 29 Oct, 2021 01:22 PM

    mysoftware's Avatar

    How do you run Moneybot Console when MD crashes before you can invoke the menu selection?

  22. 52 Posted by Stuart Beesley ... on 29 Oct, 2021 01:29 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    Make sure MD is closed.

    Rename your current Moneydance app in the applications folder to Moneydance2022.

    Then Download the latest MD2021 version. Install. Rename that to Moneydance2021.

    Run the 2021 version. Run the script. Exit.

    (Optional) rename your Moneydance2022 app back to Moneydance in applications.

  23. 53 Posted by Jeff on 01 Nov, 2021 02:35 PM

    Jeff's Avatar

    Sorry if this is a repeat, I thought I posted it previously.
    Sync Settings attached. When I restored MD2021.2, it changed to dropbox syncing which I've never used. I use Shared Folder sync.

    This morning I tried installing MD2022 4060 and it allows you to change to iCloud Drive, but next time the file is opened, it crashes still. If there is a problem with my file - how do you identify it? MD2021 works flawlessly and I have years of data in the file.

  24. 54 Posted by Stuart Beesley ... on 01 Nov, 2021 02:48 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    No script output attached??

    I would not worry about your file, I’m sure it’s fine. For now can you perhaps switch to no sync?

    Post that output if u can.

  25. 55 Posted by Jeff on 01 Nov, 2021 02:53 PM

    Jeff's Avatar

    2 attachments - the original with sync AND a new one, with NO sync.

  26. 56 Posted by Stuart Beesley ... on 01 Nov, 2021 06:27 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    Ok. The settings are fine and not the same problem that plagued the earlier MD2022 iCloud versions.

  27. 57 Posted by Stuart Beesley ... on 01 Nov, 2021 06:33 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    Can you try this. Launch terminal and then run this command

    /Applications/Moneydance.app/Contents/MacOS/Moneydance -d

    Do you then get an error on screen?

  28. 58 Posted by Stuart Beesley ... on 01 Nov, 2021 06:50 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    If you do file / new dataset can you turn on iCloud sync on that? Does that crash?

    Do you have Mac settings iCloud Drive enabled?

  29. 59 Posted by mysoftware on 01 Nov, 2021 07:00 PM

    mysoftware's Avatar

    Well, I did find one error in the output saying it couldn’t find an update for an extension. I uninstalled the extension and cleanly exited. Then I installed MD2022 4060.

    When I switched to iCloud sync from no sync in build 4060 - it crashed.

    I ran the command again with MD2022 4060, it still crashed on start up, but it did give a new error:

    >> 2021-11-01 14:48:35.025 Moneydance[317:3630617] error writing from file:///var/folders/zy/lcmfwbm126sbqkphfwzkdn380000gn/T/com.infinitekind.MoneydanceOSX/md_icloud_10535505513524797714 into file:///Volumes/MYDISK/Users/myusername/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/4bdcb5c0-3cb0-40cf-a4e4-90d81f390e3e/v3/trunk-202111011448.mdtxn: Error Domain=NSCocoaErrorDomain Code=512 "The file “trunk-202111011448.mdtxn” couldn’t be saved in the folder “v3”." UserInfo={NSFileOriginalItemLocationKey=file:///Volumes/MYDISK/Users/myusername/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/4bdcb5c0-3cb0-40cf-a4e4-90d81f390e3e/v3/trunk-202111011448.mdtxn, NSURL=file:///Volumes/MYDISK/Users/myusername/Library/Mobile%20Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/4bdcb5c0-3cb0-40cf-a4e4-90d81f390e3e/v3/trunk-202111011448.mdtxn, NSFileNewItemLocationKey=file:///var/folders/zy/lcmfwbm126sbqkphfwzkdn380000gn/T/com.infinitekind.MoneydanceOSX/md_icloud_10535505513524797714, NSUnderlyingError=0x7fda2e84ae30 {Error Domain=NSCocoaErrorDomain Code=512 "The file “md_icloud_10535505513524797714” couldn’t be saved in the folder “com.infinitekind.MoneydanceOSX”." UserInfo={NSURL=file:///var/folders/zy/lcmfwbm126sbqkphfwzkdn380000gn/T/com.infinitekind.MoneydanceOSX/md_icloud_10535505513524797714, NSFilePath=/var/folders/zy/lcmfwbm126sbqkphfwzkdn380000gn/T/com.infinitekind.MoneydanceOSX/md_icloud_10535505513524797714, NSUnderlyingError=0x7fda2e88a1c0 {Error Domain=NSPOSIXErrorDomain Code=18 "Cross-device link"}}}}

    Followed by:

  30. 60 Posted by Stuart Beesley ... on 01 Nov, 2021 08:29 PM

    Stuart Beesley - JUST A FELLOW USER and Toolbox ‘guy’'s Avatar

    In terminal are you able to run this command…

    open “/Volumes/MYDISK/Users/myusername/Library/Mobile Documents/iCloud~com~infinitekind~moneydancesync/Documents/sync/“

    Does the folder open in Finder?

    Can you check out permissions? Can you create files?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • Untitled.rtf 146 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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