-
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
[2.1.15] map method called with null #6059
Comments
Version 2.1.15 did not touch any of the operators you listed and without code demonstrating the problem (you say you have a test reliably failing), we can't do much about it. |
OK, I tried debugging with what I thought the problem might be, no luck so far. Here's a couple of stacktraces in the meantime if you can figure out something from them:
|
Is dispose/cancel involved in your flows? |
Well, we do have |
I've identified a race condition which can happen when the flow is getting disposed the same time the Maybe succeeds, resulting in a null item being emitted. It would be great if you could check if there is a dispose/cancel happening in your test as well. |
Can you verify the crash is resolved with the latest snapshot (give it an hour and check https://oss.jfrog.org/libs-snapshot/io/reactivex/rxjava2/rxjava/2.2.0-SNAPSHOT/ for binaries for today)? repositories {
maven { url 'https://oss.jfrog.org/libs-snapshot' }
}
dependencies {
compile 'io.reactivex.rxjava2:rxjava:2.2.0-SNAPSHOT'
} |
Sure, I'll try it out, thanks for the quick response, as always! Its funny how I seem to always be catching some horrible edge-case race conditions like this one and the one before it that you've mentioned in the PR. :D |
@akarnokd - I can confirm that |
Great. How urgent is for you to have this fix in a release version (next would be in a month)? |
Well, I can’t upgrade as this is a big regression in our case so we’ll stay on 2.1.14 until the next release. Not a big deal but releases are free, so why not release a quick patch version?
|
I'd wait a couple of days as most bugs are reported next to a release. @vanniktech @artem-zinnatullin @davidmoten would you be fine with 2.1.16 as a patch release next Tuesday? |
Sure. Releases are free. |
I have something like:
This
x
isnull
sometimes (our tests reproduce it consistently in one case). Didn't happen on2.1.14
. I can't give more information for now, just to let you know there is a problem. If you can't figure it out soon, I'll try to create some reproduction.The text was updated successfully, but these errors were encountered: