Closed Bug 1690821 Opened 3 years ago Closed 3 years ago

Add diagnostic assert if we encounter a stale blob key in the content process

Categories

(Core :: Graphics: WebRender, task, P3)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The blob image code is written as if the blob key can never become invalid, unlike the image keys used for shared surfaces. Let's add a diagnostic assert to make sure this is true as there is suspicious behaviour in bug 1645841.

This patch adds a diagnostic assert to check if the namespace of the
blob image key matches the current namespace of the process's
WebRenderBridgeChild. Other long lived users of image keys (i.e. shared
surfaces produced by imagelib) have to check to ensure their cached
image keys haven't gone out of scope due to a namespace update (e.g. tab
moved to a new window, GPU process crash). The caching for blob images
however is very different and should be cleared in these cases. This
assert will confirm this.

Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2de18f2d894
Add diagnostic assert to ensure we aren't using stale blob keys. r=jrmuizel

Backed out for possibly causing reftest crashes in table-cell-breaking-1a.html:

https://hg.mozilla.org/integration/autoland/rev/78e94c5ff0474db6407bc5baa37504d12975d99d

Failure log: https://treeherder.mozilla.org/logviewer?job_id=328855800&repo=autoland
Backfills don't work because of a different issue affecting previous pushes.

Flags: needinfo?(aosmond)
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cb6131fc97c9
Add diagnostic assert to ensure we aren't using stale blob keys. r=jrmuizel
Flags: needinfo?(aosmond)
Summary: Add diagnostic assert if we encounter a stale blob key → Add diagnostic assert if we encounter a stale blob key in the content process
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: