Crashing on `func unsubscribe(_ key: DisposeKey)` of `ReplaySubject` in `RxSwift`?

51 Views Asked by At

Everything goes well on my framework demo util I vendored my framework to our app project which is big, theunsubscribe:_ method that I mentioned in title was called. I searched the whole RxSwift source code and I found that method is not called anywhere, which was wired.The back trace is shown as below:

1

1

What's even stranger is when I rename that unsubscribe method, it was still called and abstract method calling fatalError.

My subject is defined as:

private let funcListPipe = ReplaySubject<[FuncItem]?>.create(bufferSize: 1)

And crashing when I send a next element through it:

funcListPipe.onNext(nil)
0

There are 0 best solutions below