Closed filip-misadin closed 4 months ago
Attempting to fix this here 🙏🏼
With the release of Compose Material 1.7.0-alpha04, the Material team has added a new artifact: androidx.compose.material:material-navigation
, which fully replaces Accompanist Navigation Material.
As such, we are closing all issues here on Accompanist and will be fully deprecating Accompanist Navigation Material in an upcoming release.
A number of issues were fixed as part of the migration, but if you're still seeing an issue, please file an issue with a sample project that reproduces your issue and the Material team will take a look.
Since the issue is present in Compose Material 1.7.0-alpha04 too, can it be moved over?
We have some crashes that, as far as I can see when looking at the logs, happen when a user goes back on any of our bottom modals. The version of Navigation Material library we currently use is
0.32.0
. I looked into the newest version (0.34.0
) and by looking into the code I think we would have the same crashes with that version too, even though the code changed to some degree.I tried a lot of ways to reproduce this crash, but I didn't succeed in reproducing it. That's why I can't know for sure why this happens and what is the edge case that keeps popping up. This crash happens to around 1% of our users, so it's not that uncommon.
This is the crash stack trace:
As can be seen in the stack trace above, the crash happens when executing these lines:
This crash doesn't make sense to me, since
state.popWithTransition(retainedEntry!!, false)
shouldn't execute ifretainedEntry
isnull
. Can someone please look into this and check if it can be fixed by adding an additional check inside ofBackHandler
?