Closed Bug 1039535 Opened 10 years ago Closed 9 years ago

Ensure that a TextureClient's shared data is not destroyed before the TextureHost deserializes it.

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1200595

People

(Reporter: nical, Unassigned)

References

Details

With some TextureClient implementations, we run into the issue of having a some shared data serialized on the client side, then the client objetcs is destroyed before the host gets a chance to deserialize it, which means that it receives a handle to data that has been destroyed.
So far it mostly happened in the same-process scenario, with pointers that we pass through ipc as uintptr_t. So we addref it when serializing and release when deserializing. We do ensure that deserialization always happen for each successful serialization.
This is a bit fragile and doesn't work with shared handles such as DXGI handles.
For now this is fixed on a per-texture-type basis, including DXGI textures.
Assignee: nical.bugzilla → nobody
Bug 1200595 fixes this.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.