Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Dialog.show() has thrown a WindowLeaked
    Android
    255
    155
    6
  2. ViewRootImpl.<init>() has thrown a WindowLeaked
    Android
    340
    199
    9

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
android.view.WindowLeaked: Activity com.example.cardboard.video.VideoCardBoardActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{3619b1f V.E...... R....... 0,0-2560,1440} that was originally added here
    at android.view.ViewRootImpl.<init>(ViewRootImpl.java:369)
    at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299)
    at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
    at android.app.Dialog.show(Dialog.java:319)
11 frames hidden

Solution

chinthana10 months ago

Occurs due to dialogs which are not dismissed properly and if your activity has been destroyed but your dialog is still showing. Dismiss on activity's onDestroy().

if (dialog != null) {
        dialog.dismiss();
        dialog = null;
}

Check the source of this solution for more info

External results for this pattern (10)

  1. Avamandervia GitHub2 days ago
    Activity com.nutomic.syncthingandroid.activities.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{420fb360 V.E..... R......D 0,0-684,192} that was originally added here
    Show stack trace
  2. sachin-varshneyvia GitHub3 days ago
    Activity com.successive.logicspaybill.activities.LoginActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{21cd8156 V.E..... R......D 0,0-576,116} that was originally added here
    Show stack trace
  3. CodeHungervia GitHub4 days ago
    Activity com.CordovaApp.CordovaApp has leaked window com.icy.impl.PhoneWindow$DecorView{4287f528 V.E..... R....... 0,0-1048,576} that was originally added here
    Show stack trace
  4. TheGamer007via GitHub4 weeks ago
    Activity crux.bphc.cms.TokenActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{2a5d01ea V.E..... R......D 0,0-684,232} that was originally added here
    Show stack trace
  5. wuxiaojun123via GitHub1 month ago
    Activity com.test.aaa.MainActivity has leaked window DecorView@7650c16[] that was originally added here
    Show stack trace
  6. kingkarkivia GitHub1 month ago
    Activity com.synconset.MultiImageChooserActivity has leaked window DecorView@d446445[Processing images] that was originally added here
    Show stack trace
  7. brunolemosvia GitHub1 month ago
    Activity com.xapps.x.MainActivity has leaked window DecorView@4c2ceb2[] that was originally added here
    Show stack trace
  8. aaferrarivia GitHub2 months ago
    Activity com.haringeymobile.ukweather.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{288c789c V.E..... R......D 0,0-456,174} that was originally added here
    Show stack trace
  9. efryntovvia GitHub2 months ago
    Activity xxxxx has leaked window DecorView@73fbeee[] that was originally added here
    Show stack trace
  10. elrufoelrufovia GitHub2 months ago
    Activity xxx.xxxxx.xxxxxxx.MainActivity has leaked window DecorView@ad6d0b3[] that was originally added here
    Show stack trace