Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ParentFrameLayout not attached to window manager #226

Open
gaoyouhuang opened this issue Feb 15, 2023 · 0 comments
Open

ParentFrameLayout not attached to window manager #226

gaoyouhuang opened this issue Feb 15, 2023 · 0 comments

Comments

@gaoyouhuang
Copy link

偶现闪退Bug 麻烦看看呢 使用setLayout(View)方式
Caused by: java.lang.IllegalArgumentException: View=com.lzf.easyfloat.widget.ParentFrameLayout{7ee519b V.E...... ......I. 0,0-336,303} not attached to window manager
at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:696)
at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:565)
at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:212)
at com.lzf.easyfloat.core.TouchUtils.updateFloat(TouchUtils.kt:156)
at com.lzf.easyfloat.core.FloatingWindowHelper$addView$1.onTouch(FloatingWindowHelper.kt:130)
at com.lzf.easyfloat.widget.ParentFrameLayout.onInterceptTouchEvent(ParentFrameLayout.kt:45)
at android.view.ViewGroup.checkInterception(ViewGroup.java:2782)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2838)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3326)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2987)
at android.view.View.dispatchPointerEvent(View.java:15112)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:7915)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:7649)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:7043)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:7100)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:7066)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:7248)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:7074)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:7305)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:7047)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:7100)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:7066)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:7074)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:7047)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:10482)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:10384)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:10337)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:10729)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:310)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:283)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:10641)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:10899)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1394)
at android.view.Choreographer.doCallbacks(Choreographer.java:1115)
at android.view.Choreographer.doFrame(Choreographer.java:996)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1362)
at android.os.Handler.handleCallback(Handler.java:966)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.app.ActivityThread.main(ActivityThread.java:9596)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant