-
Notifications
You must be signed in to change notification settings - Fork 58
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
Subscription crashing application due to "java.util.NoSuchElementException" exception #114
Comments
@SahajRana Sorry for the inconvenience caused. By any chance did you encounter the following log message in your Logcat?
Can you post a code snippet where you create and invoke the subscription with a callback? |
PR #117 fixes this issue. The next upcoming release should include this fix. |
@kvasukib thanks for the great response!, After I opened the issue I downgraded the version and then, after your request I changed it back to the newer version. But now, I'm not able to find the issue anymore. I think there could be some post upgrading files problem. I will let you guys know if I find it again, cheers! |
@SahajRana This fix has been released in |
@kvasukib I think this problem is resolved but now I'm getting another error and then app is crashed
|
@kvasukib @cbommas @muellerfr guys, the above error is pretty frequent and crashing an idle application after some time of opening. |
@SahajRana |
@cbommas, @kvasukib, @muellerfr Hey, this error is not easily trackable as it appears randomly, below is the code where the error is
Error::
|
@cbommas @kvasukib please have a look as we are moving to production pretty soon so it would be a real problem if the application crashes! |
I'm encountering the same issue with the version
Downgrading to |
The latest release of the SDK, 2.7.8, has logic to protect against this crash. The crash appears to be due to a race condition between a subscription cancellation and subscription re-connection logic. I wasn't able to reproduce this locally, as this is somewhat of a tricky one to reproduce. Could give the latest rev a try and let me know if resolves the issue? |
@cbommas it seems that |
Excellent! thank you for confirming. I will go ahead and close this out. Please feel free to post back on this thread if you or @SahajRana run into further issues. |
@cbommas yes, it seems from my side as well that it's fixed. 👍 |
Describe the bug
Subscription crashing application due to "AppSyncSubscriptionCall$Callback.onCompleted()" on a null object reference, after some time of using subscription on cancel.
Error
Environment(please complete the following information):
Device Information (please complete the following information):
-Checked on Lolipop and Nougat
I think this is happening due to the below closing of subscription.
It was working on 2.6.+ version without any problem, I just updated it to 2.7+ version and app started crashing with the above error.
The text was updated successfully, but these errors were encountered: