Strange Crash Stack EXC_BREAKPOINT 0x00000000e7ffdefe

I am trying to debug the next crash, and I don’t know a bit what this error means. I received it from a user using the application on the iPhone, and the accident went through Crashlytics.

The accident was named: EXC_BREAKPOINT 0x00000000e7ffdefe Crashed: com.apple.main-thread

Subject: Crash: com.apple.main-thread 0 Mutual
0xfff58 AlbumViewController. (GetFacebookAlbums (() β†’ ()?) β†’ ()) (close # 1) (AlbumViewController.swift: 78) 1 Mutual
0xfe95c is partially applied for AlbumViewController. (GetFacebookAlbums (() β†’ ()?) β†’ ()). (close # 1) (AlbumViewController.swift) 2 Mutual
0xfe95c is partially applied for AlbumViewController. (GetFacebookAlbums (() β†’ ()?) β†’ ()). (close # 1) (AlbumViewController.swift) 3 FBSDKCoreKit
0x5a2661 - [FBSDKGraphRequestMetadata invokeCompletionHandlerForConnection: withResults: error:] + 96

The code that points to (line 78 of the AlbumViewController) is the final brace of this function:

func getFacebookAlbums(completion: (() -> Void)? = nil){ FBSDKGraphRequest(graphPath: "me/albums?fields=name,picture,count&limit=16&offset=\(offset)", parameters: nil).startWithCompletionHandler { (connection: FBSDKGraphRequestConnection!, result: AnyObject!, error: NSError!) -> Void in if let albumData = result["data"] as? NSArray{ for album in albumData{ let albumName = album["name"] as? String ?? "" let albumId = album["id"] as? String ?? "-1" let count = album["count"] as? Int ?? 0 var coverURL = "" if let picture = album["picture"] as? NSDictionary{ if let pictureData = picture["data"] as? NSDictionary{ coverURL = pictureData["url"] as? String ?? "" } } let newAlbum = AlbumData(name: albumName, id: albumId, coverURL: coverURL, photosCount: count) self.albums.append(newAlbum) } self.albumView.tableView.reloadData() self.albumView.tableView.hidden = false self.albumView.loadingView.hideLoadingView() completion?() self.downloadAlbumThumbnails() } } } 

With such a vague error, it is very difficult to debug. Does anyone have an idea of ​​what causes this?

UPDATE:

Here is a screen of what I have from Crashlytics

Crash data

This is the contents of the method call and close:

  getFacebookAlbums { () -> Void in self.albumView.activityIndicator.stopAnimating() self.albumView.refreshContorl.endRefreshing() } 
+7
ios swift
source share

No one has answered this question yet.

See related questions:

928
How do I call Objective-C code from Swift?
902
# pragma in Swift?
870
Fast beta: sorting arrays
703
Swift for loop: for index, element in array?
656
#ifdef Swift replacement
642
@selector () in Swift?
641
Break a string into an array in Swift?
610
Do Swift-based apps run on OS X 10.9 / iOS 7 and below?
545
Broken infrastructure iOS app on device, dyld: library not loaded, Xcode 6 Beta
541
dispatch_after - GCD in Swift?

All Articles