Parse crash when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap

前端 未结 2 1457
一生所求
一生所求 2021-02-09 10:03

Since the latest Parse release (v1.6.3) my app gets stuck at launch, and the last breakpoint it hits is [PFFacebookUtils initializeFacebook]; If I hit pause and loo

相关标签:
2条回答
  • 2021-02-09 10:31

    I was seeing this same issue and found that changing the order of this initialization sequence (I am using swift) got me past it (notably commenting out the local data store also unblocks it):

    This gets caught in semaphore_wait_trap:

    // Parse integration initialization
    Parse.enableLocalDatastore()
    Parse.setApplicationId("<my app id>", clientKey: "<my client key>")
    PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)
    PFFacebookUtils.initializeFacebook()
    

    This does not:

    // Parse integration initialization
    Parse.enableLocalDatastore()
    Parse.setApplicationId("<my app id>", clientKey: "<my client key>")
    PFFacebookUtils.initializeFacebook()
    PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)
    

    Not sure of the underlying issue but hope it helps.

    0 讨论(0)
  • 2021-02-09 10:36

    Seems to be fixed with parse 1.7.2

    According to v1.7.2 — April 27, 2015

    New: Local Data Sharing for Extensions and WatchKit. Improved nullability annotations for ParseFacebookUtils.
    Fixed: logOutInBackground with block callback not called on main thread. Fixed: Potential compilation error with using imports for PFSubclassing.h.
    Fixed: Not persistent currentUser if saving automatic user via saveEventually.
    Fixed: Rare deadlock scenario with using ParseFacebookUtils and currentUser.
    Fixed: Rare issue with pinning multiple objects in a row to the same pin.
    Fixed: Rare scenario when user could be not linked with Facebook.
    Improved performance and reliability of Local Datastore. Performance improvements.
    Other small bug fixes.

    0 讨论(0)
提交回复
热议问题