ChatSecure / ChatSecure-iOS

ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.
https://chatsecure.org
Other
3.13k stars 1.03k forks source link

Crash while try to open chat windows one after another #260

Closed sijjeel closed 9 years ago

sijjeel commented 10 years ago

Hi, I am having a strange issue. I open a chat window then come back to previous screen and open another chat chat window and when i repeat this step third time. app crashes. It happens in OTRMessagesViewController.

Here is the log i am getting.

Assertion failure in -[UICollectionViewData validateLayoutInRect:], /SourceCache/UIKit/UIKit-2935.138/UICollectionViewData.m:357 2014-10-23 16:39:35.960 linphone[240:60b] Crash: UICollectionView recieved layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0x67abbc0> {length = 2, path = 0 - 4}

I tried answers from stackoverflow but nothing helpful.

Any help will be appreciated. Thanks

chrisballinger commented 10 years ago

Are you using the latest commit from the master branch? This was an issue on an older version of JSQMessagesViewController.

sijjeel commented 10 years ago

Thanks Chris for replying back, Can you please let me know the fix for this? or the classes i needed to replace, because i am almost done with my project.

chrisballinger commented 10 years ago

Sorry, I can't help you finish your project.