-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Crash on exit in SceneShaderForwardClustered destructor #77430
Comments
Regression from #77341 |
Right, the crash is caused by the change from a simple error to a But what causes this assert doesn't seem to be a recent regression in the end, here's the log output from 4.1 dev 1 (seems similar in 4.1 dev 2):
While 4.0.3-stable doesn't seem to report any leaks. |
I don't think this is related to Bastiaan's recent PRs, the first objects shown as leaking are physics objects. Bastiaan's changes only impacted freeing specific shaders in the RD renderer. His material-dependency PR did not change how materials are freed. I'll do a quick bisect and see if I can spot the culprit I have checked as far back as db13026 and the leaks are still happening |
ab5fc22 is the first bad commit
Edit: it leaks nodes all over the place in this project, including some meshes, so the shaders never become unused: leaks.txt and the commit before does not: leaks_pre.txt (There are a few extra errors because of switftshader, but otherwise it is clean) |
Minimized project: Test_77430.zip The problem is that in |
I have to check deeper, but this may be one of those cases that the switch from |
Indeed, the crash was highlighted by the change to |
Godot version
4.1.dev (094e884)
System information
Mageia 9, Linux
Issue description
I'm seeing a crash on exit in one of my test projects, which seems to be a recent regression.
The crash happens when quitting the 3D gameplay in https://github.com/team-godog/NGJ2023_Godog
There are errors about leaking
GodotBody3D
andGodotShape3D
, and then leaking two shaders:The crash is on a
DEV_ASSERT
(sodev_build=yes
), might not happen in a non-dev build.Doesn't happen in 4.0.3-stable, and I don't remember seeing it a couple of weeks ago, so I expect this is a recent regression.
Steps to reproduce
master
, game commit 212feb11867bb4468b357e96756fef40d904e614Minimal reproduction project
See Steps to reproduce. It's not really minimal, I might try to narrow it down further but this is a relatively simple open source project and I think the regression can be easily pinpointed to recent changes to shader freeing.
CC @BastiaanOlij @clayjohn
The text was updated successfully, but these errors were encountered: