{"action":"created","issue":{"url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/200","labels_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/200/comments","events_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/200/events","html_url":"https://github.com/yapstudios/YapDatabase/issues/200","id":100360457,"number":200,"title":"Getting a crash inside YDBCKChangeQueue - updatePendingQueue","user":{"login":"danthorpe","id":309420,"avatar_url":"https://avatars.githubusercontent.com/u/309420?v=3","gravatar_id":"","url":"https://api.github.com/users/danthorpe","html_url":"https://github.com/danthorpe","followers_url":"https://api.github.com/users/danthorpe/followers","following_url":"https://api.github.com/users/danthorpe/following{/other_user}","gists_url":"https://api.github.com/users/danthorpe/gists{/gist_id}","starred_url":"https://api.github.com/users/danthorpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danthorpe/subscriptions","organizations_url":"https://api.github.com/users/danthorpe/orgs","repos_url":"https://api.github.com/users/danthorpe/repos","events_url":"https://api.github.com/users/danthorpe/events{/privacy}","received_events_url":"https://api.github.com/users/danthorpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-11T17:10:10Z","updated_at":"2015-08-11T21:23:06Z","closed_at":null,"body":"This is the crash:\r\n\r\n    2015-08-11 17:58:44.932 XXXXX[8677:2260888] *** Terminating app due to uncaught exception   'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'\r\n    *** First throw call stack:\r\n    (0x182da42d8 0x194a200e4 0x182c8b4c0 0x10091a4a8 0x100958dd4 0x182c8dd40 0x182c8dc20  0x100957d28 0x1009f5090 0x182c8dd40 0x182c8dc20 0x1009f4d64 0x10096cd5c 0x10096a6cc 0x1013c0f94 0x1013cb08c 0x10096a54c 0x1013c0fd4 0x1013c0f94 0x1013cbdb8 0x1013c42c4 0x1013ce5d4 0x1013d0248 0x19527d22c 0x19527cef0)\r\n    libc++abi.dylib: terminating with uncaught exception of type NSException\r\n\r\n\r\nI've done a bit of work to follow the crash, and it happens inside:\r\n\r\n```\r\n[self postReadWriteTransaction:transaction];\r\n```\r\n\r\nthen\r\n```\r\n[transaction preCommitReadWriteTransaction];\r\n```\r\n\r\nthen\r\n```\r\n[(YapDatabaseExtensionTransaction *)extTransactionObj flushPendingChangesToExtensionTables];\r\n```\r\nfor my registered CloudKitExtension - bog standard YapDatabaseViews seem okay. Will post more info if I find any...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/comments/130082038","html_url":"https://github.com/yapstudios/YapDatabase/issues/200#issuecomment-130082038","issue_url":"https://api.github.com/repos/yapstudios/YapDatabase/issues/200","id":130082038,"user":{"login":"robbiehanson","id":304604,"avatar_url":"https://avatars.githubusercontent.com/u/304604?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiehanson","html_url":"https://github.com/robbiehanson","followers_url":"https://api.github.com/users/robbiehanson/followers","following_url":"https://api.github.com/users/robbiehanson/following{/other_user}","gists_url":"https://api.github.com/users/robbiehanson/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiehanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiehanson/subscriptions","organizations_url":"https://api.github.com/users/robbiehanson/orgs","repos_url":"https://api.github.com/users/robbiehanson/repos","events_url":"https://api.github.com/users/robbiehanson/events{/privacy}","received_events_url":"https://api.github.com/users/robbiehanson/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T21:23:06Z","updated_at":"2015-08-11T21:23:06Z","body":"Your report was pretty solid in terms of being able to track down what the root cause of the issue was. I'm going to go ahead and merge the issue branch into master.\r\n\r\nLet me know if this issue pops up for you again. Hopefully we now have the tools in place to catch it early."}}