thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Message body not displayed when rotating screen orientation from portrait to landscape

Open timovanroermund opened this issue 7 months ago • 10 comments

Checklist

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

App

Thunderbird for Android

App version

18.0

Where did you get the app from?

Google Play

Android version

16

Device model

Samsung Galaxy S23

Steps to reproduce

  1. Hold the phone ion portrait mode
  2. Open/display a message
  3. Rotate the phone to landscape
  4. Now the message body isn't displayed
  5. Scroll a bit
  6. The message body appears

It doesn't seem to happen with all messages. I can reproduce it (at least) with larger messages that have a large text-only body.

Not sure if it matters. But "General settings > Display > Show split-screen" is set to 'Never'.

Expected behavior

The message body appears immediately after rotating the phone.

Actual behavior

The message only appears after scrolling in the body.

Logs

No response

timovanroermund avatar Apr 27 '26 07:04 timovanroermund

I was not able to reproduce this issue. I opened messages with larger text-only bodies in portrait orientation, rotated the device to landscape while the message was displayed, and the message body remained visible immediately after rotation without needing to scroll. I also checked with split-screen display disabled, and the behavior was the same.

Tested on TfA 18.0 on Pixel 7(Android 16) and Oppo A58(Android 14)

ramonagavrilescu avatar May 25 '26 07:05 ramonagavrilescu

I've not seen it anymore recently.

My phone was recently updated from OneUI 8 to 8.5 -- maybe this was an OS-level bug that has been fixed(?).

I'll keep monitoring for a while and will try to share more details if I have a case that can be reproduced. Otherwise, I'll close this bug report.

timovanroermund avatar May 25 '26 09:05 timovanroermund

Hi @timovanroermund, thanks for confirming you are not experiencing this issue anymore. I will close this ticket, and if you start experiencing it again, please let us know so we can re-open it.

rafaeltonholo avatar May 25 '26 13:05 rafaeltonholo

Hi @rafaeltonholo, I've experienced the same issue again. I've attached an e-mail that triggers this behavior. I've also attached it's body as separate (text) file.

Hence, please reopen this issue.

test.eml test-body.txt

timovanroermund avatar Jun 28 '26 08:06 timovanroermund

We aren't able to reproduce this, we are opening this up to the community if anyone can help us reproduce this it would be helpful.

jbott-tbird avatar Jul 08 '26 15:07 jbott-tbird

Hereby the settings I'm using. Maybe that could be helpful to reproduce this issue?

thunderbird_settings_export_2026-07-17.k9s.txt

Another hint is that I'm primarily seeing this with text-only mails sent by logwatch. These are rather lengthy and have a specific content that might trigger this behavior.

timovanroermund avatar Jul 17 '26 10:07 timovanroermund

I today upgraded to v21.0 and it seems that this behaviour had been fixed.

Possibly it's related to this item in the changelog:

"Application could crash when rendering long messages (#11148)"

I'll monitor a few more days to see if it indeed has been fixed.

timovanroermund avatar Jul 22 '26 22:07 timovanroermund

Unfortunately I noticed the same behavior again, so the issue still exists.

I also learned that Thunderbird has a built-in feature to save a debug log; this may be useful to find out what's happening. Attached you find a log that was taken while rotating the phone a few times between portrait and landscape mode, while displaying a message that triggers this behavior.

k9mail-logs.txt

timovanroermund avatar Jul 26 '26 10:07 timovanroermund

And hereby a second log:

k9mail-logs.txt

I captured this one as follows:

  1. Go to settings, enable debug logging
  2. Go back to the folder view and open the message that triggers this behavior --> the message is now visible in portrait mode
  3. Rotate the phone to landscape --> the message body is now NOT visible
  4. Wait a few seconds --> the message remains invisible
  5. Scroll down in the message body --> the message body now becomes visible in landscape mode
  6. Go back to settings, disable debug logging and export the log

What I noticed in this log, is a long sequence of "onDisplayChanged" events for "VRI[MessageHomeActivity]", switching between different DisplayStates, which may have happened during the pause (item 4 above):

07-26 10:40:24.929 18368 18368 I VRI[MessageHomeActivity]@343340b: handleAppVisibility mAppVisible = true visible = false
07-26 10:40:24.929 18368 18368 D VRI[MessageHomeActivity]@343340b: visibilityChanged oldVisibility=true newVisibility=false
07-26 10:40:24.937 18368 19455 D HWUI    : CacheManager::trimMemory(20)
07-26 10:40:24.941 18368 18368 I VRI[MessageHomeActivity]@343340b: Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) relayoutAsync=false req=(1080,2340)8 dur=3 res=0x2 s={false 0x0} ch=true seqId=0
07-26 10:40:24.941 18368 18368 D VRI[MessageHomeActivity]@343340b: Not drawing due to not visible. Reason=!mAppVisible && !mForceDecorViewVisibility
07-26 10:40:24.943 18368 18368 I VRI[MessageHomeActivity]@343340b: stopped(true) old = false
07-26 10:40:24.943 18368 18368 D VRI[MessageHomeActivity]@343340b: WindowStopped on net.thunderbird.android/com.fsck.k9.activity.MessageHomeActivity set to true
07-26 10:40:24.943 18368 19455 D HWUI    : CacheManager::trimMemory(20)
07-26 10:40:24.950 18368 18368 I VRI[MessageHomeActivity]@343340b: Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) relayoutAsync=false req=(1080,2340)8 dur=2 res=0x2 s={false 0x0} ch=false seqId=0
07-26 10:40:24.954 18368 18368 D BBA2    : setIsFg isFg = false; delayValue 3999ms
07-26 10:40:28.630 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=2 newDisplayState=1
07-26 10:40:39.252 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=1 newDisplayState=2
07-26 10:40:39.271 18368 18368 D Choreographer: CoreRune.SYSPERF_ACTIVE_APP_BBA_ENABLE : stop animation in background states
07-26 10:40:41.564 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=2 newDisplayState=1
07-26 10:40:50.688 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=1 newDisplayState=3
07-26 10:41:01.390 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=3 newDisplayState=4
07-26 10:41:11.874 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=4 newDisplayState=3
07-26 10:41:17.385 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=3 newDisplayState=4
07-26 10:41:18.313 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=4 newDisplayState=3
07-26 10:41:23.834 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=3 newDisplayState=4
07-26 10:41:28.242 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=4 newDisplayState=3
...
...
07-26 11:10:00.176 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=3 newDisplayState=4
07-26 11:10:00.944 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=4 newDisplayState=3
07-26 11:10:01.042 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=3 newDisplayState=1
07-26 11:14:57.033 18368 18368 I VRI[MessageHomeActivity]@343340b: onDisplayChanged oldDisplayState=1 newDisplayState=2
07-26 11:15:00.913 18368 18368 I VRI[MessageHomeActivity]@343340b: handleAppVisibility mAppVisible = false visible = true
07-26 11:15:00.925 18368 18368 I VRI[MessageHomeActivity]@343340b: stopped(false) old = true
07-26 11:15:00.925 18368 18368 D VRI[MessageHomeActivity]@343340b: WindowStopped on net.thunderbird.android/com.fsck.k9.activity.MessageHomeActivity set to false
07-26 11:15:00.930 18368 18368 D BBA2    : setIsFg isFg = true

In addition, I noticed the following (maybe unrelated):

07-26 11:15:00.984 18368 18368 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
07-26 11:15:00.984 18368 18368 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.

timovanroermund avatar Jul 26 '26 10:07 timovanroermund

Hi @rafaeltonholo, is this information useful? Anything else I can/should provide to help root cause this?

timovanroermund avatar Aug 01 '26 10:08 timovanroermund