Closed bwindels closed 4 years ago
I think this is because my test account has 53 e2ee devices and while encrypting a message, we keep hold of all outbound olm sessions. It fails to allocate the 45th olm outbound session. One outbound session needs 3320 bytes, so 44x3320=146080 bytes seems to make us run out of memory.
We should either increase the memory limit, or not run encryption in parallel anymore.
Or likely just decrease MAX_BATCH_SIZE in olm/Encryption.js...
After the first sync, we send out any pending room key shares in the
operations
store. This seems to fail without exception (trying with 3 operations in my store now) with the following olm error:It is surprising that it would already have hit the memory limit right after loading the session, from a cold session load.
This is hydrogen 0.1.10 on latest Chrome.