zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.06k stars 219 forks source link

BUG:failed to load the excalidraw #1432

Open Hhpoi opened 10 months ago

Hhpoi commented 10 months ago

My device is Chromebook, i3 gen8 but can't load the plugin

zsviczian commented 10 months ago

you may need to update the webview component.

FreebeJan commented 10 months ago

I am facing the same issue on an Android device with Obsidian Excalidraw 2.0.5 and the latest Android System WebView that is available for my device on the playstore (Android 12). The issue must have been introduced with one of the latest releases as I was already using I think at least 2.0.1 on that device without issues. Any information I can provide to help resolve this? Do you prefere if this was another issue, or is it related enough?

zsviczian commented 10 months ago

I have pulled 2.0.5 until I am able to resolve the issue.

zsviczian commented 10 months ago

Please test 2.0.7. I had to roll back all the way to version 1.9.24 to find an issue that caused Obsidian on my S23 to crash (albeit only if using the debug version of the plugin). I hope this resolves the issue you've been facing as well. Let me know.

FreebeJan commented 10 months ago

Thank you so much, Excalidraw is working on Android for me again! Excalidraw in Obsidian is such an integral part of how I manage and visualize knowledge, thank you for your amazing work.

Azarattum commented 8 months ago

After updating to 2.0.18 (sadly I cannot remember from which version I have updated), plugin does not load on iOS 15.4.1. It works fine on desktop (macOS Sonoma) in the same vault.

Failed to load plugin obsidian-excalidraw-plugin

Is there a way to access some kind of plugin logs on iOS to know why exactly it doesn't load? I would love to help resolve this issue.

zsviczian commented 8 months ago

There are typically 2 reasons why Excalidraw does not run on certain iOS and Android devices:

Azarattum commented 8 months ago

@zsviczian, thanks for your answer.

The plugin has worked before just fine (on the same iOS version), the regression came from one of the recent updates. The excalidraw web version works fine on my device currently. No corporate management is applied to my device.

Sadly, I cannot update my iOS version ;(

Azarattum commented 8 months ago

Is there a way to tell why the plugin cannot load? Maybe some kind of logs or devmode can be enabled in obsidian?

zsviczian commented 8 months ago

This is most likely a javascript compatibility issue. Excalidraw.com significantly changed their project structure and build process, as a consequence I had to substantially rework the Obsidian build. As part of that I was experimenting with different configurations. I guess one of these is causing the problem. Which one - is like searching for a needle in a haystack. This is made more difficult by the fact that I myself cannot reproduce the issue, and even if I could, iOS is super limiting on debug options - Apple makes it real hard for any cross platform development.

All I can offer is to try a different build configuration next time and we'll see if 2.0.19 will work.

1001ruchka commented 7 months ago

I have exactly the same error on iPadOS 15.7.2 Rollback with BRAT plugin to Excalidraw 2.0.17 helped. The error occurs on 2.0.18 and higher. 80ABB49E-94D5-4120-B43E-A48D3B2E67A3

aashish108 commented 5 months ago

I can't run the plugin on my Android device either, it's a Samsung Galaxy S22 Ultra. That device still gets major updates so not sure why the plugin does not work?

It's never worked btw, I just tolerated the error messages when I load Obsidian on Android!

Edit: nevernind! I uninstalled Obsidian and reinstalled and that updated my Obsidian on Android to the latest version. Previously it was stuck on an old version. No idea how or why. No update app appeared on Google Play store either.

zsviczian commented 5 months ago

This does sound strange and likely comes down to versions of components, or maybe some permission limitations. In the past I came across an example (albeit iOS) where the issue was resolved when the corporate mobile device management was removed from the phone...

I have Android System WebView 123.0.6312.99 installed on my S23 Ultra. ...and I am currently using the Obsidian 1.5.12 (134) app.

Other than that, I can recommend creating an empty vault and only installing Excalidraw to see if it starts up.

zsviczian commented 5 months ago

so I see you updated your comment in the mean time. In my experience, the Obsidian update issue happens when you install a beta APK that you've downloaded from OMG. I stopped using the beta version on my phone for this reason and stick to the latest in the app store.