element-hq / element-hq/element-ios
Crash: MXRoomSummary.localUnreadEventCount crash with index beyond bounds reason
- Dominant language
- Swift
- Stars
- 1.8k
- Forks
- 544
- PR merge metrics
- PR metrics pending
Description
Several crashes came from `MXRoomSummary.localUnreadEventCount` with following crash:
`*** -[__NSArrayM objectAtIndexedSubscript:]: index 14 beyond bounds for empty array`
and following stack trace:
```
4 MatrixSDK 0x0000000106e601b0 -[MXMemoryRoomStore eventsAfter:except:withTypeIn:] + 228
5 MatrixSDK 0x0000000106e6175c -[MXMemoryStore localUnreadEventCount:withTypeIn:] + 372
6 MatrixSDK 0x0000000106efe23c -[MXRoomSummary localUnreadEventCount] + 72
7 MatrixKit 0x0000000106aa5804 -[MXKRecentCellData hasUnread] + 32
```
List of concern rageshakes: https://github.com/matrix-org/element-ios-rageshakes/issues?q=is%3Aissue+is%3Aopen+localUnreadEventCount
Contributor guide
Assessment
This issue has not been assessed yet.