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

C#: Add null check before calling UnregisterGodotObject #79151

Merged

Conversation

RedworkDE
Copy link
Member

Fixes #79148

Not sure under which condition this can happen, but all calls to UnregisterDisposable have this check already (and there are no other calls to UnregisterGodotObject)

@RedworkDE RedworkDE added bug topic:dotnet crash cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release labels Jul 7, 2023
@RedworkDE RedworkDE added this to the 4.2 milestone Jul 7, 2023
@RedworkDE RedworkDE requested a review from a team as a code owner July 7, 2023 11:14
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Tested, I confirm this fixes the crash for me.

The project still has a million errors but that's a different issue (partially from the project itself, maybe some we need to fix once better debugged).

@akien-mga akien-mga merged commit c3b0a92 into godotengine:master Jul 7, 2023
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov removed the cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release label Jul 10, 2023
@YuriSizov
Copy link
Contributor

Cherry-picked for 4.1.1.

@RedworkDE RedworkDE deleted the net-unregister-godotobject-check branch July 10, 2023 16:25
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.

Godot.DisposablesTracker.UnregisterGodotObject when running .NET project ported from 4.0.x in 4.1
3 participants