-
Notifications
You must be signed in to change notification settings - Fork 30.6k
[web] Image.network() drawing black if cacheWidth/cacheHeight set #160199
Copy link
Copy link
Closed
flutter-team-archive/engine
#57200Labels
a: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesc: regressionIt was better in the past than it is nowIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levele: 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.found in release: 3.27Found to occur in 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28Found to occur in 3.28has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform team
Description
Metadata
Metadata
Assignees
Labels
a: imagesLoading, displaying, rendering imagesLoading, displaying, rendering imagesc: regressionIt was better in the past than it is nowIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelUI glitches reported at the engine/skia or impeller rendering levele: 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.found in release: 3.27Found to occur in 3.27Found to occur in 3.27found in release: 3.28Found to occur in 3.28Found to occur in 3.28has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-webOwned by Web platform teamOwned by Web platform team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Steps to reproduce
Stable version 3.27.0,
Image.network()andFadeInImage.memoryNetwork()both draw black ifcacheWidth/cacheHeightorimageCacheWidth/imageCacheHeightis set.In Browser console:
WebGL: INVALID_VALUE: texImage2D: The source data has been detachedOn another note, I tried removing the cacheWidth/Height and Image eviction didn't work unless I refresh. Calling setState to refresh image didn't work either.
Expected results
I would expect an image to draw normally.
Actual results
The image draws black instead. Calling
setStateto refresh the image has no effect.Code sample
N/A
Screenshots or Video
N/A
Logs
Browser console:
WebGL: INVALID_VALUE: texImage2D: The source data has been detachedFlutter Doctor output