-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Possible bugs detected #84467
Comments
I won't be able to work on these anytime soon. They are up for grabs if anyone wants to look into these. |
I can help look into these and test whether it causes potential bugs. |
1
After some investigation, my conclusion is at least it's not a obvious bug. Here we init a icon and pass it to `_make_icon: godot/platform/macos/export/export_plugin.cpp Lines 1640 to 1645 in 5ee9831
And in the loop we do all the operation ( godot/platform/macos/export/export_plugin.cpp Lines 588 to 591 in 5ee9831
But I don't have a mac, other contributors are welcomed to investiage based on my finding. 2
I believe it is unnecessary as we just read godot/editor/import/resource_importer_scene.cpp Line 2440 in 5ee9831
3
I did some inverstigation and found the code is here when godot is open sourced. IMO it's safe to remove it as it doesnt make sense (The ref count is 2 and after the assign is 3, no need to increase the ref count to protect the value) Here is the origin code (all the way back to 2014) :
|
It looks like a bug. This should be |
Yes, a bug that may not be easily observed. |
Which of the reported issues are still valid? Might be worth changing it to a task list so the fixed ones can be checked. |
I believe all of the three are tracked and already fixed. |
Godot version
master
branch at 5ee9831System information
Arch Linux
Issue description
During the code review in #84445 we stumbled upon three code sections of the engine that have not been patched and may require closer inspection.
platform/macos/export/export_plugin.cpp
There's an attempt to copy an
Image
but instead its reference count is just increased:godot/platform/macos/export/export_plugin.cpp
Lines 588 to 591 in 5ee9831
Original comment by Riteo:
editor/import/resource_importer_scene.cpp
There's an attempt to duplicate the options but the duplicate seems unnecessary:
godot/editor/import/resource_importer_scene.cpp
Lines 2372 to 2374 in 5ee9831
Original comment by AThousandShips
core/io/resource_saver.cpp
There's an attempt to copy a
Resource
but instead its reference count is just increased:godot/core/io/resource_saver.cpp
Line 123 in 5ee9831
Original comment by AThousandShips
Steps to reproduce
N/A - This issue is related to a possible engine bug or code clean up.
Minimal reproduction project
N/A - This issue is related to a possible engine bug or code clean up.
The text was updated successfully, but these errors were encountered: