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

This is the contents of the method call and close:
getFacebookAlbums { () -> Void in self.albumView.activityIndicator.stopAnimating() self.albumView.refreshContorl.endRefreshing() }
ios swift
Unome
source share