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 2. 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
    logout
    Saving session...
    ...copying shared history...
    ...saving history...truncating history files...
    ...completed.
    Deleting expired sessions...20 completed.

    [Process completed]

    Hoping we can get a fix for this soon,
    Nick

  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?

    Thanks,
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  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,
    Select:
    '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?

    https://www.dropbox.com/request/MWl0JDdufTqlKiJUQtqz

    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.

    Thanks,
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  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....

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

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