Bug P3
Status Update
Comments
ga...@google.com <ga...@google.com> #2
Can you attach / share a project that reproduces the issue?
da...@gmail.com <da...@gmail.com> #3
Now i sure this is viewpager2's bug.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
because just occur recyclerview inside viewpager2 with constraintlayout, if paging3 use Independently with viewpage2 it's not problem.
da...@gmail.com <da...@gmail.com> #5
deleted
Description
Version used: 1.2.0-rc01
Devices/Android versions reproduced on: WearOS 3/4 emulator, probably any watch but tested on Galaxy Watch 5 and Google Pixel Watch 1
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
It is faster to reproduce if ambient screen is disabled (it happened also when ambient screen is on but we need to wait when screen is off). Two different watch faces in same package. Select Dummy 1 (disable screen doesn't force the crash), change watch face to Dummy 2 then disable screen and:
Fatal Exception: java.lang.IllegalStateException: Surface has already been released.
at android.view.Surface.checkNotReleasedLocked(Surface.java:632)
at android.view.Surface.unlockCanvasAndPost(Surface.java:358)
at com.android.internal.view.BaseSurfaceHolder.unlockCanvasAndPost(BaseSurfaceHolder.java:226)
at androidx.wear.watchface.Renderer$CanvasRenderer.renderBlackFrame$watchface_release(Renderer.kt:760)
at androidx.wear.watchface.WatchFaceImpl$1.onDisplayChanged(WatchFace.kt:687)
at android.hardware.display.DisplayManagerGlobal$DisplayListenerDelegate.handleMessage(DisplayManagerGlobal.java:633)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6680)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)