Repository navigation
Conversation
The scheduler's event handler captured self as unowned, ran on a background queue and slept after notifying observers. If the store was released in the meantime the handler aborted in swift_abortRetainUnowned. The shared store in the app lives for the whole process, so this mostly shows up in tests that create short-lived stores. Capture self weakly and return early if the store is gone. Adds a regression test that crashes the test process without the change. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The scheduler's event handler in
AppDataStorecapturedselfasunowned, runs on a background queue, and sleeps after notifying observers. If the store is released in the meantime, the handler aborts inswift_abortRetainUnowned. The shared store lives for the whole process, so this mostly affects tests that create short-lived stores.The handler now captures
selfweakly and returns early.Adds a regression test that crashes the test process without the change (verified three times) and passes with it.
Based on current
main. The only other failure in the suite isVersionParserTest.testEmptyVersionParsing, which already fails onmain.🤖 Generated with Claude Code