Status Update
Comments
ak...@google.com <ak...@google.com>
bo...@google.com <bo...@google.com> #2
ya...@google.com <ya...@google.com> #3
Please provide info on the device model and API level used to reproduce the bug.
Running the sample above (with surface) at tip of tree on a pixel 7 device, I am able to observe the text change and button's ripple effect.
cl...@gmail.com <cl...@gmail.com> #4
I have attached a reproducer project. I think the key point is to also wrap RootContent
with Surface {}
.
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
Surface {
RootContent()
}
}
}
}
ya...@google.com <ya...@google.com> #5
Reproducible on an API 34 emulator.
Properties
avd.ini.displayname Pixel 7 API 34
avd.ini.encoding UTF-8
AvdId Pixel_7_API_34
disk.dataPartition.size 6442450944
fastboot.chosenSnapshotFile
fastboot.forceChosenSnapshotBoot no
fastboot.forceColdBoot yes
fastboot.forceFastBoot no
hw.accelerometer yes
hw.arc false
hw.audioInput yes
hw.battery yes
hw.camera.back virtualscene
hw.camera.front emulated
hw.cpu.ncore 4
hw.device.hash2 MD5:3db3250dab5d0d93b29353040181c7e9
hw.device.manufacturer Google
hw.device.name pixel_7
hw.dPad no
hw.gps yes
hw.gpu.enabled yes
hw.gpu.mode auto
hw.initialOrientation Portrait
hw.keyboard yes
hw.lcd.density 420
hw.lcd.height 2400
hw.lcd.width 1080
hw.mainKeys no
hw.ramSize 2048
hw.sdCard yes
hw.sensors.orientation yes
hw.sensors.proximity yes
hw.trackBall no
image.androidVersion.api 34
image.sysdir.1 system-images/android-34/google_apis_playstore/arm64-v8a/
PlayStore.enabled true
runtime.network.latency none
runtime.network.speed full
showDeviceFrame yes
skin.dynamic yes
tag.display Google Play
tag.id google_apis_playstore
tag.ids google_apis_playstore
vm.heapSize 228
ma...@trimble.com <ma...@trimble.com> #6
It's also reproducible with Compose 1.8.0-alpha05
and M3 1.2.0
. Not reproducible with Compose 1.8.0-alpha04
and M3 1.2.0
. Looks like the regression was introduced in Compose 1.8.0-alpha05
.
ya...@google.com <ya...@google.com> #7
Thanks for the detailed repro and information, this was really helpful.
I traced this down to
Here's a CL with this repro and the revert
George, it looks like this CL initially was a fix to a crash - we decided not to cherry pick the fix for this this crash in 1.7. Given that the crash still exists in 1.7, maybe we should just revert this fix out of 1.8 to not block 1.8 release (assuming it is safe to do so), and try and fix this in 1.9?
ca...@google.com <ca...@google.com> #8
The issue seems specifically related to ReusableContent and layers (SaveableStateProvider uses ReusableContent internally), I guess we made some assumptions that don't work in the reuse case
ya...@google.com <ya...@google.com> #9
The parent layer isn't being invalidated when a layer is being removed. Not sure how that was missed in some cases, but not others. I'll investigate further to see where it is currently being invalidated and see where the right place is to invalidate the parent layer.
ya...@google.com <ya...@google.com> #11
de...@google.com <de...@google.com>
de...@google.com <de...@google.com> #12
sa...@outlook.com <sa...@outlook.com> #13
I was also experiencing this issue on my Nvidia 1660 Super Graphics card, on the latest 32.1.12 stable.
I can confirm that using the 33.1.2 canary (I wasn't able to find the 33.1.3 canary publicly) appears to have fixed the issue.
li...@gmail.com <li...@gmail.com> #14
Same issue with flickering.
I am using Pixel_7_API_33 with AS Hedgehog Canary 3. 1650 discrete graphics with latest 531.79 drivers. The emulator version is 33.1.10-10078095.
Description
Android Studio Version: Unknown
Emulator Version (Emulator--> Extended Controls--> Emulator Version): 32.1.11-9536276
HAXM / KVM Version: WHPX 10.0.22623
Android SDK Tools: 26.1.1
Host Operating System: Windows 10 Home Single Language
CPU Manufacturer: AMD CPU
Inside a VM
64-bit CPU
RAM: 7599 MB
GPU: GPU #1
Make: 10de
Model: NVIDIA GeForce GTX 1650
Device ID: 1f99
Build Fingerprint:
AVD Details: Name: google_service
CPU/ABI: x86_64
Path: C:\Users\Aryan Bisht\.android\avd\google_service.avd
Target: google_apis_playstore [Google Play] (API level 30)
Skin: pixel_4
SD Card: 512M
AvdId: google_service
PlayStore.enabled: true
avd.ini.displayname: google service
avd.ini.encoding: UTF-8
disk.dataPartition.size: 6442450944
fastboot.chosenSnapshotFile:
fastboot.forceChosenSnapshotBoot: no
fastboot.forceColdBoot: no
fastboot.forceFastBoot: yes
hw.accelerometer: yes
hw.arc: false
hw.audioInput: yes
hw.battery: yes
hw.camera.back: virtualscene
hw.camera.front: emulated
hw.cpu.ncore: 4
hw.dPad: no
hw.device.hash2: MD5:6b5943207fe196d842659d2e43022e20
hw.device.manufacturer: Google
hw.gps: yes
hw.gpu.enabled: yes
hw.gpu.mode: auto
hw.initialOrientation: Portrait
hw.keyboard: yes
hw.lcd.density: 440
hw.lcd.height: 2280
hw.lcd.width: 1080
hw.mainKeys: no
hw.ramSize: 1536
hw.sdCard: yes
hw.sensors.orientation: yes
hw.sensors.proximity: yes
hw.trackBall: no
image.sysdir.1: system-images\android-30\google_apis_playstore\x86_64\
runtime.network.latency: none
runtime.network.speed: full
showDeviceFrame: yes
skin.dynamic: yes
tag.display: Google Play
vm.heapSize: 228
Steps to Reproduce Bug:Screen is flickering.
Expected Behavior:
Observed Behavior: