thunderbird / thunderbird/thunderbird-android
Sudden crashed by a NullPointerException after discarded an message
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 14k
- Forks
- 2.8k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 57
Description
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
11.0 (from Github)
Where did you get the app from?
Other
Android version
14
Device model
Pixel 8
Steps to reproduce
I was viewing emails in the "Unified Inbox" with a split view.
I clicked the "More Options" of one and tried to "Compose message to".
But finally "Go back" and "Discard", and then the app crashed.
I have tried to reproduce it but currently not figured out the precise triggering conditions.
Note: my network was not so satisfactory and unstable, and there were errors in the Logcat too, this might take effect.
Expected behavior
Normal operation.
Actual behavior
The app crashed.
Logs
FATAL EXCEPTION: main
Process: net.thunderbird.android.debug, PID: 15185
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
at android.widget.Toast.makeText(Toast.java:552)
at com.fsck.k9.ui.messagelist.MessageListFragment.checkCopyOrMovePossible(MessageListFragment.kt:1222)
at com.fsck.k9.ui.messagelist.MessageListFragment.onArchive(MessageListFragment.kt:1177)
at com.fsck.k9.ui.messagelist.MessageListFragment.access$onArchive(MessageListFragment.kt:78)
at com.fsck.k9.ui.messagelist.MessageListFragment$ActionModeCallback.onActionItemClicked(MessageListFragment.kt:2078)
at androidx.appcompat.app.AppCompatDelegateImpl$ActionModeCallbackWrapperV9.onActionItemClicked(AppCompatDelegateImpl.java:3006)
at androidx.appcompat.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:139)
at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:833)
at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:157)
at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:984)
at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:974)
at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:620)
at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)
at android.view.View.performClick(View.java:7659)
at android.view.View.performClickInternal(View.java:7636)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:30156)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
More Context
04-11 03:24:04.233 15185 15389 E MessagingController: Error running command 'setFlag'
04-11 03:24:04.233 15185 15389 E MessagingController: java.lang.IllegalArgumentException: Local UID found: K9LOCAL:aefdd2d5-a23d-4d47-a284-d101c303b8a2
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.Preconditions.requireNotLocalUid(Preconditions.kt:28)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.Preconditions.requireValidUids(Preconditions.kt:22)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingControllerCommands$PendingSetFlag.create(MessagingControllerCommands.java:140)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.queueSetFlag(MessagingController.java:985)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.setFlagSynchronous(MessagingController.java:1138)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.lambda$setFlag$7$com-fsck-k9-controller-MessagingController(MessagingController.java:1068)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController$$ExternalSyntheticLambda6.run(D8$$SyntheticClass:0)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.runInBackground(MessagingController.java:234)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.-$$Nest$mrunInBackground(Unknown Source:0)
04-11 03:24:04.233 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController$1.run(MessagingController.java:174)
04-11 03:24:04.233 15185 15389 E MessagingController: at java.lang.Thread.run(Thread.java:1012)
04-11 03:24:08.699 597 3450 E Transition: Trying to add a ready-group twice: Display{#0 state=ON size=1080x2400 ROTATION_0}
04-11 03:24:09.213 15185 15185 E PhoneWindow: Circular progress bar not located in current window decor
04-11 03:24:09.704 845 951 E OpenGLRenderer: Unable to match the desired swap behavior.
04-11 03:24:09.819 845 951 E OpenGLRenderer: Unable to match the desired swap behavior.
04-11 03:24:11.701 597 1672 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
04-11 03:24:17.389 1385 16336 E WakeLock: GCM_HB_ALARM release without a matched acquire!
04-11 03:24:18.270 1385 13753 E WakeLock: GCM_CONN_ALARM release without a matched acquire!
04-11 03:24:18.608 597 683 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:19.857 597 683 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:21.095 597 3454 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:22.159 597 3454 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:25.844 597 1707 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:27.147 597 683 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:28.424 597 1707 E InputMethodBindingController: mSelectedMethodId is null!
04-11 03:24:32.184 496 18659 E C2SoftAvcEnc: Unable to set air params = 0x1ad
04-11 03:24:32.305 845 951 E OpenGLRenderer: Unable to match the desired swap behavior.
04-11 03:24:32.352 597 781 E AS.BtHelper: onBtProfileDisconnected: Not a profile handled by BtHelper A2DP_SINK
04-11 03:24:32.352 597 781 E AS.BtHelper: onBtProfileDisconnected: Not a profile handled by BtHelper LE_AUDIO_BROADCAST
04-11 03:24:32.419 845 951 E OpenGLRenderer: Unable to match the desired swap behavior.
04-11 03:24:32.491 1385 17982 E BluetoothDevice: BT not enabled. Cannot get Remote Device name
04-11 03:24:32.532 923 16642 E ApfFilter: Read error
04-11 03:24:32.532 923 16642 E ApfFilter: android.system.ErrnoException: read failed: ENETDOWN (Network is down)
04-11 03:24:32.532 923 16642 E ApfFilter: at libcore.io.Linux.readBytes(Native Method)
04-11 03:24:32.532 923 16642 E ApfFilter: at libcore.io.Linux.read(Linux.java:190)
04-11 03:24:32.532 923 16642 E ApfFilter: at libcore.io.ForwardingOs.read(ForwardingOs.java:613)
04-11 03:24:32.532 923 16642 E ApfFilter: at libcore.io.BlockGuardOs.read(BlockGuardOs.java:325)
04-11 03:24:32.532 923 16642 E ApfFilter: at libcore.io.ForwardingOs.read(ForwardingOs.java:613)
04-11 03:24:32.532 923 16642 E ApfFilter: at android.system.Os.read(Os.java:571)
04-11 03:24:32.532 923 16642 E ApfFilter: at com.android.networkstack.android.net.apf.ApfFilter$ReceiveThread.run(ApfFilter.java:232)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: readPacket error:
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: android.system.ErrnoException: read failed: ENETDOWN (Network is down)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at libcore.io.Linux.readBytes(Native Method)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at libcore.io.Linux.read(Linux.java:190)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at libcore.io.ForwardingOs.read(ForwardingOs.java:613)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at libcore.io.BlockGuardOs.read(BlockGuardOs.java:325)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at libcore.io.ForwardingOs.read(ForwardingOs.java:613)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.system.Os.read(Os.java:571)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at com.android.networkstack.com.android.net.module.util.PacketReader.readPacket(PacketReader.java:57)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at com.android.networkstack.com.android.net.module.util.PacketReader.readPacket(PacketReader.java:32)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at com.android.networkstack.com.android.net.module.util.FdEventsReader.handleInput(FdEventsReader.java:237)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at com.android.networkstack.com.android.net.module.util.FdEventsReader.lambda$createAndRegisterFd$0(FdEventsReader.java:217)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at com.android.networkstack.com.android.net.module.util.FdEventsReader.$r8$lambda$2ruKbH72W_bSk1na0JLGasMr4OE(FdEventsReader.java:0)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at com.android.networkstack.com.android.net.module.util.FdEventsReader$$ExternalSyntheticLambda0.onFileDescriptorEvents(R8$$SyntheticClass:0)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.os.MessageQueue.dispatchEvents(MessageQueue.java:293)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.os.MessageQueue.nativePollOnce(Native Method)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.os.MessageQueue.next(MessageQueue.java:335)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.os.Looper.loopOnce(Looper.java:162)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.os.Looper.loop(Looper.java:294)
04-11 03:24:32.535 923 16201 E ConnectivityPacketTracker.wlan0: at android.os.HandlerThread.run(HandlerThread.java:67)
04-11 03:24:32.562 923 16201 E DhcpClient: readPacket error:
04-11 03:24:32.562 923 16201 E DhcpClient: android.system.ErrnoException: read failed: ENETDOWN (Network is down)
04-11 03:24:32.562 923 16201 E DhcpClient: at libcore.io.Linux.readBytes(Native Method)
04-11 03:24:32.562 923 16201 E DhcpClient: at libcore.io.Linux.read(Linux.java:190)
04-11 03:24:32.562 923 16201 E DhcpClient: at libcore.io.ForwardingOs.read(ForwardingOs.java:613)
04-11 03:24:32.562 923 16201 E DhcpClient: at libcore.io.BlockGuardOs.read(BlockGuardOs.java:325)
04-11 03:24:32.562 923 16201 E DhcpClient: at libcore.io.ForwardingOs.read(ForwardingOs.java:613)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.system.Os.read(Os.java:571)
04-11 03:24:32.562 923 16201 E DhcpClient: at com.android.networkstack.android.net.dhcp.DhcpClient$DhcpPacketHandler.readPacket(DhcpClient.java:716)
04-11 03:24:32.562 923 16201 E DhcpClient: at com.android.networkstack.android.net.dhcp.DhcpClient$DhcpPacketHandler.readPacket(DhcpClient.java:662)
04-11 03:24:32.562 923 16201 E DhcpClient: at com.android.networkstack.com.android.net.module.util.FdEventsReader.handleInput(FdEventsReader.java:237)
04-11 03:24:32.562 923 16201 E DhcpClient: at com.android.networkstack.com.android.net.module.util.FdEventsReader.lambda$createAndRegisterFd$0(FdEventsReader.java:217)
04-11 03:24:32.562 923 16201 E DhcpClient: at com.android.networkstack.com.android.net.module.util.FdEventsReader.$r8$lambda$2ruKbH72W_bSk1na0JLGasMr4OE(FdEventsReader.java:0)
04-11 03:24:32.562 923 16201 E DhcpClient: at com.android.networkstack.com.android.net.module.util.FdEventsReader$$ExternalSyntheticLambda0.onFileDescriptorEvents(R8$$SyntheticClass:0)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.os.MessageQueue.dispatchEvents(MessageQueue.java:293)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.os.MessageQueue.nativePollOnce(Native Method)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.os.MessageQueue.next(MessageQueue.java:335)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.os.Looper.loopOnce(Looper.java:162)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.os.Looper.loop(Looper.java:294)
04-11 03:24:32.562 923 16201 E DhcpClient: at android.os.HandlerThread.run(HandlerThread.java:67)
04-11 03:24:32.575 16147 16210 E bt_stack: [ERROR:gatt_api.cc(343)] Active Service Found: 00001849-0000-1000-8000-00805f9b34fb
04-11 03:24:32.580 597 762 E SupplicantStaIfaceHalAidlImpl: Can't call disableCurrentNetwork, SupplicantStaNetwork for iface=wlan0 is null.
04-11 03:24:32.581 597 762 E SupplicantStaIfaceHalAidlImpl: Can't call listNetworks, ISupplicantStaIface is null for iface=wlan0
04-11 03:24:32.581 597 762 E SupplicantStaIfaceHalAidlImpl: removeAllNetworks failed, got null networks
04-11 03:24:32.581 597 762 E WifiClientModeImpl[1330698:wlan0]: Failed to remove networks on exiting connect mode
04-11 03:24:32.581 597 762 E SupplicantStaIfaceHalAidlImpl: Can't call setPowerSave, ISupplicantStaIface is null for iface=wlan0
04-11 03:24:32.581 597 762 E SupplicantStaIfaceHalAidlImpl: Can't call setBtCoexistenceMode, ISupplicantStaIface is null for iface=wlan0
04-11 03:24:32.590 494 494 E libgoldfish-rild: IRadio HAL 1.0 not supported
04-11 03:24:32.642 1385 13747 E WakeLock: GCM_HB_ALARM release without a matched acquire!
04-11 03:24:32.665 15185 15389 E RealImapConnection: Failed to login, closing connection for conn21987611
04-11 03:24:32.674 15185 15389 E MessagingController: Could not process command 'com.fsck.k9.controller.MessagingControllerCommands$PendingMoveOrCopy@e1262b8'
04-11 03:24:32.674 15185 15389 E MessagingController: com.fsck.k9.mail.MessagingException: Unable to get IMAP prefix
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.getPrefixedName(RealImapFolder.kt:83)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.moveMessagesUsingMoveExtension(RealImapFolder.kt:323)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.moveMessages(RealImapFolder.kt:313)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.backend.imap.CommandMoveOrCopyMessages.moveOrCopyMessages(CommandMoveOrCopyMessages.kt:59)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.backend.imap.CommandMoveOrCopyMessages.moveMessages(CommandMoveOrCopyMessages.kt:15)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.backend.imap.ImapBackend.moveMessages(ImapBackend.kt:96)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.processPendingMoveOrCopy(MessagingController.java:921)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.processPendingMoveOrCopy(MessagingController.java:885)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingControllerCommands$PendingMoveOrCopy.execute(MessagingControllerCommands.java:67)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.processPendingCommandsSynchronous(MessagingController.java:744)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController$3.run(MessagingController.java:714)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.runInBackground(MessagingController.java:234)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.-$$Nest$mrunInBackground(Unknown Source:0)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController$1.run(MessagingController.java:174)
04-11 03:24:32.674 15185 15389 E MessagingController: at java.lang.Thread.run(Thread.java:1012)
04-11 03:24:32.674 15185 15389 E MessagingController: Caused by: java.net.UnknownHostException: Unable to resolve host "imap.gmail.com": No address associated with hostname
04-11 03:24:32.674 15185 15389 E MessagingController: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
04-11 03:24:32.674 15185 15389 E MessagingController: at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
04-11 03:24:32.674 15185 15389 E MessagingController: at java.net.InetAddress.getAllByName(InetAddress.java:1152)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapConnection.connect(RealImapConnection.kt:149)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapConnection.open(RealImapConnection.kt:85)
04-11 03:24:32.674 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.getPrefixedName(RealImapFolder.kt:81)
04-11 03:24:32.674 15185 15389 E MessagingController: ... 14 more
04-11 03:24:32.674 15185 15389 E MessagingController: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
04-11 03:24:32.674 15185 15389 E MessagingController: at libcore.io.Linux.android_getaddrinfo(Native Method)
04-11 03:24:32.674 15185 15389 E MessagingController: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:133)
04-11 03:24:32.674 15185 15389 E MessagingController: at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:222)
04-11 03:24:32.674 15185 15389 E MessagingController: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:133)
04-11 03:24:32.674 15185 15389 E MessagingController: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
04-11 03:24:32.674 15185 15389 E MessagingController: ... 19 more
04-11 03:24:32.681 15185 15389 E MessagingController: processPendingCommands
04-11 03:24:32.681 15185 15389 E MessagingController: com.fsck.k9.mail.MessagingException: Unable to get IMAP prefix
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.getPrefixedName(RealImapFolder.kt:83)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.moveMessagesUsingMoveExtension(RealImapFolder.kt:323)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.moveMessages(RealImapFolder.kt:313)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.backend.imap.CommandMoveOrCopyMessages.moveOrCopyMessages(CommandMoveOrCopyMessages.kt:59)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.backend.imap.CommandMoveOrCopyMessages.moveMessages(CommandMoveOrCopyMessages.kt:15)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.backend.imap.ImapBackend.moveMessages(ImapBackend.kt:96)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.processPendingMoveOrCopy(MessagingController.java:921)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.processPendingMoveOrCopy(MessagingController.java:885)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingControllerCommands$PendingMoveOrCopy.execute(MessagingControllerCommands.java:67)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.processPendingCommandsSynchronous(MessagingController.java:744)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController$3.run(MessagingController.java:714)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.runInBackground(MessagingController.java:234)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController.-$$Nest$mrunInBackground(Unknown Source:0)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.controller.MessagingController$1.run(MessagingController.java:174)
04-11 03:24:32.681 15185 15389 E MessagingController: at java.lang.Thread.run(Thread.java:1012)
04-11 03:24:32.681 15185 15389 E MessagingController: Caused by: java.net.UnknownHostException: Unable to resolve host "imap.gmail.com": No address associated with hostname
04-11 03:24:32.681 15185 15389 E MessagingController: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
04-11 03:24:32.681 15185 15389 E MessagingController: at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
04-11 03:24:32.681 15185 15389 E MessagingController: at java.net.InetAddress.getAllByName(InetAddress.java:1152)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapConnection.connect(RealImapConnection.kt:149)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapConnection.open(RealImapConnection.kt:85)
04-11 03:24:32.681 15185 15389 E MessagingController: at com.fsck.k9.mail.store.imap.RealImapFolder.getPrefixedName(RealImapFolder.kt:81)
04-11 03:24:32.681 15185 15389 E MessagingController: ... 14 more
04-11 03:24:32.681 15185 15389 E MessagingController: Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
04-11 03:24:32.681 15185 15389 E MessagingController: at libcore.io.Linux.android_getaddrinfo(Native Method)
04-11 03:24:32.681 15185 15389 E MessagingController: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:133)
04-11 03:24:32.681 15185 15389 E MessagingController: at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:222)
04-11 03:24:32.681 15185 15389 E MessagingController: at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:133)
04-11 03:24:32.681 15185 15389 E MessagingController: at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
04-11 03:24:32.681 15185 15389 E MessagingController: ... 19 more
04-11 03:24:32.686 16147 16147 E bt_btif : packages/modules/Bluetooth/system/main/bte_logmsg.cc:105 LogMsg: toggleProfile: Unknown service 255 being disabled
04-11 03:24:32.726 597 766 E WifiNl80211Manager: No valid wificond scanner interface handler for iface=wlan0
04-11 03:24:32.749 597 781 E AS.BtHelper: onBtProfileDisconnected: Not a profile handled by BtHelper A2DP_SINK
04-11 03:24:32.749 597 781 E AS.BtHelper: onBtProfileDisconnected: Not a profile handled by BtHelper LE_AUDIO_BROADCAST
04-11 03:24:32.759 597 762 E WifiDataStall: onDataConnectionStateChanged unexpected State: 4
04-11 03:24:32.778 1385 13747 E WakeLock: GCM_CONN_ALARM release without a matched acquire!
04-11 03:24:32.784 494 494 E libgoldfish-rild: IRadio HAL 1.0 not supported
04-11 03:24:32.811 494 494 E libgoldfish-rild: IRadio HAL 1.0 not supported
04-11 03:24:32.938 16147 16209 E bt_l2cap: packages/modules/Bluetooth/system/main/bte_logmsg.cc:105 LogMsg: L2CA_FreeLePSM: Invalid PSM=39 value!
04-11 03:24:33.011 16147 16183 E BtGatt.GattService: getService() - Service requested, but not available!
04-11 03:24:33.148 400 400 E android.hardware.bluetooth.service.default: unable to open /dev/rfkill: Permission denied
04-11 03:24:33.148 400 400 E android.hardware.bluetooth.service.default: rfkill unavailable
04-11 03:24:33.212 400 400 E android.hardware.bluetooth.service.default: Bluetooth remote service has died
04-11 03:24:33.212 400 400 E android.hardware.bluetooth-service.default: unlinkToDeath: removed reference to death recipient but unlink failed: DEAD_OBJECT
04-11 03:24:33.424 480 480 E bt_vhci_forwarder: virtio-console to vhci failed: No such device or address
04-11 03:24:33.427 480 480 E bt_vhci_forwarder: virtio-console to vhci failed: No such device or address
04-11 03:24:33.555 1406 18810 E RoleControllerServiceImpl: Default/fallback role holder package doesn't qualify for the role, package: com.google.android.gms.supervision, role: android.app.role.SYSTEM_SUPERVISION
04-11 03:24:33.556 1406 18810 E RoleControllerServiceImpl: Default/fallback role holder package doesn't qualify for the role, package: com.google.android.gms, role: android.app.role.SYSTEM_CALL_STREAMING
04-11 03:24:33.610 597 775 E AppOps : attributionTag VCN not declared in manifest of android
--------- beginning of crash
04-11 03:24:34.312 15185 15185 E AndroidRuntime: FATAL EXCEPTION: main
04-11 03:24:34.312 15185 15185 E AndroidRuntime: Process: net.thunderbird.android.debug, PID: 15185
04-11 03:24:34.312 15185 15185 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.widget.Toast.makeText(Toast.java:552)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at com.fsck.k9.ui.messagelist.MessageListFragment.checkCopyOrMovePossible(MessageListFragment.kt:1222)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at com.fsck.k9.ui.messagelist.MessageListFragment.onArchive(MessageListFragment.kt:1177)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at com.fsck.k9.ui.messagelist.MessageListFragment.access$onArchive(MessageListFragment.kt:78)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at com.fsck.k9.ui.messagelist.MessageListFragment$ActionModeCallback.onActionItemClicked(MessageListFragment.kt:2078)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.app.AppCompatDelegateImpl$ActionModeCallbackWrapperV9.onActionItemClicked(AppCompatDelegateImpl.java:3006)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.view.StandaloneActionMode.onMenuItemSelected(StandaloneActionMode.java:139)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:833)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:157)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:984)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:974)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:620)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.view.View.performClick(View.java:7659)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.view.View.performClickInternal(View.java:7636)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:30156)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:958)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:205)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.os.Looper.loop(Looper.java:294)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8177)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
04-11 03:24:34.312 15185 15185 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
04-11 03:24:34.378 432 528 E IPCThreadState: Binder transaction failure: 2185607/29189/-3
04-11 03:24:34.378 432 528 E BpTransactionCompletedListener: Failed to transact (-32)
04-11 03:24:34.384 597 679 E IPCThreadState: Binder transaction failure: 2185623/29189/-3
04-11 03:24:34.423 480 480 E bt_vhci_forwarder: virtio-console to vhci failed: No such device or address
04-11 03:24:34.427 480 480 E bt_vhci_forwarder: virtio-console to vhci failed: No such device or address
04-11 03:24:34.991 432 432 E BpTransactionCompletedListener: Failed to transact (-32)
04-11 03:24:35.421 480 480 E bt_vhci_forwarder: virtio-console to vhci failed: No such device or address
04-11 03:24:35.426 480 480 E bt_vhci_forwarder: virtio-console to vhci failed: No such device or address
04-11 03:24:35.500 19016 19016 E droid.bluetooth: Not starting debugger since process cannot load the jdwp agent.
04-11 03:24:35.547 597 762 E WifiChipAidlImpl: getMode failed with service-specific exception: android.os.ServiceSpecificException: (code 5)
04-11 03:24:35.547 397 415 E android.hardware.wifi-service: Unknown iface name: wlan0
04-11 03:24:35.547 397 415 E android.hardware.wifi-service: Unknown iface name: wlan0
04-11 03:24:35.549 597 762 E WifiChipAidlImpl: getMode failed with service-specific exception: android.os.ServiceSpecificException: (code 5)
04-11 03:24:35.550 397 415 E android.hardware.wifi-service: Unknown iface name: wlan0
04-11 03:24:35.550 397 415 E android.hardware.wifi-service: Unknown iface name: wlan0
04-11 03:24:35.551 397 415 E android.hardware.wifi-service: Failed to register radio mode change callback
04-11 03:24:35.552 397 415 E android.hardware.wifi-service: Failed to get SupportedIfaceCombinations matrix from legacy HAL: NOT_SUPPORTED
04-11 03:24:35.552 397 415 E android.hardware.wifi-service: Failed to set DFS flag; DFS channels may be unavailable.
04-11 03:24:35.566 597 762 E SupplicantStaIfaceHalAidlImpl: Can't call getKeyMgmtCapabilities, ISupplicantStaIface is null for iface=wlan0
04-11 03:24:35.566 597 762 E SupplicantStaIfaceHalAidlImpl: Can't call getWpaDriverCapabilities, ISupplicantStaIface is null for iface=wlan0
04-11 03:24:35.567 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.577 597 762 E WifiChipAidlImpl: enableStaChannelForPeerNetwork failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.580 597 766 E WifiStaIfaceAidlImpl: getBackgroundScanCapabilities failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.585 597 762 E WifiChipAidlImpl: setMultiStaUseCase failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.599 597 766 E WifiScanningService: wifi driver loaded received while already loaded
04-11 03:24:35.601 597 762 E WifiStaIfaceAidlImpl: setScanMode failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.604 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.609 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.612 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.614 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.615 597 762 E ApConfigUtil: Malformed channel value detected: java.lang.NumberFormatException: For input string: ""
04-11 03:24:35.617 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.617 597 762 E ApConfigUtil: Malformed channel value detected: java.lang.NumberFormatException: For input string: ""
04-11 03:24:35.618 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.618 597 762 E ApConfigUtil: Malformed channel value detected: java.lang.NumberFormatException: For input string: ""
04-11 03:24:35.755 4919 15717 E CellBroadcastConfigService: fails to setCellBroadcastRanges, result = 2
04-11 03:24:35.759 597 775 E AppOps : attributionTag VCN not declared in manifest of android
04-11 03:24:35.875 597 762 E WifiChipAidlImpl: getUsableChannels failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.879 597 762 E WifiStaIfaceAidlImpl: setScanMode failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.883 597 762 E WifiChipAidlImpl: setMultiStaUseCase failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.883 597 766 E WifiScanningService: wifi driver loaded received while already loaded
04-11 03:24:35.883 597 762 E WifiChipAidlImpl: setMultiStaPrimaryConnection failed with service-specific exception: android.os.ServiceSpecificException: (code 4)
04-11 03:24:35.916 597 775 E AppOps : attributionTag VCN not declared in manifest of android
04-11 03:24:35.943 597 762 E WifiScoringParams: Invalid frequency(-1), using 5G as default rssi array
04-11 03:24:35.957 19016 19082 E droid.bluetooth: [0411/032435.957393:ERROR:config.cc(106)] config_new: unable to open file '/data/misc/bluedroid/bt_remote_dev_info.conf': No such file or directory
04-11 03:24:35.958 19016 19082 E droid.bluetooth: [0411/032435.958005:ERROR:config.cc(106)] config_new: unable to open file '/data/misc/bluedroid/bt_remote_dev_info.bak': No such file or directory
04-11 03:24:35.958 19016 19082 E device_iot_config: packages/modules/Bluetooth/system/device/src/device_iot_config_int.cc:89 device_iot_config_module_init: Unable to load bak file; creating empty config.
04-11 03:24:35.978 845 845 E IPCThreadState: Binder transaction failure: 2189057/29189/-22
04-11 03:24:36.121 0 0 E servicemanager: VINTF HALs require names in the format type/instance (e.g. some.package.foo.IFoo/default) but got: suspend_control
04-11 03:24:36.096 19016 19092 E btaa : packages/modules/Bluetooth/system/gd/btaa/android/activity_attribution.cc:107 impl: No suspend control service available.
04-11 03:24:36.097 400 400 E android.hardware.bluetooth.service.default: unable to open /dev/rfkill: Permission denied
04-11 03:24:36.097 400 400 E android.hardware.bluetooth.service.default: rfkill unavailable
04-11 03:24:36.200 19016 19086 E bt_btif_storage: packages/modules/Bluetooth/system/btif/src/btif_storage.cc:622 btif_storage_get_adapter_property: btif_storage_get_adapter_property: Controller not ready! Unable to return Bluetooth Address
04-11 03:24:36.201 19016 19101 E BluetoothServiceJni: adapter_properties_callback: Status 1 is incorrect
04-11 03:24:36.400 19016 19086 E bt_btif_storage: packages/modules/Bluetooth/system/btif/src/btif_storage.cc:626 btif_storage_get_adapter_property: btif_storage_get_adapter_property: Controller ready!
04-11 03:24:36.423 19016 19016 E a2dp_vendor_ldac: packages/modules/Bluetooth/system/stack/a2dp/a2dp_vendor_ldac.cc:1422 init: init: cannot load the decoder
04-11 03:24:36.424 19016 19016 E a2dp_vendor_ldac: packages/modules/Bluetooth/system/stack/a2dp/a2dp_vendor_ldac.cc:1422 init: init: cannot load the decoder
04-11 03:24:36.424 19016 19016 E a2dp_vendor_ldac: packages/modules/Bluetooth/system/stack/a2dp/a2dp_vendor_ldac.cc:1422 init: init: cannot load the decoder
04-11 03:24:36.425 19016 19016 E a2dp_vendor_ldac: packages/modules/Bluetooth/system/stack/a2dp/a2dp_vendor_ldac.cc:1422 init: init: cannot load the decoder
04-11 03:24:36.425 19016 19016 E a2dp_vendor_ldac: packages/modules/Bluetooth/system/stack/a2dp/a2dp_vendor_ldac.cc:1422 init: init: cannot load the decoder
04-11 03:24:36.425 19016 19016 E a2dp_vendor_ldac: packages/modules/Bluetooth/system/stack/a2dp/a2dp_vendor_ldac.cc:1422 init: init: cannot load the decoder
04-11 03:24:36.518 19016 19016 E AvrcpTargetService: Please use AVRCP version 1.6 to enable cover art
04-11 03:24:36.520 1029 1029 E TelephonyProvider: internal sim-specific settings backup data file does not exist. Aborting restore
04-11 03:24:36.595 597 1672 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
04-11 03:24:36.700 597 762 E WifiDataStall: onDataConnectionStateChanged unexpected State: 1
04-11 03:24:36.701 597 762 E MboOceController: onDataConnectionStateChanged unexpected State: 1
04-11 03:24:36.704 597 775 E AppOps : attributionTag VCN not declared in manifest of android
04-11 03:24:36.708 597 775 E AppOps : attributionTag VCN not declared in manifest of android
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: No service published for: ethernet
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: android.os.ServiceManager$ServiceNotFoundException: No service published for: ethernet
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.os.ServiceManager.getServiceOrThrow(ServiceManager.java:166)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.SystemServiceRegistry$139.createService(SystemServiceRegistry.java:1872)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.SystemServiceRegistry$CachedServiceFetcher.getService(SystemServiceRegistry.java:1971)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.SystemServiceRegistry.getSystemService(SystemServiceRegistry.java:1645)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.ContextImpl.getSystemService(ContextImpl.java:2212)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.content.ContextWrapper.getSystemService(ContextWrapper.java:934)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering.isEthernetSupported(Tethering.java:1582)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering.makeSupportedDownstreams(Tethering.java:2550)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering.updateSupportedDownstreams(Tethering.java:2524)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering.updateConfiguration(Tethering.java:546)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering.lambda$new$3(Tethering.java:345)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering.$r8$lambda$bts3FsOwVdwDhrwMjvAr9kV3Jgs(Tethering.java:0)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.Tethering$$ExternalSyntheticLambda7.accept(R8$$SyntheticClass:0)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at com.android.networkstack.tethering.util.VersionedBroadcastListener$Receiver.onReceive(VersionedBroadcastListener.java:103)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1802)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.LoadedApk$ReceiverDispatcher$Args.$r8$lambda$gDuJqgxY6Zb-ifyeubKeivTLAwk(Unknown Source:0)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.os.Handler.handleCallback(Handler.java:958)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.os.Handler.dispatchMessage(Handler.java:99)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.os.Looper.loopOnce(Looper.java:205)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.os.Looper.loop(Looper.java:294)
04-11 03:24:36.720 923 1010 E SystemServiceRegistry: at android.os.HandlerThread.run(HandlerThread.java:67)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in MessageListFragment.kt at checkCopyOrMovePossible (line 1222), called by onArchive (line 1177), and compare that path with the reported discard-and-back sequence. Try to reproduce the crash using the listed steps and inspect whether the null context occurs there; done means the sequence no longer crashes with a NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100