Freeze in scrolling message list, null parentData.layoutOffset #725
Labels
a-msglist
The message-list screen, except what's label:a-content
a-sticky_header
Our `sticky_header` library
Milestone
Using the app today, I was scrolling in the message list and then it froze — stopped responding to my attempts to scroll.
I went and connected the phone to my desktop and looked at logcat. It shows the following stack trace:
Then over time after that there's this error, again and again many times:
There's a fresh burst of those any time I touch the screen and try to scroll, or when
The stack trace shows the exception is from our
sticky_header
library. The null value in question seems to be theparentData.layoutOffset
below, quoting some code ending on the line that has the!
that blew up:So this function is assuming that the children have their
parentData
all set up, includinglayoutOffset
, but there's a child that doesn't have that. I haven't debugged further.Further observations from the context and symptoms:
Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
in the log.So my best guess for how to potentially reproduce the issue is:
PerAccountState
get swapped out for a new one. (To do this without waiting 10 minutes, one can fiddle with the retry logic inUpdateMachine.poll
.)(Meanwhile the "Instance of 'DiagnosticsProperty'" error messages are a bit of a mystery. Those seem like there's probably a bug in error-reporting somewhere, which would be good to fix in order to better enable debugging other bugs, like this one.)
The text was updated successfully, but these errors were encountered: