android.view.WindowLeaked

Activity com.example.android.xyztouristattractions.ui.AttractionListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{17de67d1 V.E..... R....... 0,0-1080,998} that was originally added here

Samebug tips1

Close (finish) a Activity before, to ensure that the subsidiary in the above Dialog or PopupWindow have been closed (dismiss). Is also available at OnCreateDialog (Dialog) to create, let the system to manage the dialog box

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1131

  • via GitHub by tomlear
    , 1 year ago
    Activity com.example.android.xyztouristattractions.ui.AttractionListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{17de67d1 V.E..... R....... 0,0-1080,998} that was originally added here
  • Activity com.example.staffallocatorproject.LoggedIn has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{413f5790 V.E..... R.....I. 0,0-0,0} that was originally added here
  • Activity md59ee9cf477177d0ff9c7b0779e1ebfcbe.MediaPickerActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{26ebb2fa V.E..... R......D 0,0-264,369} that was originally added here
  • Stack trace

    • android.view.WindowLeaked: Activity com.example.android.xyztouristattractions.ui.AttractionListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{17de67d1 V.E..... R....... 0,0-1080,998} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:363) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:271) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:298) at com.example.android.xyztouristattractions.ui.AttractionListActivity.showDebugDialog(AttractionListActivity.java:168) at com.example.android.xyztouristattractions.ui.AttractionListActivity.onOptionsItemSelected(AttractionListActivity.java:95) at android.app.Activity.onMenuItemSelected(Activity.java:2885) at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:404) at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147) at android.support.v7.internal.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100) at android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:583) at android.support.v7.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811) at android.support.v7.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:153) at android.support.v7.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958) at android.support.v7.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948) at android.support.v7.internal.view.menu.MenuPopupHelper.onItemClick(MenuPopupHelper.java:191) at android.widget.AdapterView.performItemClick(AdapterView.java:305) at android.widget.AbsListView.performItemClick(AbsListView.java:1146) at android.widget.AbsListView$PerformClick.run(AbsListView.java:3053) at android.widget.AbsListView$3.run(AbsListView.java:3860) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Once, 1 year ago
    Once, 1 year ago
    32 times, 1 year ago
    Once, 1 week ago
    89 more bugmates