{"action":"created","issue":{"url":"https://api.github.com/repos/firebase/friendlychat/issues/25","repository_url":"https://api.github.com/repos/firebase/friendlychat","labels_url":"https://api.github.com/repos/firebase/friendlychat/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/firebase/friendlychat/issues/25/comments","events_url":"https://api.github.com/repos/firebase/friendlychat/issues/25/events","html_url":"https://github.com/firebase/friendlychat/issues/25","id":156037355,"number":25,"title":"ios error when trying to add photo","user":{"login":"bdonkey","id":3912582,"avatar_url":"https://avatars.githubusercontent.com/u/3912582?v=3","gravatar_id":"","url":"https://api.github.com/users/bdonkey","html_url":"https://github.com/bdonkey","followers_url":"https://api.github.com/users/bdonkey/followers","following_url":"https://api.github.com/users/bdonkey/following{/other_user}","gists_url":"https://api.github.com/users/bdonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/bdonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdonkey/subscriptions","organizations_url":"https://api.github.com/users/bdonkey/orgs","repos_url":"https://api.github.com/users/bdonkey/repos","events_url":"https://api.github.com/users/bdonkey/events{/privacy}","received_events_url":"https://api.github.com/users/bdonkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"iulukaya","id":821349,"avatar_url":"https://avatars.githubusercontent.com/u/821349?v=3","gravatar_id":"","url":"https://api.github.com/users/iulukaya","html_url":"https://github.com/iulukaya","followers_url":"https://api.github.com/users/iulukaya/followers","following_url":"https://api.github.com/users/iulukaya/following{/other_user}","gists_url":"https://api.github.com/users/iulukaya/gists{/gist_id}","starred_url":"https://api.github.com/users/iulukaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iulukaya/subscriptions","organizations_url":"https://api.github.com/users/iulukaya/orgs","repos_url":"https://api.github.com/users/iulukaya/repos","events_url":"https://api.github.com/users/iulukaya/events{/privacy}","received_events_url":"https://api.github.com/users/iulukaya/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2016-05-20T19:43:39Z","updated_at":"2016-05-25T07:22:49Z","closed_at":null,"body":"* running complete ios project. \r\n* Adding messages no problem\r\n* When trying to add a photo, app bombs with following error\r\n\r\n`\r\n2016-05-20 14:37:10.156 FriendlyChatSwift[32573:72997859] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UITableView.m:1716\r\n2016-05-20 14:37:10.162 FriendlyChatSwift[32573:72997859] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0.  The number of rows contained in an existing section after the update (1) must be equal to the number of rows contained in that section before the update (7), plus or minus the number of rows inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x0000000108852d85 __exceptionPreprocess + 165\r\n\t1   libobjc.A.dylib                     0x000000010a9bddeb objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x0000000108852bea +[NSException raise:format:arguments:] + 106\r\n\t3   Foundation                          0x0000000108ca3d5a -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198\r\n\t4   UIKit                               0x00000001095394ca -[UITableView _endCellAnimationsWithContext:] + 15146\r\n\t5   UIKit                               0x000000010954fcf0 -[UITableView _updateRowsAtIndexPaths:updateAction:withRowAnimation:] + 303\r\n\t6   FriendlyChatSwift                   0x0000000105a13f16 _TFFC17FriendlyChatSwift16FCViewController14viewWillAppearFSbT_U_FCSo15FIRDataSnapshotT_ + 774\r\n\t7   FriendlyChatSwift                   0x0000000105adf419 __63-[FIRDatabaseQuery observeEventType:withBlock:withCancelBlock:]_block_invoke + 37\r\n\t8   FriendlyChatSwift                   0x0000000105b064bc __43-[FChildEventRegistration fireEvent:queue:]_block_invoke64 + 88\r\n\t9   libdispatch.dylib                   0x000000010b467d9d _dispatch_call_block_and_release + 12\r\n\t10  libdispatch.dylib                   0x000000010b4883eb _dispatch_client_callout + 8\r\n\t11  libdispatch.dylib                   0x000000010b4701ef _dispatch_main_queue_callback_4CF + 1738\r\n\t12  CoreFoundation                      0x00000001087ac0f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n\t13  CoreFoundation                      0x000000010876db99 __CFRunLoopRun + 2073\r\n\t14  CoreFoundation                      0x000000010876d0f8 CFRunLoopRunSpecific + 488\r\n\t15  GraphicsServices                    0x000000010c8bcad2 GSEventRunModal + 161\r\n\t16  UIKit                               0x0000000109409f09 UIApplicationMain + 171\r\n\t17  FriendlyChatSwift                   0x0000000105a1974d main + 125\r\n\t18  libdyld.dylib                       0x000000010b4bc92d start + 1\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n`"},"comment":{"url":"https://api.github.com/repos/firebase/friendlychat/issues/comments/221493563","html_url":"https://github.com/firebase/friendlychat/issues/25#issuecomment-221493563","issue_url":"https://api.github.com/repos/firebase/friendlychat/issues/25","id":221493563,"user":{"login":"hasrants","id":18025201,"avatar_url":"https://avatars.githubusercontent.com/u/18025201?v=3","gravatar_id":"","url":"https://api.github.com/users/hasrants","html_url":"https://github.com/hasrants","followers_url":"https://api.github.com/users/hasrants/followers","following_url":"https://api.github.com/users/hasrants/following{/other_user}","gists_url":"https://api.github.com/users/hasrants/gists{/gist_id}","starred_url":"https://api.github.com/users/hasrants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hasrants/subscriptions","organizations_url":"https://api.github.com/users/hasrants/orgs","repos_url":"https://api.github.com/users/hasrants/repos","events_url":"https://api.github.com/users/hasrants/events{/privacy}","received_events_url":"https://api.github.com/users/hasrants/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T07:22:49Z","updated_at":"2016-05-25T07:22:49Z","body":"i am having same issue here. The original code from Firebase tutorial crashes app when selecting a photo. Reloading table as specified here in this issue thread, just creates a dual \"sent by\" with username and then photo when clicked."}}
{"actor":{"display_login":"hasrants"}}