Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
After updating Xamarin.Forms to 5.0.0.2196 we get this app crash when backing out of an SfPdfViewer page:
Objective-C exception thrown. Name: NSRangeException Reason:
Cannot remove an observer Syncfusion_SfPdfViewer_XForms_iOS_CustomPageRenderer 0x7f945ce35ed0 for the key path "sublayers" from CALayer 0x60000556cce because it is not registered as an observer.
Native stack trace:
0 CoreFoundation 0x00007fff203fbbb4 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff2019ebe7 objc_exception_throw + 48
2 Foundation 0x00007fff207a7062 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 689
3 Foundation 0x00007fff207a74c2 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 129
4 MyApp.iOS 0x000000010381a449 xamarin_dyn_objc_msgSend + 217
5 ??? 0x000000010c45ab4e 0x0 + 4500859726
This does not happen on Xamarin.Forms 5.0.0.2125. Earlier versions (e.g. 19.2.0.59) of SfPdfViewer show the same crash, so I think it's the XF update the triggered the issue.
Kind regards,
Paul