Skip to content

Error occurs when destroying an Arc with an active Tween #7217

@laineus

Description

@laineus

Version

  • Phaser Version:

v3.90.0

  • Operating system:

Linux

  • Browser:

Google Chrome 142.0.7444.175

Description

I applied a tween that modifies the radius of a circle.
If the circle is destroyed while the tween is still running, the following error occurs and the process stops:

Uncaught TypeError: Cannot convert undefined or null to object

Tweens that modify regular GameObject properties (e.g., alpha) work fine — it only seems to happen when changing geometry-related values like radius.

Example Test Code

Below is a minimal reproduction demo:
https://codepen.io/laineus/pen/emZRqLm

Click the circle to destroy it, and the issue will occur.

Additional Information

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