[SOLVED] inviteFriends crash

On Android, sdkbox::PluginFacebook::inviteFriends causes crashes randomly. Seems to occur after friends are selected, but possibly also when cancel button is pressed.

Happened on several different Android devices but not on iOS.

cocos2d-x 3.10 and facebook v2.0.3.4

Perhaps the log will help to find the problem faster.

If you can provide a log or sample that would be great.

I was able to fix this by not creating or modifying any graphical elements in the onInviteFriendsResult callback. I didn’t realize this was not allowed.

Interestingly, when not doing anything with any graphical elements in the Facebook callbacks, this problem is now gone as well:

Hello @larsven

Thanks for bringing this to light. :smile:
The cocos devs are working on fixing the issues in github.

Hopefully, will be fixed with next release.

Best,
Pabitra

1 Like