rotorgames / Rg.Plugins.Popup

Xamarin Forms popup plugin
MIT License
1.15k stars 337 forks source link

UWP crashes on popup opening in Release #632

Closed anpin closed 3 years ago

anpin commented 3 years ago

🐛 Bug Report

UWP app packaged in VS 2019 for Release crashes with following stack

` System.InvalidCastException: Specified cast is not valid. StackTrace: Rg.Plugins.Popup.Windows.Impl.PopupPlatformWindows

d__11.MoveNext () System.Runtime.ExceptionServices ExceptionDispatchInfo.Throw () System.Runtime.CompilerServices TaskAwaiter.ThrowForNonSuccess (Task) System.Runtime.CompilerServices TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task) System.Runtime.CompilerServices TaskAwaiter.ValidateEnd (Task) System.Runtime.CompilerServices TaskAwaiter.GetResult () Rg.Plugins.Popup.Services.PopupNavigationImpl.<>c__DisplayClass20_0 <b__0>d.MoveNext () System.Runtime.ExceptionServices ExceptionDispatchInfo.Throw () System.Runtime.CompilerServices TaskAwaiter.ThrowForNonSuccess (Task) System.Runtime.CompilerServices TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task) System.Runtime.CompilerServices TaskAwaiter.ValidateEnd (Task) System.Runtime.CompilerServices TaskAwaiter.GetResult () Rg.Plugins.Popup.Services.PopupNavigationImpl.<>c__DisplayClass28_0 <b__0>d.MoveNext () System.Runtime.ExceptionServices ExceptionDispatchInfo.Throw () System.Runtime.CompilerServices TaskAwaiter.ThrowForNonSuccess (Task) System.Runtime.CompilerServices TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task) System.Runtime.CompilerServices TaskAwaiter.ValidateEnd (Task) System.Runtime.CompilerServices TaskAwaiter.GetResult () ` ### Expected behavior Popup opens without crash ### Reproduction steps Compile app in Release and install via powershell script ### Configuration **Version:** 2.0.0.10 **Platform:** - [ ] :iphone: iOS - [ ] :robot: Android - [ ] :checkered_flag: WPF - [X] :earth_americas: UWP - [ ] :apple: MacOS - [ ] :tv: tvOS - [X] :monkey: Xamarin.Forms
anpin commented 3 years ago

read the docs :)