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

GD-120: Fix signal 11 crash when execute tests via GdUnitCmdTool #121

Merged
merged 9 commits into from
Feb 18, 2023

Conversation

MikeSchulze
Copy link
Owner

@MikeSchulze MikeSchulze commented Feb 18, 2023

Why

Running the GdUnitCmdTool ends with an signal 11 and many orphan resource detected

What

  • fixed the signal 11 by using a copy to iterate over singletons before freeing
    • when iterating over an array and removing elements during the iteration, godot ended up with signl 11
  • moving the func assert_failed_at to another posision (very strange results, it crashed for no reason)
  • using typed array on load_testsuites()
  • fix some orphan issues around singleton implementation
  • centralize code to finaly cleanup in new quit function to avoid orphan nodes
  • format touched code according to code style

Note

It still detects orphan nodes see: godotengine/godot#68009

# Why
Running the `GdUnitCmdTool` ends with an signal 11 and many orphan resource detected


# What
- fixed the signal 11 by (i would say is a Godot core bug) by:
   - moving the func `assert_failed_at` to another posision (very strange findings)
   - using typed array on `load_testsuites()`
   - fix some orphan issues around singleton implementation
   - centralize code to finaly cleanup in new `quit` function to avoid orphan nodes
   - format touched code according to code style
@MikeSchulze MikeSchulze self-assigned this Feb 18, 2023
@MikeSchulze MikeSchulze linked an issue Feb 18, 2023 that may be closed by this pull request
@MikeSchulze MikeSchulze merged commit 8b1eceb into master Feb 18, 2023
@MikeSchulze MikeSchulze deleted the GD-120 branch February 18, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GD-120: Run tests via GdUnitCmdTool ends with signal 11
1 participant