sindrenm
11/26/2021, 8:33 AMView.measure
crashes in Accompanist (probably accompanist-pager) starting on v0.19.0? Suspect it comes from the refactor to using a LazyList
introduced in that version, and we're seeing it across multiple devices in production, but we're unable to reproduce it locally, and we're a little lost on how to debug this. 😅
GitHub issue: https://github.com/google/accompanist/issues/847Albert Chang
11/26/2021, 9:53 AMSizeModifier
appears in the stack trace but Pager doesn't seem to use any size modifiers. Are you using size modifiers (`Modifier.size()`/`Modifier.width()`/`Modifier.height()` or those with required
) which constrain the same axis as Pager in your code? If so, can you post it?Zoltan Demant
11/26/2021, 9:59 AM0.21.3-beta
(not sure if I accidentally fixed it locally, or the updates did). Care to share some code?Stylianos Gakis
11/26/2021, 10:07 AMLucien Guimaraes
11/26/2021, 10:14 AMMentioned here that we only got it however on a very specific API-device combo, worked fine on all the other devices I tried it on, even on another Android 9 Samsung device.That's strange, for me the issue is also on Android 11 / 10 / 8.1.0 and on many devices. Here's some screenshots of the issue from Sentry (before I rollback to Accompanist 0.18.0).
Albert Chang
11/26/2021, 10:44 AMLucien Guimaraes
11/26/2021, 11:31 AMsindrenm
11/26/2021, 11:31 AMInfinity
(== Int.MAX_VALUE
), in which case it should use the minWidth
instead. In our crashes, we're seeing Int.MAX_VALUE - 127
, however.Albert Chang
11/26/2021, 1:51 PMsindrenm
11/26/2021, 2:33 PM