MSzturc / obsidian-advanced-slides

Create markdown-based reveal.js presentations in Obsidian
https://mszturc.github.io/obsidian-advanced-slides/
MIT License
939 stars 80 forks source link

bug: opening preview crashes entire obsidian app #279

Open bguiz opened 7 months ago

bguiz commented 7 months ago

Describe the bug

Samples to Reproduce

Expected behavior

gramjos commented 6 months ago

Hi @bguiz I was encountering the same error. My workaround was to press Advanced Slides: Reload Slide Preview before i pressed Advanced Slides: Show Slide Preview it seemed to work from then on out...

bguiz commented 6 months ago

Ah interesting - I will have to try that now. I tried restarting Obsidian completely, to no avail. But didn't think of this one! Thanks.

My workaround was to press Advanced Slides: Reload Slide Preview before i pressed Advanced Slides: Show Slide Preview it seemed to work from then on out...

devinat1 commented 6 months ago

Can confirm the same issue is happening to me. Here is my config in case there is some plugins we have in common: SYSTEM INFO: Obsidian version: v1.5.3 Installer version: v1.4.16 Operating system: Windows 10 Home 10.0.23606 Login status: logged in Catalyst license: none Insider build toggle: off Live preview: on Base theme: dark Community theme: Minimal v7.4.7 Snippets enabled: 0 Restricted mode: off Plugins installed: 47 Plugins enabled: 30 1: Admonition v10.1.1 2: Dataview v0.5.64 3: Google Photos v1.6.5 4: Hider v1.3.1 5: Image Toolkit v1.4.1 6: LanguageTool Integration v0.3.6 7: Linter v1.22.0 8: Minimal Theme Settings v7.3.1 9: Note Refactor v1.8.2 10: Obsidian_to_Anki v3.5.0 11: Paste URL into selection v1.7.0 12: Quick Switcher++ v3.3.9 13: Templater v2.1.0 14: Text Extractor v0.4.10 15: Todoist Plugin v1.11.1 16: Pandoc Plugin v0.4.1 17: Auto Link Title v1.5.0 18: Obsidian Enhancing Export v1.9.6 19: Advanced Slides v1.20.0 20: Hover Editor v0.11.15 21: Plugin Update Tracker v1.5.2 22: Citations v0.4.5 23: Editor Syntax Highlight v0.1.3 24: ExcaliBrain v0.2.11 25: Excalidraw v2.0.16 26: Homepage v3.6.0 27: Pandoc Reference List v2.0.25 28: QuickAdd v1.6.1 29: Readwise Official v2.0.1 30: Zotero Integration v3.1.7

devinat1 commented 6 months ago

Reloading prior to showing did indeed work for me, and I set up a quickadd macro to do both at once.

devinat1 commented 5 months ago

Update: reloading the plugin only works sometimes. Usually, showing the slide preview results in a complete crash.

devinat1 commented 5 months ago

Ok so the workaround I found that works is to reload a file with only one slide in it, then circle back and reload a bigger file. When advanced slides is able to load one presentation, it can load the other presentations no problem, but seems to have a problem initially loading large presentations.

CDWimmer commented 2 months ago

This issue remains for me today unfortunately - can confirm (very) small files work much more consistently and for whatever reason then enables larger files to work - is it some sort of race between the server being prepared and the preview window requesting from it?

Side note: I'd love for more cross-plugin support...