matrix-org / matrix-org/matrix-ios-sdk
Session start error after deleting an application
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 484
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
- Log in using this method:
- Use this method from GitHub matrix-its-sdk repo to start session
- Delete application without logout.
- Install app again and log in using method in point 1.
- Stop the app and run it again.
Error log:
🚨 [MXCryptoV2] start(_:failure:): Failed starting crypto module Error Domain=org.matrix.sdk Code=6 "One time key signed_curve25519:AAAAAAAAACE already exists. Old key: {"key":"........","signatures":{"@tst106:.dev.010.xyz":{"ed25519:OSZ...JV":"7vC4vDkkn6Pe2n+dwHEvQpbP....SOq96TKvtf3Q8xYc2oUBaJrpHOhQVtE2EjXsDKhAA"}}}; new key: {'key': 'Fpm/AqbQjx8N5vEOLMvIOle/4H8gSZHCvtznsZ5S7V8', 'signatures': {'@tst106:.dev.010.xyz': {'ed25519:NDWHECZTYA': '/w44Sip264to9pUtnOmDk....49oDwwCHorZ3kM40A+/caEVo8zR6O+DvA9R.....KF1DQkv+3Cw'}}}" UserInfo=UserInfo={errcode=M_UNKNOWN, httpResponse=<NSHTTPURLResponse: 0x600000238f00> { URL: https://devm.101011010.xyz/_matrix/client/r0/keys/upload } { Status Code: 400, Headers {}}
Sometimes SDK even crashes
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the listed reinstall and session-start reproduction, then trace the MXCryptoV2 start failure and the one-time-key upload request shown in the error log. Done means the app can be stopped, relaunched, and start a session after deleting and reinstalling an application without the duplicate-key error or crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100