You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] NullReferenceException occurs when iOS redraws SKCanvasView view but it had been already disposed #960
Exception has occurred in the moment of back navigation from page with SKCanvasView.
System.NullReferenceException: Object reference not set to an instance of an object
at SkiaSharp.Views.iOS.SKDrawable.DrawSurface (CoreGraphics.CGContext ctx, CoreGraphics.CGRect viewBounds, SkiaSharp.SKImageInfo info, SkiaSharp.SKSurface surface) <0x104f466f0 + 0x0004c> in <1dff7dabaada4d38b0d12baee26f046c#85a406ab9d3ebec0a9a84dd9b6d8be21>:0
at SkiaSharp.Views.iOS.SKCanvasView.Draw (CoreGraphics.CGRect rect) <0x104f42990 + 0x002bb> in <1dff7dabaada4d38b0d12baee26f046c#85a406ab9d3ebec0a9a84dd9b6d8be21>:0
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) <0x10434de20 + 0x0002b> in <854c6713acc54b0389a597c8b4079500#85a406ab9d3ebec0a9a84dd9b6d8be21>:0
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x10434dd60 + 0x000ab> in <854c6713acc54b0389a597c8b4079500#85a406ab9d3ebec0a9a84dd9b6d8be21>:0
at SomeApp.AppDelegate.Main (System.String[] args) <0x102769e20 + 0x0003f> in :0
Thanks for this issue. I know it has been a long time, but strange that iOS was drawing a disposed view - and also strange that not everyone was getting this.
Activity
Null out the field when disposing. Fixes #960
mattleibow commentedon Apr 28, 2020
Thanks for this issue. I know it has been a long time, but strange that iOS was drawing a disposed view - and also strange that not everyone was getting this.
Null out the field when disposing. Fixes #960 (#1256)