Skip to content

[web] SkAnimatedImage leaks #50409

@PonyCui

Description

@PonyCui

Environment: The Flutter Web Skia backend.

Problem: Load image using Image.memory or Image.network, change difference image randomly. Check memory usage in Chrome or Safari, the heap memory increase and never collected.

The SkAnimatedImage cause the problem, the skiaInstantiateImageCodec method always return an SkAnimatedImage instance, the dispose may not clear memory expectantly.

Try to replace MakeAnimatedImageFromEncoded to MakeImageFromEncoded, problem solved.

@yjbanov

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: crashStack traces logged to the consolee: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryplatform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions