{"action":"opened","issue":{"url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1146","labels_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1146/labels{/name}","comments_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1146/comments","events_url":"https://api.github.com/repos/jessesquires/JSQMessagesViewController/issues/1146/events","html_url":"https://github.com/jessesquires/JSQMessagesViewController/issues/1146","id":99791609,"number":1146,"title":"Crash when displaying messages list","user":{"login":"Gamec","id":48938,"avatar_url":"https://avatars.githubusercontent.com/u/48938?v=3","gravatar_id":"","url":"https://api.github.com/users/Gamec","html_url":"https://github.com/Gamec","followers_url":"https://api.github.com/users/Gamec/followers","following_url":"https://api.github.com/users/Gamec/following{/other_user}","gists_url":"https://api.github.com/users/Gamec/gists{/gist_id}","starred_url":"https://api.github.com/users/Gamec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gamec/subscriptions","organizations_url":"https://api.github.com/users/Gamec/orgs","repos_url":"https://api.github.com/users/Gamec/repos","events_url":"https://api.github.com/users/Gamec/events{/privacy}","received_events_url":"https://api.github.com/users/Gamec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-08T10:40:08Z","updated_at":"2015-08-08T10:40:08Z","closed_at":null,"body":"Happens every time after displaying messages list for few seconds.\r\n\r\n```\r\n2015-08-08 12:36:49.791 ScoreBreak[86063:2622936] *** Assertion failure in void _UIPerformResizeOfTextViewForTextContainer(NSLayoutManager *, UIView<NSTextContainerView> *, NSTextContainer *, NSUInteger)(), /SourceCache/UIFoundation_Sim/UIFoundation-376.14/UIFoundation/TextSystem/NSLayoutManager_Private.m:1547\r\n2015-08-08 12:36:49.797 ScoreBreak[86063:2622936] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Only run on the main thread!'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x000000010fe6ec65 __exceptionPreprocess + 165\r\n\t1   libobjc.A.dylib                     0x000000010efe5bb7 objc_exception_throw + 45\r\n\t2   CoreFoundation                      0x000000010fe6eaca +[NSException raise:format:arguments:] + 106\r\n\t3   Foundation                          0x000000010cbc6a57 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169\r\n\t4   UIFoundation                        0x0000000115a5e633 -[NSLayoutManager(NSPrivate) _resizeTextViewForTextContainer:] + 401\r\n\t5   UIFoundation                        0x0000000115a5e35d -[NSLayoutManager(NSPrivate) _recalculateUsageForTextContainerAtIndex:] + 2424\r\n\t6   UIFoundation                        0x0000000115a95886 -[NSLayoutManager textStorage:edited:range:changeInLength:invalidatedRange:] + 753\r\n\t7   UIFoundation                        0x0000000115abbdfa -[NSTextStorage _notifyEdited:range:changeInLength:invalidatedRange:] + 152\r\n\t8   UIFoundation                        0x0000000115abb932 -[NSTextStorage processEditing] + 367\r\n\t9   UIFoundation                        0x0000000115abb570 -[NSTextStorage endEditing] + 82\r\n\t10  UIKit                               0x000000010e273eae -[UITextView setAttributedText:] + 229\r\n\t11  UIKit                               0x000000010e2796eb -[UITextView setText:] + 136\r\n\t12  ScoreBreak                          0x000000010bf97e00 -[JSQMessagesCollectionViewCell prepareForReuse] + 352\r\n\t13  UIKit                               0x000000010e198f3f -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 366\r\n\t14  ScoreBreak                          0x000000010bfb1eb5 -[JSQMessagesViewController collectionView:cellForItemAtIndexPath:] + 1301\r\n\t15  ScoreBreak                          0x000000010bee4d5d -[MessagesListViewController collectionView:cellForItemAtIndexPath:] + 141\r\n\t16  UIKit                               0x000000010e18bf67 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 235\r\n\t17  UIKit                               0x000000010e18d959 -[UICollectionView _updateVisibleCellsNow:] + 3467\r\n\t18  UIKit                               0x000000010e191899 -[UICollectionView layoutSubviews] + 267\r\n\t19  UIKit                               0x000000010dbed9eb -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 536\r\n\t20  QuartzCore                          0x000000010d8a1ed2 -[CALayer layoutSublayers] + 146\r\n\t21  QuartzCore                          0x000000010d8966e6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380\r\n\t22  QuartzCore                          0x000000010d896556 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24\r\n\t23  QuartzCore                          0x000000010d80286e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242\r\n\t24  QuartzCore                          0x000000010d803a22 _ZN2CA11Transaction6commitEv + 462\r\n\t25  QuartzCore                          0x000000010d803c99 _ZN2CA11Transaction14release_threadEPv + 199\r\n\t26  libsystem_pthread.dylib             0x0000000112f531ec _pthread_tsd_cleanup + 470\r\n\t27  libsystem_pthread.dylib             0x0000000112f52dc8 _pthread_exit + 117\r\n\t28  libsystem_pthread.dylib             0x0000000112f537d3 pthread_get_stackaddr_np + 0\r\n\t29  libsystem_pthread.dylib             0x0000000112f51409 start_wqthread + 13\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n```"}}