Thread
#compose
    myanmarking

    myanmarking

    11 months ago
    Whenever i have the keyboard opened on some field, and i click on a button that changes fragment, this error happens
    java.lang.IllegalArgumentException: View=androidx.compose.ui.window.PopupLayout{f92decc V.E...... ......ID 0,0-54,66 #1020002 android:id/content} not attached to window manager
    at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:604)
    at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:493)
    at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:121)
    at androidx.compose.ui.window.PopupLayout.updatePosition(AndroidPopup.android.kt:584)
    at androidx.compose.ui.window.PopupLayout.onGlobalLayout(AndroidPopup.android.kt:683)
    at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1087)
    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3758)
    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2631)
    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:9984)
    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1010)
    at android.view.Choreographer.doCallbacks(Choreographer.java:809)
    at android.view.Choreographer.doFrame(Choreographer.java:744)
    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:995)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:246)
    at android.app.ActivityThread.main(ActivityThread.java:8512)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
    this is related to the cursor handle. To reproduce, have a toolbar with a back icon that goes to the previous fragment. Open any textfield that uses a cursor handle - with the keyboard opened, just click the toolbar icon to go back to another fragment.
    probably only happens with fragments+compose
    is this issue reported already ?