Closed afterlightgames closed 2 weeks ago
Good find! Having tested MRP on 4.3, I can confirm that the failure does indeed occur.
I also tested this on 4.2.2, there is no crash there but an error occurs:
Tested with latest master v4.4.dev.custom_build [826de7976], there is the point of the crash and the backtrace:
I also tested this on 4.2.2, there is no crash there but an error occurs:
I got the crash in this version too, seems to be something random, sometimes crash, sometimes gives the error
https://github.com/user-attachments/assets/5d2dcec2-0752-4768-9208-61889d76c235
CC @HolonProduction
Only triggers, if the node the script is attached to does not inherit Area2D
, so probably we are trying to guess the return type on the inner class using the base value from the outer class (which we shouldn't).
Tested versions
v4.3.stable.official [77dcf97d8]
System information
Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 32.0.15.5599) - AMD Ryzen 5 3600 6-Core Processor (12 Threads)
Issue description
The editor crashes when you store get_overlapping_areas() inside of a variable within a subclass that inherits Area2D and then try to access the method's members like so:
It's possible that this crash occurs with more than just the result of that specific method, but I haven't found any yet.
Steps to reproduce
Minimal reproduction project (MRP)
mrp.zip