Error313 Thank you for sharing the details!
I don’t think that any regular actions were the reason (like you deleting duplicates). Even if there theoretically would be mistakes in the code that would only mess up the data in the DB, but would not break it completely so it would not even open. What we see is happening on deeper level, not in the business logic. This is either unlucky hardware situatuion (like powering down in wrong moment), or there is error in DBMS (we use MongoDB realm). And as the time goes on I tend to think this is the latter case. Unfortunately, this mistake is so rare so it is impossible to reproduce at will. So there is nothing to report to MongoDB, unfortunately.
It looks like I will need to make comparative research between different versions of realm library to see which one is more stable. However, the challenge is, this mistake is so rare so I don’t even know yet how to setup the experiment.