Crash on background queue .publisher
effect subscription
#3400
Labels
bug
Something isn't working due to a bug in the library.
.publisher
effect subscription
#3400
Description
A crash is happening in the
CurrentValueRelay.request
function when I have a.publisher
effect that is subscribed to on a background queue:If I remove/comment the
backgroundQueue
subscription, this crash no longer happens.I also tried to isolate the issue in a sample project by simply having a
.publisher
effect that does some work in a background queue but there the crash was not reproducible either...Will keep investigating and provide a barebones sample project with the crash replication as soon as i can.
Also worth sharing that the
recordingsService.recordings
is a TCA store publisher (store.publisher.recordings.eraseToAnyPublisher()
).Checklist
main
branch of this package.Expected behavior
The effect's inner publisher does some work in the background queue and sends an action back to the reducer (in the main queue) without crashing.
Actual behavior
Here's a stacktrace that i recovered from our crash reporter.
Reproducing project
Will append one as soon as I'm able to reproduce the issue in an isolated project.
The Composable Architecture version information
1.15.0
Destination operating system
iOS 18
Xcode version information
Xcode 16.0
Swift Compiler version information
The text was updated successfully, but these errors were encountered: