Closing New Window While Sync is Running Freezes app

Steps to reproduce

  1. Activate Obsidian Sync (if it’s not already)
  2. Right click on a link and open it in a new window
  3. Make some changes to the file opened in a new window.
  4. Manually save.
  5. While Sync is still running (as indicated by the sync icon), close the new window.

Did you follow the troubleshooting guide?

Yes. On a completely clean vault with nothing installed and Sync Set up, I can replicate this freeze. Similarly, if I turn sync off, I can stop this.

Expected result

New window closes while sync is running, sync completes, app doesn’t freeze.

Actual result

App freezes and hangs for several minutes. Only indication of any progress is the slow spinning of the sync icon. Sometimes sync will eventually catch up, but the total time seems to depend on vault size. In a fresh sandbox vault this takes around 1-2 minutes, on a vault with a few thousand notes it takes closer to 10-20.

If I wait a few seconds for sync to complete before I close the new window, there’s no freeze. Similarly, if sync is disabled, I can’t reproduce this.

Environment

SYSTEM INFO:
Obsidian version: v1.6.5
Installer version: v1.6.5
Operating system: Windows 10 Enterprise 10.0.19045
Login status: logged in
Catalyst license: none
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

1 Like

thanks.

Upstream reports:

A workaround for this will be introduced in v1.6.7

1 Like