-
Notifications
You must be signed in to change notification settings - Fork 8
Adding Bugsnag NDK causes some instrumentation tests to crash. #10
Comments
@maltzj I've created a branch to reproduce this. I've tried running the test both with the
In RxJava2 there was a change which means it's not permitted to emit null, and attempting to do so will result in a call to
Let me know if I've got the wrong end of the stick here and I can look into this further. |
That may be true in RxJava2 land; however, we're currently living in RxJava 1 land (at least for this code). Also, this code doesn't crash in our non-test application, nor does it consistently fail, which is what I'd expect if there were an RxJava bug. |
Ah right, my bad! I'll try again with RxJava1 and post results. |
The following test reproduces the issue 100% of the time:
Interestingly using |
gentle poke |
@maltzj we've tracked it down to a couple of thread safety issues when adding breadcrumbs, I've linked a PR which partially fixes this if you're interesting in an explanation. Still investigating a more general fix that will prevent this altogether. |
Curious if there are any plans to move forward on this, or is it going to be marked as won'tfix? |
Expected behavior
Bugsnag ndk doesn't crash when under test
Observed behavior
When I call
leaveBreadcrumb
with bugsnag ndk support enabled, my app will sometimes crash while testing.Steps to reproduce
Add
from a Activity under instrumentation test. This doesn't happen all the time, but it's pretty consistently reproducible on this specific test.
Version
NDK 1.1.2 w/ Bugsnag sdk 4.3.1
Additional information
I THINK this is only due to the ndk.
Can't comment on Issues?
Some users have been unable to comment on Github issues when an adblocker extension is enabled.
We recommend temporarily disabling the extension, or if that fails, contacting [email protected].
The text was updated successfully, but these errors were encountered: