SSW.Rewards.Mobile icon indicating copy to clipboard operation
SSW.Rewards.Mobile copied to clipboard

🐛 Mobile | "Window was already created" issue

Open zacharykeeping opened this issue 1 year ago • 1 comments

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!

zacharykeeping avatar Feb 28 '24 04:02 zacharykeeping

Track here https://github.com/dotnet/maui/issues/18692

AntPolkanov avatar Mar 06 '24 02:03 AntPolkanov