Repository navigation
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-androidAndroid applications specificallyAndroid applications specificallyplatform-views: hcIssues specific to the Hybrid Composition platform views backendIssues specific to the Hybrid Composition platform views backendplatform-views: hcppIssues which affect the HCPP platform views backendIssues which affect the HCPP platform views backendplatform-views: tlhcIssues specific to the Android Texture Layer Hybrid Composition platform views backendIssues specific to the Android Texture Layer Hybrid Composition platform views backendplatform-views: vdIssues specific to the Android VirtualDisplay platform views backendIssues specific to the Android VirtualDisplay platform views backendteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
When updating test target linux_android_emu to depend on an AVD that supports Android 16, all test targets on CI pass except for android_engine_vulkan_tests. The failing tests suggest this could be an issue with virtual display TLHC, which could be no longer working on Android 16 (possibly due to an Android change). PR with Android 16 AVD here and error logs here.
One such failing test is driver test surface_texture_smiley_face_main.dart.
Steps to Reproduce:
- Update
avd_cipd_versionandandroid_virtual_devicein the .ci.yaml to these 36 values here - Create then run a API 36 emulator. I used a Pixel 9 API 36 emulator. Directions here
- Run
flutter run lib/external_texture/surface_texture_smiley_face_main.dartfromflutter/dev/integration_tests/android_engine_test
Expected Behavior
A smiley face exists behind a dialog box
Actual Behavior
A black screen is behind a dialog box
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listplatform-androidAndroid applications specificallyAndroid applications specificallyplatform-views: hcIssues specific to the Hybrid Composition platform views backendIssues specific to the Hybrid Composition platform views backendplatform-views: hcppIssues which affect the HCPP platform views backendIssues which affect the HCPP platform views backendplatform-views: tlhcIssues specific to the Android Texture Layer Hybrid Composition platform views backendIssues specific to the Android Texture Layer Hybrid Composition platform views backendplatform-views: vdIssues specific to the Android VirtualDisplay platform views backendIssues specific to the Android VirtualDisplay platform views backendteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Activity
jonahwilliams commentedon Jun 6, 2025
surface_texture_smiley_face_main is not using virtual display, its using texture composition
reidbaker commentedon Jun 6, 2025
My pixel 8a running android 36 shows the following image from
reidbaker commentedon Jun 6, 2025
My pixel 8a running android 36 shows the following image from
reidbaker commentedon Jun 6, 2025
Testing on an emulator running android api 36 shows a black screen for 09405e8
flutter run lib/external_texture/surface_producer_smiley_face_main.dartflutter run lib/external_texture/surface_producer_smiley_face_main.dartflutter run lib/platform_view/texture_layer_hybrid_composition_platform_view_main.dartflutter run lib/platform_view_tap_color_change_main.dartflutter run lib/platform_view/hybrid_composition_platform_view_main.dartflutter run lib/platform_view/virtual_display_platform_view_main.dartflutter run lib/hcpp/platform_view_main.dartflutter run lib/hcpp/platform_view_overlapping_main.dartflutter run lib/hcpp/platform_view_overlapping_main.dartTesting these on an emulator crashes the emulator.
flutter run lib/hcpp/platform_view_main.dartThe following apps ran successfully.
flutter run lib/flutter_rendered_blue_rectangle_main.dartreidbaker commentedon Jun 6, 2025
Given how many modes are having issues but they are all on emulators I am going to pass this over to the engine team for investigation.
@jonahwilliams My hope is that there is something these tests need to opt into or out of if that is the case can you comment what the things are and I will get the the tests are migrated.
60 remaining items
flutter-triage-bot commentedon Jul 10, 2026
This issue was assigned to @reidbaker but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed.
reidbaker commentedon Jul 17, 2026
Context from triage: The issue currently is not that platform views do not display on emulators it it is that they do not display on emulators that work in luci. The root cause last time this was investigated was that the luci config we use for emaultors (a dependency we download that downloads something else) has in it proto config a renderer that is incompatible with platform views for api 36. The android emulator team changed the default for the public so this is not an issue for them. For chrome changing the renderer caused too many issues with their visual tests so it was specified to be the older renderer.
Flutter does not control those configs or the software that links those configs to luci enabled emulators.
Update MapEntry(.ci.yaml: (592cb55, # Describes the targets run in co…
[Android 16] Updated linux_android_emu to a 36 AVD in framework CI (#…
[Android 16] Update `android_engine_vulkan_tests` to Test Against SDK…
Revert "[Android 16] Update `android_engine_vulkan_tests` to Test Aga…
[Android 16] Use AVD With New Android Renderer (#179306)
[Android] Upgrade linux_android_emu_vulkan_stable AVD and temporarily…
[Android] Upgrade linux_android_emu_vulkan_stable AVD and temporarily…
[Android] Upgrade linux_android_emu_vulkan_stable AVD and temporarily…