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 Crash in iOS 14 #8

Open
kasunranganamw opened this issue Aug 27, 2020 · 4 comments
Open

App Crash in iOS 14 #8

kasunranganamw opened this issue Aug 27, 2020 · 4 comments

Comments

@kasunranganamw
Copy link

Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <RNActivityView 0x15cc30380> for the key path "mode" from <RNActivityView 0x15cc30380> because it is not registered as an observer.'

crash occurs in "unregisterFromKVO" in dealloc method

mtviewdave added a commit to mtviewdave/RNActivityView that referenced this issue Aug 31, 2020
try/catch block to prevent a failed removeObserver from crashing
the app

souzainf3#8
@Khaled-elsedek
Copy link

@kasunranganamw thanks a lot

@andrewjlow
Copy link

I would like to check if this fix will be merged and released soon as iOS 14 is now available and I am getting reports that my apps are crashes due to this.

@OuSS-90
Copy link

OuSS-90 commented Sep 22, 2020

I confirm, I have same crash with iOS 14

@kasunranganamw
Copy link
Author

When observers are removed, can't find any observers according to the keys.

Commenting this code section stops the app from crashing but it disappears the description in the loading indicator.

  • (void)unregisterFromKVO {
    // for (NSString *keyPath in [self observableKeypaths]) {
    // [self removeObserver:self forKeyPath:keyPath];
    // }
    }

Please suggest any other solution for this. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants