You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is setup with ViewController -> ChildViewController -> GrandChildViewController
The leak occurs only when ChildViewController sinks to the postsSubject
It seems that if a publisher is bound somewhere else, and then that same publisher is used with a withLatestFrom a retain cycle is introduced and Combine internally crashes
Seems like the DemandBuffer doesn't correctly forward completion information upstream if the upstream Subscriber is being used somewhere else which is why we are crashing in WithLatestFrom and share(replay: 1)
The text was updated successfully, but these errors were encountered:
Repro Video
Sample Project
This project is setup with
ViewController
->ChildViewController
->GrandChildViewController
The leak occurs only when
ChildViewController
sinks to thepostsSubject
It seems that if a publisher is bound somewhere else, and then that same publisher is used with a
withLatestFrom
a retain cycle is introduced and Combine internally crashesSeems like the
DemandBuffer
doesn't correctly forward completion information upstream if the upstream Subscriber is being used somewhere else which is why we are crashing in WithLatestFrom and share(replay: 1)The text was updated successfully, but these errors were encountered: