zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
3.89k stars 211 forks source link

BUG: Error on each time I go out and back into Obsidian TypeError #1382

Open devinat1 opened 10 months ago

devinat1 commented 10 months ago

Your environment SYSTEM INFO: Obsidian version: v1.4.16 Installer version: v1.4.13 Operating system: Windows 10 Home 10.0.22621 Login status: logged in Catalyst license: none Insider build toggle: off Live preview: on Legacy editor: off Base theme: dark Community theme: Minimal v7.3.2 Snippets enabled: 0 Restricted mode: off Plugins installed: 36 Plugins enabled: 23 1: Mousewheel Image zoom v1.0.19 2: Dataview v0.5.61 3: Templater v1.16.3 4: Obsidian_to_Anki v3.4.2 5: Editor Syntax Highlight v0.1.3 6: Paste URL into selection v1.7.0 7: Admonition v10.1.1 8: Google Photos v1.6.5 9: Advanced Tables v0.19.1 10: Homepage v3.5.2 11: Minimal Theme Settings v7.3.0 12: Recent Files v1.3.8 13: Todoist Plugin v1.11.1 14: Linter v1.20.0 15: Quick Switcher++ v3.3.7 16: LanguageTool Integration v0.3.4 17: QuickAdd v1.4.0 18: Excalidraw v1.9.23 19: Settings Search v1.3.10 20: Dice Roller v9.4.1 21: Plugin Update Tracker v1.5.2 22: Hider v1.3.1 23: Readwise Official v2.0.1

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 Obsidian stutters on each time I go to and from Obsidian, due to TypeError. I think it occurs whenever I have a drawing that is visible within my obsidian document containing that drawing.

To Reproduce Steps to reproduce the behavior:

  1. Create an excalidraw drawing that shows up as embedded within the current file.
  2. Move to another window that completely makes the current window disappear (such as by minimizing obsidian or moving to a different program).
  3. Open obsidian again.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image Full errors: image

Additional context The file to reproduce error with: Binary Tree Zigzag Level Order Traversal.md

zsviczian commented 10 months ago

I am unable to reproduce this issue. I see that the error is triggered by Excalidraw, however, the root cause could be in other plugins e.g. Mousewheel Image zoom v1.0.19 (I haven't used that one, but based on name it seems to be image related). My other target would be Hider (again simply based on name). Can you try disabling these plugins and restarting Obsidian to see if the issue is still there?

devinat1 commented 10 months ago

Yea it could be related to something else. I couldn't reproduce it as yet, with the mousewheel image zoom disabled.