-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Error "opcode #38 (report please)" when to a custom class #43042
Comments
After having a look at the project from #43023, I tried and found that when I change the code in my project to the following you get the error on line 837:
|
@theraot If you can build Godot from source, can you try to bisect the regression? This would be hugely appreciated 🙂 |
@Calinou I'll try. I have not been able to built Godot from source yet. In fact, After my last post here I decided to follow Compiling for Windows. I think my scons setup failed, haven't figured out why yet. Edit: upgraded pip, scons installed. |
I built commit a03af87 (current head of 3.2 branch) This code
Gets:
This code:
Gets:
I'll try to find out the last commit without this issue. Edit: f550af9, 900949b, 72d1228, e6a860d, e51fed9 works fine. 8a97e65, 7b3f9eb, ef223f3, 8ca98dd Fails. I'll narrow it down more. |
Don't know if it helps or not, but I just found that |
@Error7Studios Perhaps. My understanding of Godot source is very limited. However, my current hypothesis is that the class is not being registered correctly, and thus when the runtime tries to check the type for the cast, it fails. Perhaps Once I figure out what commit introduced the problem, I'd have a better idea of what it is. |
I can confirm that bca2633 introduced the problem. I can also confirm that using bca2633 is intended to fix a leak caused by cyclic references. I guess it did not touch Looking at the diff, I guess the About fixing it, I don't know, but I have the source and the means to build it, I might give it go. |
Chiming in, as the "!base_type is true/ISE opcode #17" error is what got me involved. |
Fixed by #43049. |
I found another report of opcode 38: #43023
Godot version:
3.2.4.beta1
OS/device including version:
Windows 10
Issue description:
I created a scene with root node with a script attached that has a custom class. I instantiated the scene, and tried to cast to the custom class. Expected the cast to succeed. Got the following error:
Errors panel says:
Steps to reproduce:
This can be worked around by not casting. Without casting, we can still use
call
et.al. to interact with the script.Minimal reproduction project:
Test.zip
The text was updated successfully, but these errors were encountered: