Skip to content

UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread. #41

@jocontacter

Description

@jocontacter

Platform (please complete the following information):

  • OS: iOS
  • Device: iPhone6
  • Sdk vervion: iOS 11
  • Xamarin.Forms: [3.5.0.169047]

UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.

To Reproduce
Occurs when back button pressed on await Navigation.PopAsync()

Exceptions (if applicable)

UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread. (UIKit.UIKitThreadAccessException)
  at UIKit.UIApplication.EnsureUIThread () [0x00020] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.15/src/Xamarin.iOS/UIKit/UIApplication.cs:89 
  at UIKit.UIView.RemoveFromSuperview () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.15/src/Xamarin.iOS/UIKit/UIView.g.cs:1443 
  at Xamarin.Forms.Platform.iOS.ViewRenderer`2[TView,TNativeView].Dispose (System.Boolean disposing) [0x00025] in <9d4a50eabbf24c359a14266d8712c429>:0 
  at FFImageLoading.Forms.Platform.CachedImageRenderer.Dispose (System.Boolean disposing) [0x00015] in C:\projects\ffimageloading\source\FFImageLoading.Forms.Touch\CachedImageRenderer.cs:86 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.15/src/Xamarin.iOS/Foundation/NSObject2.cs:147 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:69 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:37 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00058] in <9d4a50eabbf24c359a14266d8712c429>:0 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.15/src/Xamarin.iOS/Foundation/NSObject2.cs:147 
  at Sharpnado.Presentation.Forms.iOS.Renderers.HorizontalList.UIViewCellHolderQueue.Clear () [0x00027] in D:\Dev\Sharpnado\src\Xamarin-Forms-Practices\Sharpnado.Presentation.Forms\Sharpnado.Presentation.Forms.iOS\Renderers\HorizontalList\UIViewCellHolderQueue.cs:38 
  at Sharpnado.Presentation.Forms.iOS.Renderers.HorizontalList.iOSViewSource.Dispose (System.Boolean disposing) [0x00000] in D:\Dev\Sharpna
do\src\Xamarin-Forms-Practices\Sharpnado.Presentation.Forms\Sharpnado.Presentation.Forms.iOS\Renderers\HorizontalList\iOSViewSource.cs:215 
  at Foundation.NSObject.Finalize () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.15/src/Xamarin.iOS/Foundation/NSObject2.cs:143 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions