Skip to content
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

Fix static object destructors being called on gpu selection with X11 #68345

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

Abdul-AZ
Copy link
Contributor

@Abdul-AZ Abdul-AZ commented Nov 6, 2022

Resolves #68322

There is no need to call static object destructors on a child process that is used purely for determining the best GPU to use.

@@ -208,7 +208,10 @@ int detect_prime() {
print_verbose("Couldn't write vendor/renderer string.");
}
close(fdset[1]);
exit(0);

//quick_exit() is used because exit() will call destructors on static objects copied by fork()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please amend the comment to use the same style as surrounding code (capitalized sentences ending with a period, space after //).

@akien-mga
Copy link
Member

akien-mga commented Nov 7, 2022

You seem to have typoed your email in your Git identity, so it's not attributed to your GitHub account: https://patch-diff.githubusercontent.com/raw/godotengine/godot/pull/68345.patch

You can edit your Git email locally, then amend the commit with git commit --amend --reset-author.

@akien-mga akien-mga requested a review from hpvb November 7, 2022 12:04
@akien-mga akien-mga merged commit 29de658 into godotengine:master Nov 9, 2022
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@Rubonnek Rubonnek added cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Nov 10, 2022
@akien-mga
Copy link
Member

Cherry-picked for 3.6.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Nov 30, 2022
@timothyqiu
Copy link
Member

Cherry-picked for 3.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error "Unreferenced static string to 0: interface_added" on editor startup
5 participants