Rg.Plugins.Popup icon indicating copy to clipboard operation
Rg.Plugins.Popup copied to clipboard

App unresponsive after closing any popup

Open ecollado92 opened this issue 6 years ago • 4 comments
trafficstars

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 avatar Oct 09 '19 21:10 ecollado92

@ecollado92 Can you reproduce it in another project?

rotorgames avatar Oct 11 '19 08:10 rotorgames

I have similar issue on iOS 13.0. Android works and last time it worked on iOS was iOS 11.

Steps to repro:

  1. screen A: push and pop. Navigate to screen B.
  2. 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

D4rkC1own187 avatar Oct 11 '19 16:10 D4rkC1own187

Hey @rotorgames , do you plan to release an update with this fix? Also reproduced on iOS 13

nok3250 avatar Jan 26 '20 21:01 nok3250

@nck3250 is this still an issue?

LuckyDucko avatar Oct 20 '21 05:10 LuckyDucko