-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Freeze in scrolling message list, null parentData.layoutOffset #725
Comments
Moving this to the post-launch milestone because it's only ever happened the one time as far as I know, and it's been a couple of months since then. If we see it another time or two, or hear a user report of it, we can bump it back up in priority. |
Rereading my report above in the light of having discovered #1309, I'm fairly confident now that this is another symptom of the same underlying bug. So I'll mark the same fix as fixing both of these. |
Fixes zulip#1309. Fixes zulip#725. This is necessary when scrolling back to the origin over items that grew taller while off screen (and beyond the 250px of near-on-screen cached items). For example that can happen because a message was edited, or because new messages came in that were taller than those previously present.
Fixes zulip#1309. Fixes zulip#725. This is necessary when scrolling back to the origin over items that grew taller while off screen (and beyond the 250px of near-on-screen cached items). For example that can happen because a message was edited, or because new messages came in that were taller than those previously present.
Fixes #1309. Fixes #725. This is necessary when scrolling back to the origin over items that grew taller while off screen (and beyond the 250px of near-on-screen cached items). For example that can happen because a message was edited, or because new messages came in that were taller than those previously present.
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: