The error "Activity OfficeChecker has leaked window DecorView that was originally added here."



  • What kind of mistake is that and why is it? None of these classes are in my annex. com.olivephone.edit.update.OfficeChecker)

    ERROR/WindowManager(16794): Activity com.olivephone.edit.update.OfficeChecker has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@408bc380 that was originally added here
            android.view.WindowLeaked: Activity com.olivephone.edit.update.OfficeChecker has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@408bc380 that was originally added here
            at android.view.ViewRoot.<init>(ViewRoot.java:288)
            at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:249)
            at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:193)
            at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:118)
            at android.view.Window$LocalWindowManager.addView(Window.java:532)
            at android.app.Dialog.show(Dialog.java:269)
            at android.app.ProgressDialog.show(ProgressDialog.java:115)
            at android.app.ProgressDialog.show(ProgressDialog.java:103)
            at com.olivephone.edit.update.OfficeChecker.onCreate(OfficeChecker.java:54)
            at android.app.Activity.performCreate(Activity.java:4397)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1779)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831)
            at android.app.ActivityThread.access$500(ActivityThread.java:122)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:132)
            at android.app.ActivityThread.main(ActivityThread.java:4123)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:491)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
            at dalvik.system.NativeStart.main(Native Method)
    


  • Every window has its parent if it closes the parent before closing the descendants is a mistake: window leak is a leak. This usually occurs when dialogue is created from the activism, then the activism is closed, and the dialogue remains hanging (in reality the window system still closes it).

    Accordingly, the error indicates the place where the dialogue was added to enable the developer to process the place correctly.

    The mistake is undead, but unpleasant.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2