matrix-org / matrix-org/matrix-ios-sdk

Session start error after deleting an application

Open
#1,845 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Log in using this method: Screenshot 2024-02-08 at 09 16 45
  2. Use this method from GitHub matrix-its-sdk repo to start session Screenshot 2024-02-08 at 09 12 42
  3. Delete application without logout.
  4. Install app again and log in using method in point 1.
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.