Skip to content

Crash on Android 6 - Fragment LegacyMessageListFragment not attached to a context. #10790

Closed

Description

@licaon-kter

Checklist

  • I have used the search function to see if someone else has already submitted the same bug report.
  • I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

18.0b3

Where did you get the app from?

F-Droid

Android version

Stock Android 6

Device model

No response

Steps to reproduce

Start app.

Expected behavior

Start app

Actual behavior

Crash:

Crash:

java.lang.RuntimeException: Unable to start activity ComponentInfo{net.thunderbird.android.beta/com.fsck.k9.activity.MessageHomeActivity}: java.lang.IllegalStateException: Fragment LegacyMessageListFragment{44c8bc7} (699d8f41-5e5b-4454-83cb-7a4ac81ba5dd id=0x7f0902a6) not attached to a context.
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3319)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
	at android.app.ActivityThread.access$1100(ActivityThread.java:229)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1821)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:7331)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: java.lang.IllegalStateException: Fragment LegacyMessageListFragment{44c8bc7} (699d8f41-5e5b-4454-83cb-7a4ac81ba5dd id=0x7f0902a6) not attached to a context.
	at okhttp3.internal._UtilJvmKt$$ExternalSyntheticLambda0.m(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:36)
	at androidx.fragment.app.Fragment.requireContext(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:16)
	at androidx.fragment.app.Fragment.getDefaultViewModelCreationExtras(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:1)
	at okhttp3.internal.http2.Http2Connection$ReaderRunnable.invoke(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:416)
	at kotlin.UnsafeLazyImpl.getValue(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:12)
	at com.fsck.k9.ui.messagelist.LegacyMessageListFragment.getLegacyViewModel(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:3)
	at com.fsck.k9.ui.messagelist.LegacyMessageListFragment.setActiveMessage(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:3)
	at com.fsck.k9.activity.MessageHomeActivity.showMessageList(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:39)
	at com.fsck.k9.activity.MessageHomeActivity.displayViews(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:112)
	at com.fsck.k9.activity.MessageHomeActivity.onCreate(r8-map-id-5f779f94b322c9e372e40f6d40e01ac02b219deec703be9c5411426845ca6758:247)
	at android.app.Activity.performCreate(Activity.java:6904)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3266)
	... 9 more

Logs

No response

Activity

  1. removed
    unconfirmedNewly reported issues awaiting triage or confirmation
    on Apr 9, 2026
  2. added theissue type on Apr 9, 2026
  3. moved this from Backlog to Planning in Thunderbird for Android - Sprintson Apr 9, 2026
  4. moved this from Planning to Backlog in Thunderbird for Android - Sprintson Apr 9, 2026
  5. self-assigned this
    on Apr 9, 2026
  6. tebicap commented on Apr 19, 2026

    @tebicap

    I’m not sure it’s the same issue, but I can’t start the app either in version 18.0 (F‑Droid, Android 6.0, Huawei). I have this adb logcat:

    adb logcat | grep -E -i thunderb

    • daemon not running; starting now at tcp:****
    • daemon started successfully
      04-19 17:53:30.143 1500 1966 I HwResources: load icon id : 7f0f0000, pkgName : net.thunderbird.android
      04-19 17:53:30.192 1500 1966 I HwResources: icon : net.thunderbird.android found in app
      04-19 17:53:32.371 475 723 I logserver: extract_appname, forward search, appname=net.thunderbird.android
      04-19 17:53:32.371 475 723 I logserver: get_fault_appname, appname=net.thunderbird.android
      04-19 17:53:32.376 475 722 I logserver: handle_notify_event, send msg [submit:trigger=0,bugtype=2,modulename=net.thunderbird.android,level=1,testtype=NORMAL,path=/data/log/unzip/VNS-L23_VNS-L23C605B120_0000000000_20260419175332_crash,mode=1;]

    I you need me to enhance the log in any way please tell me how. Thnks.

  7. marked Crashing On Startup #10938 as a duplicate of this issue on Apr 24, 2026
  8. YSEHaMATY commented on May 2, 2026

    @YSEHaMATY

    This is still happening, both for Thunderbird and K-9. Whatever update recently happened, it needs to be reverse. There's no way to get this running now, so I've ceased to use these apps altogether.

  9. wmontwe commented on Oct 15, 2026

    @wmontwe
    Member

    We're not going to fix this as we have to drop support for Android 6 as Google started to phase out Android 6 support in their libraries: #11545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Estimate

None yet

Priority

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions