Skip to content

Camera preview does not render with Impeller+OpenGLES on Emulator API v28 #159851

@camsim99

Description

@camsim99

@matanlurey update on 2024-12-12:

It appears that on an Android API 28 Emulator (which automatically runs on OpenGLES), no picture shows up.

From talking to @jonahwilliams, this might be fixable but the Impeller team will need to take a look likely in Q1.


When running on current latest flutter/flutter master branch and flutter/packages main branch, when running flutter run for the camera/camera_android_camerax/example app on devices using the Impeller Open GL backend (and as of testing 12/11, the Vulkan backend), the preview does not render at all when a camera is selected.

When running flutter run --no-enable-impeller to run the app and use the Skia Open GL backend, it does render correctly.

TODO(camsim99): Add visual for Vulkan backend.

Devices tested:

  • Pixel emulator running API 28; results:
Impeller Open GL behavior Skia Open GL behavior
impeller1.webm impeller2.webm (this is slow but the preview eventually appears
  • Samsung Galaxy J7 running API 27

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsfyi-androidFor the attention of Android platform teamp: cameraThe camera pluginplatform-androidAndroid applications specificallyteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions