{"action":"created","issue":{"url":"https://api.github.com/repos/objcio/core-data/issues/19","repository_url":"https://api.github.com/repos/objcio/core-data","labels_url":"https://api.github.com/repos/objcio/core-data/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/objcio/core-data/issues/19/comments","events_url":"https://api.github.com/repos/objcio/core-data/issues/19/events","html_url":"https://github.com/objcio/core-data/issues/19","id":154668514,"number":19,"title":"Crash when instantiating FetchedResultsDataProvider","user":{"login":"lucatorella","id":1781236,"avatar_url":"https://avatars.githubusercontent.com/u/1781236?v=3","gravatar_id":"","url":"https://api.github.com/users/lucatorella","html_url":"https://github.com/lucatorella","followers_url":"https://api.github.com/users/lucatorella/followers","following_url":"https://api.github.com/users/lucatorella/following{/other_user}","gists_url":"https://api.github.com/users/lucatorella/gists{/gist_id}","starred_url":"https://api.github.com/users/lucatorella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucatorella/subscriptions","organizations_url":"https://api.github.com/users/lucatorella/orgs","repos_url":"https://api.github.com/users/lucatorella/repos","events_url":"https://api.github.com/users/lucatorella/events{/privacy}","received_events_url":"https://api.github.com/users/lucatorella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T09:19:10Z","updated_at":"2016-05-17T08:13:38Z","closed_at":null,"body":"I was trying the code to use Core Data and Table Views, and I get a crash just in iOS 7:\r\n\r\n```\r\n#0\r\nCrashed: com.apple.main-thread\r\nEXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x00000000004266e0\r\n\r\nCrashed: com.apple.main-thread\r\n0  libswiftCore.dylib             0x6dbd22 swift_initClassMetadata_UniversalStrategy + 439\r\n1  MyApp                          0xab284 protocol witness table accessor for <A where ...> FetchedResultsDataProvider<A> (FetchedResultsDataProvider.swift)\r\n2  libswiftCore.dylib             0x6dcdbf swift_getGenericWitnessTable + 888\r\n3  libswiftCore.dylib             0x6dccb5 swift_getGenericWitnessTable + 622\r\n4  libswiftCore.dylib             0x6daee7 swift_getResilientMetadata + 382\r\n5  libswiftCore.dylib             0x6db03f swift_getGenericMetadata3 + 68\r\n```\r\n\r\nMy table view controller code looks like this:\r\n```\r\nprivate func setupTableView() {\r\n   tableView.registerNib(UINib(nibName: \"Cell\", bundle: nil), forCellReuseIdentifier: \"Cell\")\r\n\r\n   let request = Event.sortedFetchRequest\r\n   request.fetchBatchSize = 20\r\n   request.returnsObjectsAsFaults = false\r\n\r\n   let frc = NSFetchedResultsController(fetchRequest: request, managedObjectContext: managedObjectContext, sectionNameKeyPath: nil, cacheName: nil)\r\n   let dataProvider = FetchedResultsDataProvider(fetchedResultsController: frc, delegate: self)\r\n   dataSource = TableViewDataSource(tableView: tableView, dataProvider: dataProvider, delegate: self)\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/objcio/core-data/issues/comments/219649338","html_url":"https://github.com/objcio/core-data/issues/19#issuecomment-219649338","issue_url":"https://api.github.com/repos/objcio/core-data/issues/19","id":219649338,"user":{"login":"lucatorella","id":1781236,"avatar_url":"https://avatars.githubusercontent.com/u/1781236?v=3","gravatar_id":"","url":"https://api.github.com/users/lucatorella","html_url":"https://github.com/lucatorella","followers_url":"https://api.github.com/users/lucatorella/followers","following_url":"https://api.github.com/users/lucatorella/following{/other_user}","gists_url":"https://api.github.com/users/lucatorella/gists{/gist_id}","starred_url":"https://api.github.com/users/lucatorella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucatorella/subscriptions","organizations_url":"https://api.github.com/users/lucatorella/orgs","repos_url":"https://api.github.com/users/lucatorella/repos","events_url":"https://api.github.com/users/lucatorella/events{/privacy}","received_events_url":"https://api.github.com/users/lucatorella/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T08:13:38Z","updated_at":"2016-05-17T08:13:38Z","body":"I think it's a compiler issue, since it crashes when compiled with Swift 2.2.1, but not when compiled with Swift 2.1"}}