You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calinou
changed the title
Change drag preview property cause crash on build version
Change drag preview property cause crash when exported in release mode only
Feb 23, 2021
The engine takes ownership of whatever control you throw at set_drag_preview. Once the drag is completed, the control is deleted by the engine itself. Your var preview then becomes invalid. So it makes sense that clearing the var mitigates the crash.
Upgrade to 3.2.4 and change your check to if preview or if preview != null, you will get error in debug build. To avoid it properly you should do if is_instance_valid(preview).
Here's a similar recent issue: #46359
Tagging as documentation, #46360 will resolve this.
Upgrade to 3.2.4 and change your check to if preview or if preview != null, you will get error in debug build. To avoid it properly you should do if is_instance_valid(preview).
Here's a similar recent issue: #46359
Tagging as documentation, #46360 will resolve this.
Godot version:
3.2.3 official(steam version)
OS/device including version:
windows 10 professional
Issue description:
Change drag preview property will cause crash on build version( no crash on debug export or in game engine)
Steps to reproduce:
Use call_deferred cannot fix the crash
Maybe some relation with#36724
Minimal reproduction project:
PreviewCrash.zip
The text was updated successfully, but these errors were encountered: