Crash while popping when using NavigationStackStore #3664
jrodriguezmedina
started this conversation in
General
Replies: 1 comment
-
Hi @jrodriguezmedina, I'm sorry but it's really hard to say without a reproduction of the problem. It's also worth mentioning that we have seen this exact crash in vanilla SwiftUI too. It is possible to push/pop to a navigation stack in a certain order/cadence that causes the stack to get into an inconsistent state. Since it isn't clear this is an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hi!
We found this crash in the Xcode Organizer, we don't have data about the steps to reproduce, but looks like while popping a view from a
NavigationStackStore
, thenewPath.count
was greater than the number of elements inviewStore.path
, causing anIndex out of range
failure.Checklist
main
branch of this package.Expected behavior
The view can be popped without crashing.
Actual behavior
The app crashed when a view is popped.
Reproducing project
No response
The Composable Architecture version information
0.57.0
Destination operating system
iOS 18.2.1
Xcode version information
Xcode 16.2
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions