Skip to content

Using pointers as part of properties crash the editor without any error #1105

Open
@xana43

Description

so I was trying to get a reference to an AudioStreamPlayer from the Scene tree using properties. but for some reason when the property is returning through it's getter it just crashes the editor it doesn't even have any error messages

image

steps to reproduce:
1. start a new project with the latest version of godot and the latest version of GDExtension
2. create a custom class that has a getter an a setter with the getter returning a pointer to the AudioStreamPlayer
3. set the AudioStreamPlayer into the editor property slot
4. experience a super silent crash

EDIT: after further testing it appears that any object that is passed with a pointer to the ClassDB::add_property() bind ends up crashing the editor, and under as of now unknown conditions it doesn't crash, the crashing seems to be consistent though

Metadata

Assignees

No one assigned

    Labels

    crashtopic:gdextensionThis relates to the new Godot 4 extension implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions