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
Instabug overrides default RxJava error handler #126
Comments
Hey @linean Thanks for reaching out. We will look into this and get back to you as soon as possible. |
I'm also seeing this in 8.0.9. The Instabug error handler set on |
Hey all, Can you try to add a
|
We have the same issue on 8.0.9. Just spent a couple hours on figuring out why all our network call subscriptions are never reached. |
@Korazy it works like this. But this is expected, because observer handles error by itself, and |
As a workaround, it's possible to clear the error handler after initialising Instabug: |
And even better is to first get current handler :)
|
We currently have a fix that's pending review and testing at the moment. I will make sure to update you soon :) |
Hey all, can you please use this snapshot and let me know if it fixes the issue for you? Snapshot version: 8.0.11.4-SNAPSHOT (must set compileSdkVersion to 28)
|
Hey all, did the snapshot fix the issue for you? |
Hi @Korazy. We've noticed a related issue. The Instabug SDK (8.0.9) is setting a default exception handler, even though we're configuring the SDK with |
Hey @jdamcd Would you be able to explain the issue further? |
@jdamcd this is exact same thing that I've described :) |
Sure. We've observed an issue with |
Hey all, Apologies for taking some time on this, I just want to let you know that the issue is still being investigated, and we'll be reaching out to you as soon as we get a hand on it. Thank you for your patience. |
Hey all, While we do indeed set our handlers, we do forward the uncaught exception so that it goes to its usual follow-up and this shouldn't affect anything in this regard. We also don't really fail silently or prevent apps from crashing. Does that make sense? |
What about if someone is using custom exceptions handler, will Instabug overrides it silently? And sorry for asking, but I'm lost, what is the status of this issue? |
@Korazy Here's a sample project to demonstrate that initialising the Instabug SDK alters RxJava behaviour: https://github.com/jdamcd/instabug-rx-issue |
Out of curiousity, did the snapshot I sent before not fix the issue for you? |
It fixes the core issue since no |
@Korazy 8.0.11.4-SNAPSHOT works for me :) |
@jdamcd would you be able to try this snapshot? |
@Korazy |
Awesome! Glad everything is working out now 😄 |
Hey @Korazy, could you update here when those fixes make it into a stable build? Looks like 8.0.12 & 8.0.13 from last week still have the issues. Thanks! |
Hi @Korazy , I encounter the same issue, could we have an update ? Thanks for your help ! |
Hello 👋 Same here, when is the next stable build with this fix? Cheers! |
Any news on when this fix will be included in a stable release @Korazy? |
I have same issue in in 8.1.2 version |
Hi @Axrorxoja , Thanks for reporting this. We think that this issue is not related to the one mentioned in the thread from the beginning. Can you double check it? Also, You should be sure that you are using the latest version of |
Hi @mzelzoghbi thank you for feedback |
Awesome! Glad everything is working out now 😄 |
Instabug automatically overrides RxJava error handler by calling
RxJavaPlugins.setErrorHandler()
in initialization. Because of that OnErrorNotImplementedException is not throwed anymore and there are no logs in console.Steps to Reproduce the Problem
Run this code anywhere in the app:
Completable.fromAction(()-> { throw new RuntimeException(); }).subscribe();
Expected Behavior
App should throw:
Actual Behavior
Nothing happens - no logs in console
Instabug integration code
Instabug.Builder(application, "my_token") .setInvocationEvents(InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT, InstabugInvocationEvent.SHAKE) .setReproStepsState(State.ENABLED) .setViewHierarchyState(Feature.State.ENABLED) .build()
SDK Version
8.0.7
Android Version
Any
Device Model
Any
[Optional] Project That Reproduces the Issue
The text was updated successfully, but these errors were encountered: