Opening certain emails always crashes K-9 Mail

When I open certain emails, K-9 Mail always crashes.

But

  • most emails open without problems in K-9 Mail
  • all emails open without problems in the built-in Android email app
  • all emails open without problems on my desktop computer.

So there’s nothing wrong with the emails per se that are causing K-9 Mail to crash, as they open fine in all other email clients apart from K-9 Mail.

There are a relatively small number of emails that are causing K-9 Mail to crash - most open fine - but there are enough for this to still be a serious enough problem to make K-9 Mail almost unusable for me.

How can I fix this?

I read somewhere that something called “Android System Webview” can cause K-9 Mail to crash when opening emails, but it definitely isn’t doing so in my case because it isn’t enabled on my phone.

Can anyone help?

Dave

That’s probably the problem right there. Android Webview is used by lots of apps, not just K-9, so make sure it’s enabled/available.

1 Like

The Enable button is greyed out.

Are you using an older Android version?

If so, you may be experiencing the same crash as reported on github here.

Can you capture a debug log of the crash and what error it reports. See the guide here.

If your crash if the same as the one I linked to, add your findings to that ticket, otherwise you should create a new bug report on github here.

Yes, I have a Galaxy S7 so it’s Android 8.

I’ve created a debug log and uploaded it to here as I couldn’t see any way to attach it to this post.

Is it the same bug? If so, how can I install an older version of K-9 mail and prevent updates, as the current version is unusable?

Dave

The crash shown in your debug log looks the same as the one posted on the github ticket here.

Please add your report and debug log to that ticket.

03-28 18:04:50.880 11994 11994 D AndroidRuntime: Calling main entry org.chromium.components.crash.browser.CrashpadMain
03-28 18:04:50.889 11994 11994 W linker  : "/data/app/com.android.chrome--bIFa7TQVsnzsTPAdHcXMQ==/base.apk!/lib/arm64-v8a/libmonochrome.so" unused DT entry: type 0x70000001 arg 0x0
03-28 18:04:50.952 11994 11994 E chromium: [0328/180450.951830:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
03-28 18:04:51.099 11994 11994 D AndroidRuntime: Shutting down VM
--------- beginning of crash
03-28 18:04:51.148 10676 10705 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 10705 (RenderThread)
03-28 18:04:51.247 12006 12006 I crash_dump64: obtaining output fd from tombstoned
03-28 18:04:51.256 12006 12006 I crash_dump64: performing dump of process 10676 (target tid = 10705)
03-28 18:04:51.257 12006 12006 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-28 18:04:51.257 12006 12006 F DEBUG   : Build fingerprint: 'samsung/heroltexx/herolte:8.0.0/R16NW/G930FXXU8EVG2:user/release-keys'
03-28 18:04:51.257 12006 12006 F DEBUG   : Revision: '8'
03-28 18:04:51.257 12006 12006 F DEBUG   : ABI: 'arm64'
03-28 18:04:51.257 12006 12006 F DEBUG   : pid: 10676, tid: 10705, name: RenderThread  >>> com.fsck.k9 <<<
03-28 18:04:51.257 12006 12006 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-28 18:04:51.261 12006 12006 F DEBUG   : Abort message: 'GL errors! frameworks/base/libs/hwui/BakedOpRenderer.cpp:75'

It’s only worth my while doing so if I can use K-9 Mail. In order to be able to use it before the bug is fixed, I would need to download an older version that doesn’t have this bug and turn off automatic updates for it. Is that possible? If not, I will need to find another email client.

Dave

To downgrade,

Download an older app version (v16.1 recommended) from F-Droid or Github.

  1. Backup your K-9 settings (settings > export settings).
  2. Uninstall your current version.
  3. Install the downgrade version.
  4. On first run, select to restore your settings from the export file.
  5. Enter your passwords or complete oAuth sign-in.

You also have the option to install Thunderbird for Android 16.1 side by side with your current K-9 version. K-9 and TBA are basically the same app. You can restore your K-9 settings export into TBA.

This would allow you to leave your K-9 untouched until an upgrade fixing the bug is released.

Hi @Dave_Rado

The developers have created 2 debug builds to try and fault find the issue.

Their looking for user assistance to try these and provide feedback on github.

See their request here if your interested in assisting.

Hi @Zeroid

To downgrade,

Download an older app version (v16.1 recommended) from F-Droid or Github.

  1. Backup your K-9 settings (settings > export settings).

  2. Uninstall your current version.

  3. Install the downgrade version.

  4. On first run, select to restore your settings from the export file.

  5. Enter your passwords or complete oAuth sign-in.

You also have the option to install Thunderbird for Android 16.1 side by side with your current K-9 version. K-9 and TBA are basically the same app. You can restore your K-9 settings export into TBA.

This would allow you to leave your K-9 untouched until an upgrade fixing the bug is released.

Apologies for late reply - I’ve had a lot on my plate.

If K-9 and TBA are basically the same app, how can you be sure TBA won’t have the same bug?

Regarding exporting settings, see my thread here, which no one replied to. When I last reinstalled K-9 Mail due to my phone being flashed, I had no luck importing my settings and had to follow the New Account prompts instead. I think this was because when importing the settings it asked for the server passwords - but as I’m using oAuth, these passwords aren’t valid. Is there any way of importing the settings so it uses oAuth and doesn’t ask for passwords?

Dave

Hi @Zeroid

The developers have created 2 debug builds to try and fault find the issue.

Their looking for user assistance to try these and provide feedback on github.

See their request here if your interested in assisting.

I don’t understand how to install them. Also the thread you linked to says: “github-project-automation moved this from In Review to Done in Thunderbird for Android - Sprints3 days ago”. Does that mean they’ve fixed the bug now? If so, they haven’t released the bug fix as my copy of K-9 Mail is still crashing.

Dave

It’s in the latest Beta build already, so it should be in the next Stable update as well.

1 Like

Hi @Dave_Rado

While importing a backup of oAuth accounts, click each account’s name in the wizard to complete the sign-in process.

Q) I don’t understand how to install them

The files are installed by downloading the APK file and opening them using your android file manager. You normally need to grant the file manager permission to ‘install from unknown sources’.

You don’t need to worry about this as the beta is now available on Google’s play store.
Search the play store for Thunderbird beta, or wait for the next stable update to be released.

Do you know when the next Stable update is likely to be released?

No idea, sorry. I’m just a user myself :wink:

18.0 on April 13.

See build & release calendar https://calendar.google.com/calendar/ical/c_f7b7f2cea6f65593ef05afaf2abfcfb48f87e25794468cd4a19d16495d17b6d1%40group.calendar.google.com/public/basic.ics

Anyone still crashing after 17.1 ?

Anyone still crashing after 17.1 ?

Hi @wsmwk

Do you mean the beta? I have 17.0 and Google Play says all my apps are up to date.

Dave

See build & release calendar https://calendar.google.com/calendar/ical/c_f7b7f2cea6f65593ef05afaf2abfcfb48f87e25794468cd4a19d16495d17b6d1%40group.calendar.google.com/public/basic.ics

Hi @wsmwk - I can’t see K 9 Mail wheni click your link.

Face

K-9 and TBird typically release at the same time since they’re the same app just with different names.