gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.7k stars 360 forks source link

Application attempted to call on a destroyed WebView - Error: Could not open file #2301

Open Mo-1996 opened 4 months ago

Mo-1996 commented 4 months ago

⚠️ This issue respects the following points: ⚠️

Description

I inserted a list symbol in the file, but after viewing it, it appears as an empty file when saved untitled.webm

Steps to reproduce

  1. Open an MD file and insert the Unordered list
  2. click view mode and back
  3. Display "Error: Could not open file"
  4. Click on the file, there is nothing

Information

Android version: 8.1 Device: Nexus 5X App Version: v2.12.0(149)

Source

GitHub Releases

Format / File type

Markdown

Additional info / Log

W/cr_AwContents: Application attempted to call on a destroyed WebView
    java.lang.Throwable
        at org.chromium.android_webview.AwContents.f(PG:314)
        at org.chromium.android_webview.AwContents.a(PG:288)
        at org.chromium.android_webview.AwContents.q(PG:544)
        at agE.loadingStateChanged(PG:159)
        at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:325)
        at android.os.Looper.loop(Looper.java:142)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
gsantner commented 3 months ago

Seems like your operating system ships a non-working WebView. The crash is not reproducable here.

By the way, Android 8.1 is stoneage old and insecure. You have the luck that your device is capable of running the most recent Android version too https://xdaforums.com/f/nexus-5x-original-android-development.4742/

gsantner commented 3 months ago

Click on the file, there is nothing

That is actually due Markor doesn't automatically save what looks to be a faulty text, so less then 3 characters. You can press the save button manually however to save it like that explicitly.