这是indexloc提供的服务,不要输入任何密码
Skip to content

[Flutter GPU] Fix Android/GLES crashers. #172588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bdero
Copy link
Member

@bdero bdero commented Jul 22, 2025

Continuation of #165630.

Resolves #164278.
Resolves bdero/flutter_scene#35.
Partly fixes: #160948.

@github-actions github-actions bot added engine flutter/engine repository. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Jul 22, 2025
@github-project-automation github-project-automation bot moved this to 🤔 Needs Triage in Flutter GPU Jul 22, 2025
@bdero bdero moved this from 🤔 Needs Triage to ⚙️ In Progress in Flutter GPU Jul 22, 2025
@bdero bdero requested a review from chinmaygarde July 22, 2025 23:40
@@ -88,12 +88,12 @@ struct TexImage2DData {
type = GL_UNSIGNED_BYTE;
break;
case PixelFormat::kR32G32B32A32Float:
internal_format = GL_RGBA;
internal_format = GL_RGBA32F;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does some form of capability checking already exist for these?

Fixing the enum values here sgtm though.

@@ -75,7 +75,9 @@ class TextureGLES final : public Texture,
std::shared_ptr<ReactorGLES> reactor,
TextureDescriptor desc);

TextureGLES(std::shared_ptr<ReactorGLES> reactor, TextureDescriptor desc);
TextureGLES(std::shared_ptr<ReactorGLES> reactor,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's document the argument. Something like, "Whether the calling thread has a reactor worker.". Or something that ties the usage to the way the reactor works.

Thinking about this some more, can't this value be implicitly determined using ReactorGLES::CanReactOnCurrentThread?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e: impeller Impeller rendering backend issues and features requests engine flutter/engine repository. See also e: labels. flutter-gpu
Projects
Status: ⚙️ In Progress
Development

Successfully merging this pull request may close these issues.

flutter_gpu - potential memory leak on Android (Vulkan) Impeller GPU calls fail to render on Windows (GLES) Out of memory error
2 participants