SSW.Rewards.Mobile
SSW.Rewards.Mobile copied to clipboard
🐛 Mobile | "Window was already created" issue
Cc: @tkapa @AntPolkanov @matt-goldman @kristenhu @adamcogan @sethdaily
Hi team
Describe the Bug
According to AppCenter, we've had a large number of "System.InvalidOperationException: Window was already created" issues logged in the past month. These all appear to be from Android. The stack trace is below:
System.InvalidOperationException
System.InvalidOperationException: Window was already created
Microsoft.Maui.Controls.Window.Microsoft.Maui.IWindow.Created()
Microsoft.Maui.LifecycleEvents.AppHostBuilderExtensions.<>c.<OnConfigureLifeCycle>b__2_0(Activity activity, Bundle bundle)
Microsoft.Maui.MauiAppCompatActivity.<>c__DisplayClass8_0.<OnPostCreate>b__0(OnPostCreate del)
Microsoft.Maui.LifecycleEvents.LifecycleEventServiceExtensions.InvokeLifecycleEvents[OnPostCreate](IServiceProvider services, Action1 action)
Microsoft.Maui.MauiAppCompatActivity.OnPostCreate(Bundle savedInstanceState)
Android.App.Activity.n_OnPostCreate_Landroid_os_Bundle_(IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState)
Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V(_JniMarshal_PPL_V callback, IntPtr jnienv, IntPtr klazz, IntPtr p0)
Tasks
- [x] Investigate
- [ ] Fix
OS
Android
Screenshots
Thanks!
Track here https://github.com/dotnet/maui/issues/18692