Skip to content

Bind attempt of recently deleted buffers and textures #492

@estobbart

Description

@estobbart

During a Lightning GC cycle texturs & buffers are GL deleted but kept in JS scope. On the draw call that occurs immediately following the GC cycle, Lightning attempts to bind to the recently deleted buffers and textures.
This can be repro'd with the TMDB app running on Chrome and navigating through the content on the top level pages.
I also reduced the memoryPressure value to get the Lightning GC to occur more often.
You can see from the browser console logs..

WebGL: INVALID_OPERATION: bindFramebuffer: attempt to use a deleted object
WebGL: INVALID_OPERATION: bindTexture: attempt to use a deleted object

I checked and reproduced this on three different Lightning versions. 2.4, 2.6 & 2.10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions