"Object reference not set to an instance of an object" When call Show Popup after Page dispose.

I have MyPage with Conent is SfPopupLayout, when I change MainPage = new NavigationPage(new MyPage()); it crashed. 
Xamarin Form: 4.8.0.1560
Syncfution: 18.3.0.48
Platform: iOS
Stack Trace: 

at Syncfusion.XForms.iOS.PopupLayout.RendererHelper.MapSfPopupLayoutProperties (System.String propertyName, Syncfusion.XForms.PopupLayout.SfPopupLayout formsPopupLayout, Syncfusion.XForms.iOS.PopupLayout.SfPopupLayout nativePopupLayout) [0x00000] in <72ef6748a24545caa57254535e629489>:0 
  at Syncfusion.XForms.iOS.PopupLayout.SfPopupRenderer.OnElementPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x0000e] in <72ef6748a24545caa57254535e629489>:0 
  at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:229 
  at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:358 
  at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property, System.Boolean fromStyle, System.Boolean checkAccess) [0x000c6] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:96 
  at Xamarin.Forms.BindableObject.ClearValue (Xamarin.Forms.BindableProperty property) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:48 
  at Xamarin.Forms.Platform.iOS.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x00077] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementRenderer.cs:384 
  at Xamarin.Forms.Platform.iOS.ViewRenderer`2[TView,TNativeView].Dispose (System.Boolean disposing) [0x0005c] in D:\a\1\s\Xamarin.Forms.Platform.iOS\ViewRenderer.cs:124 
  at Syncfusion.XForms.iOS.PopupLayout.SfPopupRenderer.Dispose (System.Boolean disposing) [0x00069] in <72ef6748a24545caa57254535e629489>:0 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.2.0.12/src/Xamarin.iOS/Foundation/NSObject2.cs:144 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose (System.Boolean disposing) [0x0003f] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:87 
  at Xamarin.Forms.Platform.iOS.VisualElementPackager.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\VisualElementPackager.cs:40 
  at Xamarin.Forms.Platform.iOS.PageRenderer.Dispose (System.Boolean disposing) [0x00023] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:289 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.2.0.12/src/Xamarin.iOS/Foundation/NSObject2.cs:144 
  at Xamarin.Forms.Platform.iOS.DisposeHelpers.DisposeModalAndChildRenderers (Xamarin.Forms.Element view) [0x00042] in D:\a\1\s\Xamarin.Forms.Platform.iOS\DisposeHelpers.cs:23 
  at Xamarin.Forms.Platform.iOS.Platform.CleanUpPages () [0x00017] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:673 
  at Xamarin.Forms.Platform.iOS.PlatformRenderer.Dispose (System.Boolean disposing) [0x0001e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\PlatformRenderer.cs:121 
  at Foundation.NSObject.Dispose () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.2.0.12/src/Xamarin.iOS/Foundation/NSObject2.cs:144 
  at Xamarin.Forms.Platform.iOS.Platform.Dispose (System.Boolean disposing) [0x00013] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:75 
  at Xamarin.Forms.Platform.iOS.Platform.System.IDisposable.Dispose () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Platform.cs:61 
  at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.UpdateMainPage () [0x00022] in D:\a\1\s\Xamarin.Forms.Platform.iOS\FormsApplicationDelegate.cs:200 
  at Xamarin.Forms.Platform.iOS.FormsApplicationDelegate.ApplicationOnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x00012] in D:\a\1\s\Xamarin.Forms.Platform.iOS\FormsApplicationDelegate.cs:152 
  at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:229 
  at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:358 
  at Xamarin.Forms.Application.set_MainPage (Xamarin.Forms.Page value) [0x0008b] in D:\a\1\s\Xamarin.Forms.Core\Application.cs:93 
  at FastMobile.Device.App.SetLogin () [0x00001] in D:\FastMB\Version3\FBO\Device\FastMobile.Device\FastMobile.Device\App.cs:42 
  at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/14.2.0.12/src/Xamarin.iOS/Foundation/NSAction.cs:152 

2 Replies 1 reply marked as answer

GS Gokul Saravanan Syncfusion Team November 14, 2020 01:49 PM UTC

Hi Nguyen, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed and we confirm that the reported issue Navigating back from a page in which PopupLayout is loaded” is a defect. We have fixed the issue and include the issue fix in our weekly nuget which is planned to be rolled out on November 17, 2020. We appreciate your patience until then. 
  
Regards, 
Gokul S 



GS Gokul Saravanan Syncfusion Team November 17, 2020 07:26 PM UTC

Hi Nguyen, 
 
Thank you for your patience. 
 
We have fixed the reported issue “Navigating back from a page in which PopupLayout is loaded” and included the issue fix in our latest Weekly NuGet release update version 18.3.0.50 which is available for download (nuget.org). 
 
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance. 
 
Regards  
Gokul S 


Marked as answer
Loader.
Up arrow icon