Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Drawing content gets overwritten with another drawing #2152

Open
2 tasks done
snorrip3 opened this issue Dec 11, 2024 · 3 comments
Open
2 tasks done

BUG: Drawing content gets overwritten with another drawing #2152

snorrip3 opened this issue Dec 11, 2024 · 3 comments

Comments

@snorrip3
Copy link

Have you searched for existing issues (including closed ones)?

  • Yes, I have searched the existing issues.

Does this bug persist in a new vault with only Excalidraw installed?

  • Yes, I have verified the issue persists.

Your environment

SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.5.12
Operating system: Windows 10 Pro 10.0.19045
Login status: logged in
Catalyst license: insider
Insider build toggle: off
Live preview: on
Base theme: light
Community theme: Minimal v7.7.18
Snippets enabled: 9
Restricted mode: off
Plugins installed: 62
Plugins enabled: 36
1: Calendar v1.5.10
2: Note Refactor v1.8.2
3: Admonition v10.3.2
4: Templater v2.9.1
5: Quick Switcher++ v4.5.1
6: Zoom v1.1.2
7: Toggle Meta Yaml v1.2.0
8: Hider v1.5.1
9: Advanced Cursors v0.5.1
10: Style Settings v1.0.9
11: Default New Tab Page v0.11.4
12: Remember File State v1.1.2
13: Meld Encrypt v2.3.7
14: Minimal Theme Settings v8.1.1
15: Outliner v4.8.1
16: Quiet Outline v0.3.37
17: Short links v1.1.5
18: CSS Editor v1.2.2
19: Style Text v0.1.0
20: Meta Bind v1.2.5
21: Chronology v1.1.11
22: Dataview v0.5.67
23: Remotely Save v0.5.25
24: Commander v0.5.2
25: Periodic Notes v0.0.17
26: Multiple Notes Outline v0.6.2
27: Heading Shifter v1.6.1
28: PDF++ v0.40.13
29: Text Extractor v0.5.2
30: MetaEdit v1.8.2
31: Aloud v0.6.0
32: ToggleList v1.2.7
33: Excalidraw v2.6.8
34: Tasks v7.14.0
35: Export Image plugin v2.3.16
36: Note Toolbar v1.15.3

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've had multiple instances (about 5 files that I know about in total, and on separate occasions) when I open an excalidraw file, and the drawing seems to have been replaced with another drawing in my vault:

On closer inspection, only the excalidraw Drawing has been corrupt and replaced by another existing drawing: Embedded Files, Element Links etc are all still the correct ones:

This means that the file is not being replaced - something is getting corrupt in the saving process.. I have "Compress Excalidraw JSON in Markdown" enabled, the other saving settings are default.

The drawings involved are always something that I had been working on recently, but I don't discover the issue until I re-open the drawings, sometimes days or weeks later, so it's extremely frustrating and causing me to loose a lot of work

Steps to reproduce

I have not been able to identify how to reproduce this critical bug, if you could help me with some logging tools, I can try to dig deeper into why it's happening.

Expected behavior

No response

Additional context

No response

@zsviczian
Copy link
Owner

Unfortunately, until you can provide exact steps to reproduce the issue I can't really investigate.
Often (so far in pretty much every single case) things getting corrupted during saving was due to another plugin automatically modifying files on save.

I am not familiar with most of your plugins. Based on name I could imagine Chronology is automatically touching files on save.

Please try to deliberately reproduce, when you succeed, try the same procedure in an empty vault where you have none of the other plugins. When you have a reliable way to reproduce the issue I am happy to look into this.

@ronyrus
Copy link

ronyrus commented Dec 18, 2024

Happened to me as well. Indeed super frustrating. Fortunately, I was able to restore a previous version from Obsidian Sync.
I can't share the drawings because it contains work related materials.
If I'll be able to reproduce with simple files, I'll post.
In my case, both of the files were open in different tabs at the same time, and it happened couple of times during one day.

That's frightening though, what if I won't catch it in time next time...
Can we enable some logging in the plugin to get more debug info?

@ronyrus
Copy link

ronyrus commented Dec 18, 2024

In terms of plugins, a plugin that I've installed recently was "Navigate Cursor History".
Not sure if it touching files or not, but that's the only change in plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants