Status Update
Comments
pe...@google.com <pe...@google.com> #2
Does the program work without the compiler switch. That is, is `"-P", "plugin:androidx.compose.compiler.plugins.kotlin:experimentalStrongSkipping=true",` required to reproduce or is just changing the runtime enough?
to...@gmail.com <to...@gmail.com> #3
Sorry for that, I will try to extract an example when I'm free.
ap...@google.com <ap...@google.com> #4
I have find a sample code to reproduce that
setContent {
val dialogState = remember { DialogState() }
dialogState.Intercept()
LaunchedEffect(Unit) {
delay(1000)
dialogState.bgWork {
delay(5000)
}
dialogState.showSelectActions {
onSelect("a") {
}
onSelect("b") {
}
}
}
}
You can find implementation of DialogState
here
pe...@google.com <pe...@google.com> #5
Let me sort it out
The first crash
Reproduce: navigate to a gallery and navigate back
The reason is we have some code assume the forget order of RememberObserver(DisposableEffect), and 52835066c9044647a65dfb566f03131aab46e793
changed the order. Seems this is a intended behaviour.
I will fix it from my side. My bad
The second crash
Reproduce: #4 comment
StackTrace:
We got a wrong object from SlotTable during recompose
to...@gmail.com <to...@gmail.com> #6
And interestingly, if we insert delay(1000) between two dialog suspend usage
dialogState.bgWork {
delay(5000)
}
delay(1000)
dialogState.showSelectActions {
onSelect("a") {
}
onSelect("b") {
}
}
It will not crash
na...@google.com <na...@google.com> #7
As for the order of `onForgotten`, it may be you are seeing and issue that I fixed in a subsequent version as this, for the snapshot builds, was broken for a few weeks when using the non-skipping group optimization even indirectly.
Description
Artifact used (ex. androidx.appcompat:appcompat:1.0.0-alpha1): UIAutomator Version used: 2.2.0
I have a simple Compose UI with a
Text(text = "$title\n ")
UIAutomator dump says:
<node index="0" text="All albums " resource-id="" ...
This element can't be find with the current
By.textContains
andBy.textStartsWith
. I'm not regex expert but I think the $ without enabling multiline in the regexp is the cause.