Rg.Plugins.Popup
Rg.Plugins.Popup copied to clipboard
App unresponsive after closing any popup
After upgrading to latest version 1.2.0.223 to try to resolve the ios 13 crashing issue, the app turns unresponsive when closing a popup with
MainThread.BeginInvokeOnMainThread(async delegate
{
if (PopupNavigation.Instance.PopupStack.Count > 0)
{
await PopupNavigation.Instance.PopAsync(false);//.PopAllAsync(true);
}
});
Have tried without animation, or just popasync, and still, after closing the popup I can't click on anything else. There's no stacktrace or anything.
@ecollado92 Can you reproduce it in another project?
I have similar issue on iOS 13.0. Android works and last time it worked on iOS was iOS 11.
Steps to repro:
- screen A: push and pop. Navigate to screen B.
- screen B: push and pop but after popup disappears I get a null reference exception.
I will create a sample project to reproduce later today.
stack trace: at Rg.Plugins.Popup.IOS.Impl.PopupPlatformIos.RemoveAsync (Rg.Plugins.Popup.Pages.PopupPage page) [0x000f0] in <9cde9985cfe5453d836575ce17f47cbb>:0 at Rg.Plugins.Popup.Services.PopupNavigationImpl.RemoveAsync (Rg.Plugins.Popup.Pages.PopupPage page) [0x00028] in C:\projects\rg-plugins-popup\src\Rg.Plugins.Popup\Services\PopupNavigationImpl.cs:134 at Rg.Plugins.Popup.Services.PopupNavigationImpl+<>c__DisplayClass10_0.<RemovePageAsync>b__0 () [0x000e2] in C:\projects\rg-plugins-popup\src\Rg.Plugins.Popup\Services\PopupNavigationImpl.cs:115 at Rg.Plugins.Popup.Services.PopupNavigationImpl+<>c__DisplayClass15_0.<InvokeThreadSafty>b__0 () [0x00022] in C:\projects\rg-plugins-popup\src\Rg.Plugins.Popup\Services\PopupNavigationImpl.cs:163 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Users/builder/jenkins/workspace/xamarin-macios/xamarin-macios/external/mono/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021 at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.2.0.42/src/Xamarin.iOS/Foundation/NSAction.cs:178
Hey @rotorgames , do you plan to release an update with this fix? Also reproduced on iOS 13
@nck3250 is this still an issue?