评论

ANDROID 微信支付回调后抛UIPageFragmentActivity WindowLeaked

UIPageFragmentActivity WindowLeaked

在唤醒微信支付并且支付成功之后,莫名其貌抛了一个异常,一直无法找到原因

Removing Window{6b3ce09 u0 com.tencent.mm/com.tencent.kinda.framework.app.UIPageFragmentActivity} from AppWindowToken{6b0fd67 token=Token{6c59571 ActivityRecord{71251c9 u0 com.tencent.mm/com.tencent.kinda.framework.app.UIPageFragmentActivity t11969}}}

2020-03-23 11:51:53.642 9898-9898/? E/WindowManager: android.view.WindowLeaked: Activity com.tencent.kinda.framework.app.UIPageFragmentActivity has leaked window DecorView@47cc5dc[UIPageFragmentActivity] that was originally added here

        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:666)

        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:418)

        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:118)

        at android.app.Dialog.show(Dialog.java:448)

        at com.tencent.mm.ui.widget.a.d.show(SourceFile:1003)

        at com.tencent.mm.ui.base.h.a(SourceFile:302)

        at com.tencent.mm.ui.base.h.a(SourceFile:283)

        at com.tencent.kinda.framework.widget.base.AlertDialogImpl.showTipsImpl(SourceFile:201)

        at com.tencent.kinda.gen.IUIPage$CppProxy.native_onClickAndroidBack(Native Method)

        at com.tencent.kinda.gen.IUIPage$CppProxy.onClickAndroidBack(SourceFile:188)

        at com.tencent.kinda.framework.app.MainFragment.onBackPressed(SourceFile:109)

        at com.tencent.kinda.framework.app.UIPageFragmentActivity.onBackPressed(SourceFile:210)

        at android.app.Activity.onKeyUp(Activity.java:3756)

        at com.tencent.mm.ui.MMActivity.onKeyUp(SourceFile:430)

        at android.view.KeyEvent.dispatch(KeyEvent.java:2949)

        at android.app.Activity.dispatchKeyEvent(Activity.java:4092)

        at android.support.v4.app.SupportActivity.superDispatchKeyEvent(SourceFile:108)

        at android.support.v4.view.e.a(SourceFile:84)

        at android.support.v4.app.SupportActivity.dispatchKeyEvent(SourceFile:126)

        at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(SourceFile:535)

        at com.tencent.mm.ui.MMFragmentActivity.dispatchKeyEvent(SourceFile:811)

        at android.support.v7.view.i.dispatchKeyEvent(SourceFile:59)

        at android.support.v7.app.AppCompatDelegateImpl$d.dispatchKeyEvent(SourceFile:2533)

        at com.android.internal.policy.DecorView.dispatchKeyEvent(DecorView.java:454)

        at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:5742)

        at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5610)

        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5058)

        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5111)

        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5077)

        at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5234)

        at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5085)

        at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5291)

        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5058)

        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5111)

        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5077)

        at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:5085)

        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5058)

        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5111)

        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:5077)

        at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5267)

        at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:5437)

        at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:3072)

        at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2615)

        at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2606)

        at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:3049)

        at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:143)

        at android.os.MessageQueue.nativePollOnce(Native Method)

        at android.os.MessageQueue.next(MessageQueue.java:363)

        at android.os.Looper.loop(Looper.java:173)

        at android.app.ActivityThread.main(ActivityThread.java:8147)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)

点赞 0
收藏
评论

2 个评论

  • RexChen
    RexChen
    2020-11-03

    兄弟 留个邮箱

    2020-11-03
    赞同
    回复
  • 海一望无际,我在浪里
    海一望无际,我在浪里
    2020-09-28

    解决没?我也遇到这个问题

    2020-09-28
    赞同
    回复
登录 后发表内容