-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"java.lang.IllegalArgumentException: n >= 0 required" when unsubscribing #3166
Comments
Could you post the code (or equivalent) which exhibits this problem? Looks like there is a flatmap followed by a replay. |
Found the problem. Fix in #3167. |
Awesome, thanks for the speedy fix. As a workaround until there's an update to RX, is it be safe to wrap the unsubscribe call in a catch statement? I'd be discarding the entire source observable at that point also. |
The bug can leave the operator in inconsistent state and could stop replaying altogether. |
Fixed via #3167 |
Saw this exception in crash logs, but haven't been able to reproduce it. Any ideas what the cause is?
https://github.com/ReactiveX/RxJava/blob/v1.0.14/src/main/java/rx/internal/operators/OperatorMerge.java#L128
The text was updated successfully, but these errors were encountered: