Hi, so in a new Compose app project with only one ...
# compose
w
Hi, so in a new Compose app project with only one
OutlinedTextField
, the memory profiler, after setting focus on/selecting the text field without typing anything, shows that Java allocations are happening non-stop, it keeps goin up until it gets GCed, then start going up again over n over, am I missing something?
Copy code
MyApplicationTheme {
    // A surface container using the 'background' color from the theme
    Surface(color = MaterialTheme.colors.background) {
        OutlinedTextField(value = "Ok", onValueChange = {})
    }
}
j
This issue https://issuetracker.google.com/issues/196423718 might be related to what you are seeing in the profiler, sadly I wasn’t able to figure out why the resources weren’t being released and just switched to using a
TextField
. I hadn’t thought to check the profiler to see if it was happening outside the tests.
👍 1
w
yes I agree it is related, since it is active in the profiler and giving you "resource is not idle" error msg, hope we get a response from the Compose team