-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#22807Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolee: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryPerformance issues related to memoryplatform-webWeb applications specificallyWeb applications specifically
Description
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.
jans-y
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolee: web_canvaskitCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for WebCanvasKit (a.k.a. Skia-on-WebGL) rendering backend for Webengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryPerformance issues related to memoryplatform-webWeb applications specificallyWeb applications specifically