element-hq / element-hq/element-ios

Crash: MXRoomSummary.localUnreadEventCount crash with index beyond bounds reason

Open
#4,592 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.