Skip to content

Framebuffer status: Incomplete Attachment error - on WebGL + Phaser.Scale.RESIZE when parent is hidden #7221

@wilczakadam

Description

@wilczakadam

Version

  • 3.90.0 (Happens from 3.85.0 onwards)
  • MacOS
  • Google Chrome

Description

It seems that the exact issue described here #5478 has resurfaced again. We recently updated Phaser from 3.80.1 to 3.90.0 and started having this issue happening in our app, where basically we have the Phaser instance inside a tab of a tabbed form component, and switching away to other tab (which appplies "display: none" to the original tab containing Phaser) causes this error to happen and Phaser crashes.

It seems to only happen with WebGL renderer type and Phaser.Scale.RESIZE scaling mode. I've also checked the versions and the issue starts appearing in 3.85.0 (Works fine in 3.80.1). Below is a reproduction codepen that causes this error to happen. Hiding the parent with "display; none" causes this error to be thrown:

Image

Example Test Code

https://codepen.io/nartyjezusa/pen/jEqYyxb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions