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

App can crash on Login if a secondary view is presented before beginning authentication #4606

Closed
pixlwave opened this issue Jul 26, 2021 · 0 comments · Fixed by #4607
Closed
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@pixlwave
Copy link
Member

The AuthenticationViewController will try to deregister it's observer on the activity indicator twice:

2021-07-26 14:19:22.197476+0100 Riot[47607:1159140] *** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <AuthenticationViewController 0x7fdbd4836c00> for the key path "hidden" from <UIActivityIndicatorView 0x7fdbd3a27210> because it is not registered as an observer.'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011318afba __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x0000000112762ff5 objc_exception_throw + 48
	2   Foundation                          0x000000010b05fee4 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 689
	3   Foundation                          0x000000010b0602de -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 74
	4   Riot                                0x0000000107bc8cf6 -[AuthenticationViewController viewDidDisappear:] + 134
	5   UIKitCore                           0x000000011a62df03 -[UIViewController _setViewAppearState:isAnimating:] + 370
	6   UIKitCore                           0x000000011a62ecb3 -[UIViewController __viewDidDisappear:] + 131
@pixlwave pixlwave added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant