Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
rv...@google.com <rv...@google.com>
rv...@google.com <rv...@google.com> #2
Hi, thanks for report!
Could you attach a bit more information about the heap at this point (e.g. a heap dump) if the leak is not reproducible in trivial project?
ap...@google.com <ap...@google.com> #3
Attached!
vi...@google.com <vi...@google.com>
rv...@google.com <rv...@google.com> #4
Comment has been deleted.
pr...@google.com <pr...@google.com> #5
I managed to repro it after a bunch of debugging. The bad news is that it's caused when using
Repro:
- Add
implementation io.coil-kt:coil-compose:2.1.0
to build.gradle - Add the following composable:
@Composable fun Leak() {
val lazyListState = rememberLazyListState()
val items by remember { mutableStateOf(List(10000) { it }) }
LazyColumn(state = lazyListState) {
items(items) {
Box(Modifier.fillMaxWidth()) {
AsyncImage(
model = "https://i.picsum.photos/id/104/200/200.jpg?hmac=3XxEVXVjwoI45-6sum_iMwNZ52GT-SJacVWr4fh4hqI",
contentDescription = null
)
}
}
}
}
- Scroll
- Memory 📈
Description
Component used: TV
Version used: 1.0.0-alpha03
Devices/Android versions reproduced on: Android TV API 30 (AVD)
Codes:
Stack trace: