Skip to content

OpenGL leak on Android and iOS #89658

@linroid

Description

@linroid

We received lots of OpenGL leak reports from our production Android app. flutter app is an embedded module of our app, we destroy the flutter engine after the flutter page is finished.

After a hard investigation, we confirmed that OpenGL resources don't get released as expected after the flutter engine exited. The root cause is that releaseResourcesAndAbandonContext() is called on the platform thread, which should be on the rasterizer thread.

I'll create a fixing PR soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowa: productionIssues experienced in live production appsengineflutter/engine related. See also e: labels.platform-androidAndroid applications specificallyplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions