obsidian-excalidraw-plugin icon indicating copy to clipboard operation
obsidian-excalidraw-plugin copied to clipboard

BUG:failed to load the excalidraw

Open Hhpoi opened this issue 2 years ago • 14 comments

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

Hhpoi avatar Nov 14 '23 06:11 Hhpoi

you may need to update the webview component.

zsviczian avatar Nov 14 '23 14:11 zsviczian

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?

FreebeJan avatar Dec 03 '23 21:12 FreebeJan

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

zsviczian avatar Dec 03 '23 23:12 zsviczian

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.

zsviczian avatar Dec 04 '23 14:12 zsviczian

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.

FreebeJan avatar Dec 04 '23 23:12 FreebeJan

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.

Azarattum avatar Jan 29 '24 01:01 Azarattum

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

  • Older version of Safari or Android WebView. Obsidian runs in a WebView component on these devices, older versions do not support some of the newer javascript standards. I test Excalidraw on both my Android and iOS, but I don't have an older iOS device. It works on 16.6. Updating your iOS should solve the issue.
  • Some people have found that corporate mobile device management solutions sometimes blocked some features. Obsidian worked, but Excalidraw did not. Once the Corporate MDM was removed Excalidraw also worked.

zsviczian avatar Jan 29 '24 06:01 zsviczian

@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 avatar Jan 29 '24 07:01 Azarattum

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

Azarattum avatar Jan 29 '24 07:01 Azarattum

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.

zsviczian avatar Jan 29 '24 07:01 zsviczian

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

1001ruchka avatar Feb 06 '24 02:02 1001ruchka

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.

aashish108 avatar Apr 09 '24 07:04 aashish108

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 avatar Apr 09 '24 07:04 zsviczian

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.

zsviczian avatar Apr 09 '24 07:04 zsviczian