immobiliare / immobiliare/RealFlags
[Bug]: instance! crashes sometimes
- Dominant language
- Swift
- Stars
- 197
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
### Platform Version
iOS 16
### SDK Version
3.5
### Xcode Version
Xcode 14.3
### Steps To Reproduce
Race condition, just try to call getValueForFlag right after instantiating
### Expected Behavior
The entire app should not crash. Probably better not to use ! at all
### Actual Incorrect Behavior
The app crashes occasionally. I put the getValueForFlag in a Task so it gets delayed, which seems to help.
Contributor guide
Research direction
Start at the getValueForFlag entry point and trace how the instance is initialized before that call. Reproduce the issue on iOS 16 with SDK 3.5 and Xcode 14.3 by calling it immediately after instantiation, then verify that repeated immediate calls no longer crash and that the delayed Task workaround is unnecessary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100