question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

K-9 crashes at inbox open on Android O

See original GitHub issue

K-9 crashed after clicking on the Inbox. Afterwards, it will crash on every startup.

Expected behavior

K-9 opens the inbox.

Actual behavior

K-9 crashes.

Steps to reproduce

  1. Choose the inbox after configuring an account
  2. Profit?

Environment

K-9 Mail version: 5.300-SNAPSHOT (built from current master)

Android version: 8.0 (Android O Developer Preview 2)

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

05-17 22:55:03.781 E/AndroidRuntime(21282): FATAL EXCEPTION: main
05-17 22:55:03.781 E/AndroidRuntime(21282): Process: com.fsck.k9, PID: 21282
05-17 22:55:03.781 E/AndroidRuntime(21282): java.lang.LinkageError: Method android.view.LayoutInflater com.fsck.k9.fragment.MessageListFragment.getLayoutInflater() overrides final method in class Landroid/app/Fragment; (declaration of 'com.fsck.k9.fragment.MessageListFragment' appears in /data/app/com.fsck.k9-8rLXJQdRANND4GVTfWN6Mg==/base.apk)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at com.fsck.k9.activity.MessageList.actionDisplaySearch(MessageList.java:103)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at com.fsck.k9.activity.Accounts.onOpenAccount(Accounts.java:683)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at com.fsck.k9.activity.Accounts.onItemClick(Accounts.java:1239)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.widget.AdapterView.performItemClick(AdapterView.java:317)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.widget.AbsListView.performItemClick(AbsListView.java:1165)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3134)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.widget.AbsListView$3.run(AbsListView.java:4049)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.os.Handler.handleCallback(Handler.java:769)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.os.Handler.dispatchMessage(Handler.java:98)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.os.Looper.loop(Looper.java:164)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at android.app.ActivityThread.main(ActivityThread.java:6535)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at java.lang.reflect.Method.invoke(Native Method)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
05-17 22:55:03.781 E/AndroidRuntime(21282): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cketticommented, May 19, 2017

We do have a method getLayoutInflater() in MessageListFragment. Renaming it should solve the problem.

0reactions
philipwhiukcommented, May 24, 2017

Well try just deleting it. The new method seems like it might do what we want.

If not getOriginalLayoutInflater() seems to match what we actually mean.

Read more comments on GitHub >

github_iconTop Results From Across the Web

K-9 crashes at inbox open on Android O · Issue #2540 - GitHub
K-9 crashed after clicking on the Inbox. Afterwards, it will crash on every startup. Expected behavior. K-9 opens the inbox. Actual behavior.
Read more >
[Solved] App crashes when opening an email - K-9 Mail Forum
We use the WebView component to display emails. So the app will crash every time you try to open a message. You could...
Read more >
Lollipop 5.1 crash - Google Groups
Having upgraded from Android 5.0.1 to 5.1, running K9 5.001, At the message list for an account, as soon as I try to...
Read more >
Miami-Dade Police Officer, K-9 Injured in Crash on Turnpike
A Miami-Dade Police officer and K-9 were injured in a crash on the Florida's Turnpike Wednesday afternoon.
Read more >
11 Best Email Apps for Android in 2022
Spike transforms your existing email into a chat-like inbox and makes ... K-9 Mail is a perfect email client for the supporters of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found