Lightroom Classic crash and catalog corruption when used with Google and Synology NAS Drive clients
Lightroom Classic 12.5 Release Camera Raw 15.5 Build [202308091523-68a7abd6]
Windows 11 Pro, Version 22H2, OS build 22621.2283
Issue:
Running Lightroom Classic with a real-time sync for file backup, in my case Google Drive client for backup to the cloud and Synology NAS Drive client for local NAS backup, results in Lightroom crashes and catalog corruption.
Step 1: With Google Drive client and Synology NAS Drive client actively syncing, open Lightroom Classic.
Step 2: Everything appears to work correctly while using Lightroom.
Step 3: Exit Lightroom Classic, a crash can occur when attempting to exit Lightroom.
Step 4: When Lightroom is started again the catalog that was in use is reported as being corrupt and must be scanned and repaired.
Expected Result: Lightroom Classic should exit without crashing or corrupting the catalog.
Actual Result: Lightroom Classic crashes on attempting to close the catalog and corrupts the catalog. Happens fairly consistently but not 100% of the time.
Current Workaround: Pause Google Drive client and Synology NAS Drive client syncing before running Lightroom Classic and resume sync after Lightroom has successfully closed.
Possible Cause: It appears that during the closing process Lightroom releases files and then tries to open them again. If the sync client opens the file(s) before Lightroom attempts to reopen them then Lightroom can't lock the file and apparently crashes. Lightroom should not close files it is not actually done updating or processing to avoid a sync client from thinking the file is closed and should be backed up. This appears to be a more recent behavior because this did not appear to happen as recently as a few months ago and I have been using both drive clients to sync backups for a couple of years.
