App with wear os compose 1.0.0 alpha13 deployed on wear emulator crashes wenn I open the Layout Inspector in AS. Is it a known issue? With Layout Inspector closed, the App is just fine. Is any workaround to use Layout Inspector with wear os compose?
j
John Nichol
12/30/2021, 12:50 PM
Not an issue that I am aware of. Can you provide some details - probably best to raise a bug with details. What are the errors you are seeing?
John Nichol
12/30/2021, 1:41 PM
I have reproduced the problem - It doesn't seem to be related to alpha13 - I have tried alpha11, 12 and 13 and see the issue as well.
y
Yingding Wang
12/30/2021, 2:22 PM
@John Nichol Great that you can reproduce the problem. I am not sure whether it is a combination of emulator, AVD, compose preview and layout inspector. Since I am new to the compose and compose wear, I thought it would be great to examine the exact layout structure in layout inspector.
My error was:
com.example.android.wearable.composeforwearos A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 8476 (HeapTaskDaemon), pid 8462 (omposeforwearos)
Thanks @Yingding Wang - This looks to be some version dependency issue, but I haven't been able to work out exactly which combination yet. If you are interested in working against snapshot builds then the latest builds seem to be working fine