element-hq / element-hq/element-ios

MXFileStore: File corruption since the introduction of MXBackgroundSyncService

Open
#3,921 1 comment 0 reactions 1 assignee Claimed by @ismailgulek View on GitHub
performance
Dominant language
Swift
Stars
1.8k
Forks
544
PR merge metrics
PR metrics pending

Description

File corruption are sometimes detected by MXFileStore:
````
[MXFileStore] Warning: MXFileStore has been reset due to room file corruption. Room id: XXXX
````

What is weird is, most of the time, it happens on a room that was not used at all for the last 50 app life cycles we have in logs.
The issue started to be visible with Amandine's account from this build:
```
Element version: 1.1.3
MatrixKit version: 0.13.2
MatrixSDK version: 0.17.4
Build: develop #20201210112922
```
This is the first build we shared with the new `MXBackgroundSyncService` (https://github.com/matrix-org/matrix-ios-sdk/pull/927).

This issue was noticeable because the app failed to do initial sync afterwards (#3917).

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.