zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4k stars 215 forks source link

BUG: Excalidraw crash when view mode toggle off on android #1979

Open Deus333 opened 2 weeks ago

Deus333 commented 2 weeks ago

Your environment SYSTEM INFO: Operating system: android 11 (samsung SM-A505F) Obsidian version: 1.6.7 (149) API version: v1.6.7 Login status: not logged in Live preview: on Base theme: dark Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 4 Plugins enabled: 3 1: Excalidraw v2.3.0 2: Dataview v0.5.67 3: Templater v2.4.2

Bug Description: When setting Excalidraw to open drawings in view mode, the application initially works as expected, allowing you to view the drawing without any issues. However, if you toggle off view mode to edit the drawing, the screen goes black, making the drawing invisible and preventing any further interaction.

Additionally, if Excalidraw is not set to "open in view mode," the screen goes black immediately upon opening a file, preventing you from seeing the drawing at all.

To Reproduce Steps to reproduce the behavior:

  1. open a drawing that is in view mode
  2. tap and hold and tap on view mode
  3. See error

Expected behavior functioning :)

Screenshots telegram-cloud-photo-size-4-5949659638297379690-y

telegram-cloud-photo-size-4-5949659638297379689-y telegram-cloud-photo-size-4-5949659638297379688-y

zsviczian commented 2 weeks ago

I am unable to reproduce... (testing on S23 Ultra), but I am using 2.4.0-rc-2. Can you test to see if you can reproduce the issue with the latest beta? I will release 2.4.0 this weekend, and the next release only in October - so would be important to find out now.

You can install the beta version with BRAT. This video explains how: https://youtu.be/2poSS-Z91lY

Deus333 commented 2 weeks ago

Hi, thanks for your quick response. I follow the steps you suggested, but the issue persists in version 2.4.0-rc-2.

zsviczian commented 2 weeks ago

does the issue impact all your drawings or only this one?

zsviczian commented 2 weeks ago

Galaxy A50 is an older device. Please test if you experience the same on excalidraw.com.

However, even if it works in your browser, it could be different from the Android WebView component on your phone. You could try updating the Android WebView.

I fear this is a legacy device support issue, and I won't be able to do much about it...

Here's ChatGPT's instruction on how-to:


1. Open the Google Play Store

2. Search for Android System WebView

3. Check for Updates

4. Update Android System WebView

5. Wait for the Installation to Complete

6. Restart Your Phone (Optional)

7. Verify the Update

8. Check System Settings (Alternative Method)

Troubleshooting Tips:

This should help you keep the Android WebView on your Galaxy A50 up to date.

Deus333 commented 2 weeks ago

I was using Excalidraw on this phone, and this issue started happening after the recent updates

zsviczian commented 2 weeks ago

Please create an empty vault and test only with Excalidraw installed.

You did not respond to my earlier questions - please do, or else I can't help you:

In the meantime, I found an old phone at home with Android 9 and installed Obsidian and Exalidraw, both 2.3.0 and 2.4.0-rc-2. Excalidraw ran without issues, and I was able to switch to view mode without any problems.

My test phone is running Android System WebView v79.0.3945.116

Deus333 commented 2 weeks ago

“Hello, I created a new vault, and everything was working fine. Then, I decided to uninstall and reinstall the Excalidraw plugin. I had done this before, and the problem wasn’t solved, but strangely enough, this time the issue was resolved.