Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypto: Device deduplication method sometimes crashes #2167

Closed
manuroe opened this issue Jan 11, 2019 · 7 comments
Closed

Crypto: Device deduplication method sometimes crashes #2167

manuroe opened this issue Jan 11, 2019 · 7 comments

Comments

@manuroe
Copy link
Member

manuroe commented Jan 11, 2019

A migration script had been added to version 0.7.11 to fix duplicated devices (#2132) but that script can crash, which avoids the bug fix effect.

@manuroe manuroe added this to the Sprint 17 milestone Jan 11, 2019
@aaronraimist
Copy link
Contributor

When you get the chance can you send me the logs from my crashes? @aaron:raim.ist

I can't reproduce my crashes in the simulator.

@manuroe
Copy link
Member Author

manuroe commented Jan 14, 2019

The reason you cannot reproduce it on your simulator is that the crypto store is not synchronised across devices.
The issue is located only on your device.

@manuroe
Copy link
Member Author

manuroe commented Jan 14, 2019

It seems that cleanDuplicatedDevicesInRealm should be rewritten to avoid the Object has been deleted or invalidated. exception from realm.

@manuroe
Copy link
Member Author

manuroe commented Jan 23, 2019

Reopened to not forget to remove the patch at matrix-org/matrix-ios-sdk#620

@aaronraimist
Copy link
Contributor

0.7.12 didn't crash so that's good but E2E encryption isn't fully fixed.

All of my devices that I previously verified show up as verified now but I still can’t verify new devices or unverify exiting devices.

@manuroe
Copy link
Member Author

manuroe commented Feb 4, 2019

0.7.12 didn't crash so that's good but E2E encryption isn't fully fixed.

This is normal. The bug was in the Realm DB migration script from 0.7.10 to 0.7.11.

The final fix for the issue needs a new DB version. But I do not want to change the DB version on TestFlight betas because if people comes back to the app store version, their e2e keys will be trashed because Realm does not support backward compatibility on DB version :/.

@manuroe
Copy link
Member Author

manuroe commented Feb 8, 2019

DB migration re-enabled in matrix-org/matrix-ios-sdk#630

@manuroe manuroe closed this as completed Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants