Skip to content

Editor randomly crashes when select a tree node and close the scene tab #108783

@xuwaters

Description

@xuwaters

Tested versions

  • Reproducible in 4.5-dev [b3c7beb]
  • Not reproducible in earlier versions

System information

MacOS - godot 4.5 master-71a9948157

Issue description

After applying PR #108122, when closing the scene tab, the pointers in LocalVector<Node *> node_previous_selection become dangling pointers, which causes random crash.

Reference: #108122 (comment)

Steps to reproduce

  • Open a scene
  • select a tree node
  • close the scene tab
  • editor crashes

Minimal reproduction project (MRP)

editor-crash.tgz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Release Blocker

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions