-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
WIN DEATH when requesting friends list #319
Comments
I don't know anything about sdk,I am try to learn Sent from my Sony Xperia™ smartphone ---- Emanuele Ricci wrote ---- I got a really strange crash. User login into the app correctly. When I try to perfrom a simple request (get the user's friends list) my app crash in a brutal way. Here the function that make the app crash: private void fetchUserFriends() {
//Gather all friend list
Session session = Session.getActiveSession();
if( session != null && session.isOpened() ) {
Request.newMyFriendsRequest(Session.getActiveSession(), new Request.GraphUserListCallback() {
@Override
public void onCompleted(List<GraphUser> users, Response response) {
if (response.getError() == null) {
//use all friends
} else {
//print error
}
}
}).executeAsync();
}
} And here's the crash log:
It's a really strange bug and it crashes ALL the time. Do you know how to fix it? Reply to this email directly or view it on GitHub: |
It was an OkHTTP Issue: square/okhttp#184 and it has been fixed with a workaround: |
I got a really strange crash.
User login into the app correctly.
I'm correctly calling all UiLifecycleHelper methods into my code.
When I try to perfrom a simple request (get the user's friends list) my app crash in a brutal way.
Here the function that make the app crash:
I've digged a little bit and it seems that the instruction that is making the whole app crash EVERY TIME is this:
connection.getResponseCode()
that internally is doingconnection.getInputStream()
Here you are with the Facebook reference: https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/Response.java?source=cc#L301
And here's the crash log:
It's a really strange bug and it crashes ALL the time. Do you know how to fix it?
The text was updated successfully, but these errors were encountered: