RNActivityView icon indicating copy to clipboard operation
RNActivityView copied to clipboard

App Crash in iOS 14

Open kasunranganamw opened this issue 4 years ago • 4 comments

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

kasunranganamw avatar Aug 27 '20 04:08 kasunranganamw

@kasunranganamw thanks a lot

Khaled-elsedek avatar Sep 21 '20 16:09 Khaled-elsedek

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.

andrewjlow avatar Sep 22 '20 02:09 andrewjlow

I confirm, I have same crash with iOS 14

OuSS-90 avatar Sep 22 '20 11:09 OuSS-90

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.

kasunranganamw avatar Sep 22 '20 14:09 kasunranganamw