Latest 6.400 crashes on ChromeOS

When I try to open a mail on 6.400 it force closes right away. I am using it on a 10.1" Lenovo Duet 3 with a display mode of left emails, right the email content. As soon as it loads the email content it crashes.

It may be an Android Webview issue but I’ve not had the issues before.

Can you provide a debug log? See LoggingErrors · thundernest/k-9 Wiki · GitHub

I have made logs, but I can not attach the .txt file to the reply.

Can you paste the relevant part here? It should look similar to this: Crash at startup with a specific spam - #3 by courrielman

--------- beginning of crash
12-01 19:03:30.050 1272 1272 E AndroidRuntime: FATAL EXCEPTION: main
12-01 19:03:30.050 1272 1272 E AndroidRuntime: Process: com.fsck.k9, PID: 1272
12-01 19:03:30.050 1272 1272 E AndroidRuntime: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.fsck.k9.view.MessageWebView
12-01 19:03:30.050 1272 1272 E AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.fsck.k9.view.MessageWebView
12-01 19:03:30.050 1272 1272 E AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance0(Native Method)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:647)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.ui.messageview.MessageTopView.showMessage(MessageTopView.java:118)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.ui.messageview.MessageViewFragment.showMessage(MessageViewFragment.kt:339)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.ui.messageview.MessageViewFragment.access$showMessage(MessageViewFragment.kt:59)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.ui.messageview.MessageViewFragment$messageLoaderCallbacks$1.onMessageViewInfoLoadFinished(MessageViewFragment.kt:866)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.activity.MessageLoaderHelper.onDecodeMessageFinished(MessageLoaderHelper.java:407)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.activity.MessageLoaderHelper.access$1100(MessageLoaderHelper.java:76)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.activity.MessageLoaderHelper$3.onLoadFinished(MessageLoaderHelper.java:443)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.activity.MessageLoaderHelper$3.onLoadFinished(MessageLoaderHelper.java:420)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.app.LoaderManagerImpl$LoaderObserver.onChanged(LoaderManagerImpl.java:250)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.app.LoaderManagerImpl$LoaderInfo.setValue(LoaderManagerImpl.java:189)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManagerImpl.java:174)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.content.Loader.deliverResult(Loader.java:132)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.ui.message.LocalMessageExtractorLoader.deliverResult(LocalMessageExtractorLoader.java:47)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.fsck.k9.ui.message.LocalMessageExtractorLoader.deliverResult(LocalMessageExtractorLoader.java:16)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:258)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:83)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.content.ModernAsyncTask.finish(ModernAsyncTask.java:490)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at androidx.loader.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:507)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6975)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x20c002b
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:216)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at android.content.res.Resources.getInteger(Resources.java:1099)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at org.chromium.ui.base.DeviceFormFactor.isTablet(chromium-SystemWebViewGoogle.aab-beta-541402313:9)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at org.chromium.content.browser.BrowserStartupControllerImpl.d(chromium-SystemWebViewGoogle.aab-beta-541402313:30)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at org.chromium.content.browser.BrowserStartupControllerImpl.f(chromium-SystemWebViewGoogle.aab-beta-541402313:54)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at ca.run(chromium-SystemWebViewGoogle.aab-beta-541402313:119)
12-01 19:03:30.050 1272 1272 E AndroidRuntime: at org.chromium.base.ThreadUtils.e(chromium-SystemWebViewGoogle.aab-beta-541402313:7)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at org.chromium.android_webview.AwBrowserProcess.l(chromium-SystemWebViewGoogle.aab-beta-541402313:23)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at com.android.webview.chromium.H.e(chromium-SystemWebViewGoogle.aab-beta-541402313:146)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at com.android.webview.chromium.H.b(chromium-SystemWebViewGoogle.aab-beta-541402313:172)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at com.android.webview.chromium.WebViewChromiumFactoryProvider.k(chromium-SystemWebViewGoogle.aab-beta-541402313:11)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at com.android.webview.chromium.WebViewChromium.init(chromium-SystemWebViewGoogle.aab-beta-541402313:89)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at android.webkit.WebView.(WebView.java:678)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at android.webkit.WebView.(WebView.java:604)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at android.webkit.WebView.(WebView.java:587)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at android.webkit.WebView.(WebView.java:574)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: at com.fsck.k9.view.MessageWebView.(MessageWebView.kt:14)
12-01 19:03:30.051 1272 1272 E AndroidRuntime: … 37 more

The WebView implementation on your device seems to be broken. I think your only option is to wait for Google to fix this bug.

Our bug tracker already contains an issue to catch these kinds of errors and display an error message instead of crashing. However, that requires some architectural changes and is not a very high priority right now.

@dicks

try to reinstall WebView.
Look at the Google Play Store. uninstall WebView, restart your Chromebook.
Then reinstall WebView via Google Play Store. You can also try the WebView Beta programm.
I’m on the Beta and my K9-Mail don’t have any crashes.

Thank you for the tip, you are right. When I uninstall the Android Webview updates it works fine. I am on the beta app and when I install the update again, K-9 crashes again. Maybe related to my ChomeOS, which is beta too.

Fine, that’s seems really a bug with the Beta-Channel. I’m on the stable-channel and use the Beta of WebView and all is okay.

Latest beta WebView resolves this issue.

1 Like

That’s great good to hear. But already I said on the second this month I said I had no crashes with the beta version of WebView.