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

Crash when user sessions are revoked #8519

Closed
movic-wj opened this issue Mar 14, 2024 · 3 comments · Fixed by #8536
Closed

Crash when user sessions are revoked #8519

movic-wj opened this issue Mar 14, 2024 · 3 comments · Fixed by #8536
Assignees

Comments

@movic-wj
Copy link

How frequently does the bug occur?

Always

Description

Screenshot 2024-03-14 at 13 36 04

The issue occurs when the session is revoked for that user and next time you launch the app it will crash. Since the delegate invokes the didCompleteWithError, this time the NSError is nil: "attempt to insert nil object from objects[3]"

Stacktrace & log output

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[3]'
*** First throw call stack:
(0x19881eb28 0x190692f78 0x198788898 0x1987881b4 0x10106c044 0x19987f98c 0x105c8cb98 0x105c8e7bc 0x105c9666c 0x105c9743c 0x105ca4404 0x105ca3a38 0x1f471cf20 0x1f471cfc0)
libc++abi: terminating due to uncaught exception of type NSException

Can you reproduce the bug?

Always

Reproduction Steps

Login the user with anonymously and then revoke the sessions. Re-launch the app and it will crash

Version

10.48.0

What Atlas Services are you using?

Both Atlas Device Sync and Atlas App Services

Are you using encryption?

No

Platform OS and version(s)

iOS 17

Build environment

Xcode version: ...
Dependency manager and version: ...

Copy link

sync-by-unito bot commented Mar 14, 2024

➤ PM Bot commented:

Jira ticket: RCOCOA-2310

@nirinchev nirinchev self-assigned this Mar 22, 2024
@nirinchev
Copy link
Member

Hey, thanks for this report. Can you check what the status code is when you hit this code?

@sync-by-unito sync-by-unito bot added More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 23, 2024
@movic-wj
Copy link
Author

Hi,
Its 401.

Regards

@github-actions github-actions bot added Needs-Attention Reporter has responded. Review comment. and removed More-information-needed More information is needed to progress. The issue will close automatically in 2 weeks. Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Mar 28, 2024
@sync-by-unito sync-by-unito bot removed the Needs-Attention Reporter has responded. Review comment. label Apr 7, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants