Skip to content
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

Random crashes when calling the singleton #51

Closed
neuronix opened this issue Apr 22, 2013 · 4 comments
Closed

Random crashes when calling the singleton #51

neuronix opened this issue Apr 22, 2013 · 4 comments

Comments

@neuronix
Copy link

Hi Guys,

I'm getting crashes when calling this bit of code:
if (Facebook.getInstance().isSessionOpen) {
trace("Session open"); // <- this does not even show up in the log
Facebook.getInstance().closeSessionAndClearTokenInformation();
}

I wrapped it with the session test but closeSessionAndClearTokenInformation on itself crashes as well.

Any ideas? It seems like a lack of memory but I don't quite get why the Facebook ANE would need so much.

Regards,

Cameron

@neuronix
Copy link
Author

More info: it occurs when the openWithXXXX function has not been called for a while. In my case users can log in with FB or not and I always call closeSessionAndClearTokenInformation on logout.

I now just call closeSessionAndClearTokenInformation when the user logged in with FB to avoid the crash.

@KickLensing
Copy link

I'm having a simular problem, but only on iOS. When I call FacebookANE.isSessionOpen on an iPhone, my whole app crashes without a warning. On Android everything is working fine.

I fixed it by calling FacebookANE.init first. That way, it doesn't crash on iOS.

@neuronix
Copy link
Author

Thanks, i'll try that out :)

@mssteuer
Copy link

We too are seeing random crashes like this (well, nearly 100% so not so random)... Adding init calls doesn't seem to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants