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

Fixes a segfault in toggle floor plugin which causes ignition to crash when scene is not ready. #78

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

arjo129
Copy link
Member

@arjo129 arjo129 commented Aug 22, 2022

This PR fixes a segfault I have been experiencing when loading large worlds. Often the rendering scene is not fully setup causing the this->scene->NodeByName to crash. This PR pushes a simple fix to skip over scenarios where the scene has not yet loaded the model.

Signed-off-by: Arjo Chakravarty arjo@openrobotics.org

…h when scene is not ready.

This PR fixes a segfault I have been experiencing when loading large worlds. Often the rendering scene is not fully setup causing the` this->scene->NodeByName` to crash. This PR pushes a simple fix to skip over scenarios where the scene has not yet loaded the model.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Copy link
Contributor

@codebot codebot left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for chasing this down.

@arjo129
Copy link
Member Author

arjo129 commented Aug 22, 2022

Not sure why CI is failing. The failure seems unrelated,

@arjo129 arjo129 merged commit 98e19e9 into main Aug 22, 2022
@arjo129 arjo129 deleted the arjo/fix/segfault_toggle_floor_plugin branch August 22, 2022 23:15
arjo129 added a commit that referenced this pull request Aug 23, 2022
The fix is similar in nature to #78. Just noticed another place where we are not checking for a potential null return value.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@arjo129 arjo129 mentioned this pull request Aug 23, 2022
Yadunund added a commit that referenced this pull request Aug 25, 2022
* Fixes potential segfault

The fix is similar in nature to #78. Just noticed another place where we are not checking for a potential null return value.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>

* Fix typo

Signed-off-by: Yadunund <yadunund@gmail.com>

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Yadunund <yadunund@gmail.com>
Co-authored-by: Luca Della Vedova <luca@openrobotics.org>
Co-authored-by: Yadunund <yadunund@gmail.com>
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.

None yet

2 participants