-
-
Notifications
You must be signed in to change notification settings - Fork 270
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
Fatal Exception: MarshmallowNetworkObservingStrategy.java line 80 #412
Comments
Thanks for reporting that. |
I updated the error report. It happens at a random time. There is no such problem on my device. |
Ok, I'll have a look at this. |
New Log;
|
I was able to reproduce this —
I thought that this would be OK, as I hadn't subscribed to anything, but I think what happened there though is that in the call to In normal testing I wasn't hitting any issues with this, but as per this post — it looks like the upper limit on NetworkCallbacks is 100. If I toggle between two activities that instantiate (but don't use) I think now that I know why I'm hitting it it should be straightforward to avoid but perhaps moving return connectivitySubject
.toFlowable(BackpressureStrategy.LATEST)
.doOnSubscribe(__ -> manager.registerNetworkCallback(request, networkCallback))
.doOnCancel(new Action() {
@Override public void run() {
tryToUnregisterCallback(manager);
tryToUnregisterReceiver(context);
}
})
// … EDIT: Happy to provide some example code to help reproduce if that's useful, (or a PR if the above suggestion makes sense)? |
Hi @another-dave. Thanks for your comment. I didn't know about this limitation. If applying this slight change will prevent these errors or will reduce them, I think it's worth introducing it into the code-base. |
@pwittchen do you have any updates about this issue? |
I'm facing same issue |
BUG
LOG
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: