Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Xamarin IOS EntryRenderer throw exception #14869

Closed
lu-nguyen-khoa opened this issue Nov 11, 2021 · 2 comments
Closed

Xamarin IOS EntryRenderer throw exception #14869

lu-nguyen-khoa opened this issue Nov 11, 2021 · 2 comments
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@lu-nguyen-khoa
Copy link

Description

I have a Entry on IOS 12.4, When EntryRenderer dispose, my application throw a exception:
Objective-C exception thrown. Name: NSRangeException Reason: Cannot remove an observer <...CustomEntryBaseRenderer 0x7fbd4094a330> for the key path "sublayers" from <CALayer 0x600007f03f40> because it is not registered as an observer.
Native stack trace:
0 CoreFoundation 0x0000000107b988db __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000011597cac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000107b98735 +[NSException raise:format:] + 197
3 Foundation 0x000000011051d425 -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 488
4 Foundation 0x000000011051d8ac -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 84
5 FastMobileDevice.iOS 0x0000000106fada99 xamarin_dyn_objc_msgSend + 217
6 ??? 0x000000013da2e19e 0x0 + 5329052062

###Stack trace
at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:449
at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/azdo/_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:392
at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception(intptr)
at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr(intptr,intptr,intptr,intptr)
at Foundation.NSObject.RemoveObserver (Foundation.NSObject observer, Foundation.NSString keyPath) [0x00020] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/ios/native/Foundation/NSObject.g.cs:415
at Xamarin.Forms.Platform.iOS.EntryRendererBase`1[TControl].Dispose (System.Boolean disposing) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\EntryRenderer.cs:96
at FastMobile.FXamarin.Core.FiOS.FEntryBaseRenderer.Dispose (System.Boolean disposing) [0x00002] in E:\FastMB\Version5\5.0\FastMobile.FXamarin.Core.FiOS\Renderer\FEntryBaseRenderer.cs:52
--- End of stack trace from previous location where exception was thrown ---

at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr(intptr,intptr,intptr,intptr)
at Foundation.NSObject.RemoveObserver (Foundation.NSObject observer, Foundation.NSString keyPath) [0x00020] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/build/ios/native/Foundation/NSObject.g.cs:415
at Xamarin.Forms.Platform.iOS.EntryRendererBase`1[TControl].Dispose (System.Boolean disposing) [0x000e0] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\EntryRenderer.cs:96
at ...CustomEntryBaseRenderer.Dispose (System.Boolean disposing) [0x00002] in ...CustomEntryBaseRenderer.cs:52

  • Version with issue:
  • Last known good version 5.0.0.1xxx:
  • Platform Target Frameworks:
    • iOS: 12.4
@lu-nguyen-khoa lu-nguyen-khoa added s/unverified New report that has yet to be verified t/bug 🐛 labels Nov 11, 2021
@lee-m
Copy link
Contributor

lee-m commented Nov 11, 2021

Dupe of #14804

@jfversluis
Copy link
Member

Duplicate of #14804

@jfversluis jfversluis marked this as a duplicate of #14804 Nov 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

3 participants