zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
3.69k stars 202 forks source link

BUG: Excalidraw drawing loading error, "Obsidian unexpectedly closed during a save operation" plugins #1715

Open marketfailuree opened 2 months ago

marketfailuree commented 2 months ago

Your environment SYSTEM INFO: Obsidian version: v1.5.12 Installer version: v1.4.16 Operating system: Darwin Kernel Version 21.6.0: Sat Jun 18 17:05:47 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T8101 21.6.0 Login status: logged in Catalyst license: none Insider build toggle: off Live preview: on Base theme: light Community theme: AnuPpuccin v1.4.5 Snippets enabled: 2 Restricted mode: off Plugins installed: 36 Plugins enabled: 34 1: Calendar v1.5.10 2: Templater v1.16.0 3: Paste URL into selection v1.7.0 4: tq v0.5.1 5: Buttons v0.4.19 6: Minimal Theme Settings v7.2.2 7: MAKE.md v0.8.18 8: Highlightr v1.2.2 9: Mind Map v1.1.0 10: Dataview v0.5.47 11: Iconize v2.10.0 12: Remember cursor position v1.0.8 13: Easy Typing v5.1.14 14: Surfing v0.9.1 15: Quick Links v0.2.1 16: Completr v3.2.0 17: Advanced Tables v0.21.0 18: Style Settings v1.0.7 19: Excalidraw v2.0.20 20: Mousewheel Image zoom v1.0.19 21: Smart Connections v2.0.134 22: Callout Manager v1.0.1 23: Zotero Integration v3.1.7 24: DB Folder v3.5.1 25: Supercharged Links v0.11.1 26: Readwise Official v2.0.1 27: Annotator v0.2.11 28: Book Search v0.6.3 29: PDF++ v0.39.9 30: Hover Editor v0.11.17 31: Tasks v6.2.0 32: CardBoard v0.7.9 33: Size History v1.0.0 34: Diagrams v1.5.0

RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the bug I have an extremely important mindmap that i have been preparing for my exams. I suddenly canot access the mindmap anymore and instead what is shown is

Confirmation We encountered an error while loading your drawing. This might have occurred if Obsidian unexpectedly closed during a save operation. For example, if you accidentally closed Obsidian on your mobile device while saving. GOOD NEWS: Fortunately, a local backup is available. However, please note that if you last modified this drawing on a different device (e.g., tablet) and you are now on your desktop, that other device likely has a more recent backup. I recommend trying to open the drawing on your other device first and restore the backup from its local storage. Would you like to load the backup?

Even after I press okay, I cannot load it as a drawing anymore , and it refuses to load in drawing form

Screenshot 2024-04-14 at 1 49 00 AM
zsviczian commented 2 months ago

if you share the file, I can take a look at it to see if it can be fixed.

There are several reasons while files can get corrupted. If you did not terminate Obsidian abruptly (swipe it away on the phone or tablet or hard reset your PC, etc.) then typically this error is caused by sync partly overwriting the excalidraw file (which is not a problem with markdown files, but corrupts Excalidraw files), the other frequent cause are other plugins that modify Vault content.

adrianixGit commented 1 month ago

I have the same problem. did you manage to fix it?

zsviczian commented 1 month ago

This typically happens in three cases. On a mobile device you swipe away Obsidian with exvalidraw open ( and save is interrupted). Your drawing is open on multiple devices and Obsidian Sync partially overwrites the file. If Excalidraw is not able to restore then you can restore from sync history. Some other plugins make changes to the Excalidraw file. If you share the corrupted file I can take a look.

HungVo19 commented 1 week ago

I have the same problem. I have tried to uninstall and reinstall, but the problem still exists. When I press OK, it converts to normal drawing, but whenever I close the tab and then reopen it, that confirmation box appears again. Below is an example file, can you take a look, please. Drawing 2024-06-30 21.25.07.md image