-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragging any Resource not recognized by the editor over the viewport crashes Godot #89093
Comments
Happens with any Resource not recognized by the editor. Fixing it requires a simple null check. |
I think it is actually related to #88829?
|
I have a fix ready but I'm not sure if I'm capturing all scenarios; @KoBeWi what other Resources did you test with? How did you get that log? |
This bug happens for any resource that isn't Texture2D or PackedScene. You can get a log by crashing in a build with debug symbols (e.g. |
Tested versions
v4.3.dev4.official [df78c06]
System information
Godot v4.3.dev4 - macOS 14.2.1 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (10 Threads)
Issue description
When dragging a theme over the viewport, the editor crashes.
Kapture.2024-03-02.at.18.35.44.mp4
I get this from the crash dialog, not sure if it helps:
If I don't hover with the dragged resource over the viewport and play a game of moving only around the editor, it doesn't crashes. So I assume that there is something going wrong when trying to make a preview of the resource in the viewport? or something like that 🤷♂️
Kapture.2024-03-02.at.18.38.44.mp4
Steps to reproduce
Download the project, drag the
res://UI/MainTheme.tres
into the viewport.Minimal reproduction project (MRP)
This is the current project I'm using on the videos. It is not a super minimal version of it, but it is small enough.
MRP.zip
The text was updated successfully, but these errors were encountered: