-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Deserializing custom resource created through inspector results in parser error #102551
Comments
Can confirm, but happens for me in 4.3.stable and even in 4.2.2.stable, at least in my testing using the MRP |
If you recreate that same setup in 4.3 (i.e. don't use the MRP project) the error won't show. It might be related to the I was planning on providing a 4.3-stable MRP instead, but there's some other strange issue happening in the upgrade process (that I need to report as well) which forced me to provide a 4.4 repro instead. |
That makes sense when clarified! With this added information I can pinpoint it as being introduced between dev3 and dev4 |
I just realized I could have just provided two MRPs in the first place, so here's one for 4.3, with no error: resource-serialization-error-4.3.zip |
Will bisect now that I know the span |
Bisected to: Change was to close:
Related issue: Which was supposed to be solved by: |
To fix it there needs to be an exception, similar to #100177. |
This comment has been minimized.
This comment has been minimized.
@KoBeWi Hi, still running into this issue in 4.4 rc1. Tried deleting .godot folder, and the custom resource file itself and then recreating it, and the issue still persists... The project was created in 4.3 stable, is there anything I need to "reset" in order to fix this? |
It should be gone after you re-save the problematic scene. Check inside tscn if |
@KoBeWi My setup is slightly different but I've managed to create an MRP in #103271. The difference is the resource contains a PackedScene that defines a custom class, but also results in the same error as this one. |
Tested versions
System information
Godot v4.4.beta3 - Windows 11 (build 26100) - Multi-window, 3 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA; 32.0.15.6636) - AMD Ryzen 9 7940HS w/ Radeon 780M Graphics (16 threads)
Issue description
When doing
bytes_to_var_with_objects(var_to_bytes_with_objects(some_custom_resource))
wheresome_custom_resource
was specifically created through the editor inspector, and not through something likeMyResource.new()
, you end up with a debugger break saying:The exact same setup seemingly worked in 4.3-stable.
Steps to reproduce
Minimal reproduction project (MRP)
resource-serialization-error.zip
The text was updated successfully, but these errors were encountered: