-
Notifications
You must be signed in to change notification settings - Fork 51
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
Workaround for ogre crash on shutdown #1033
Conversation
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
potential fix for the remaining cmake warning in gazebo-tooling/release-tools#1161 |
testing shows that gazebo-tooling/release-tools#1161 should fix the warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nit; I'm still trying to understand the code
We now have API to load plugins with gz-rendering/src/RenderEngineManager.cc Line 498 in 6a2217f
LoadLib(pathToLib, true) fix this issue without any of the other changes?
|
testing in a draft PR: #1038 |
the noble workflow passes; I've marked #1038 as ready for review |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
I think the I simplified the code in this PR quite a bit in 2910326. Now I manually call |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
…ash' into load_unload_ogre_crash
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1033 +/- ##
=======================================
Coverage 75.68% 75.69%
=======================================
Files 177 177
Lines 16959 16956 -3
=======================================
- Hits 12835 12834 -1
+ Misses 4124 4122 -2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Ian Chen <ichen@openrobotics.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to check if windows CI was okay, but it looks like the Ogre1 tests have been failing for a while. I thought it was just Ogre2 that was failing :(. Anyway, I'm good with this approach.
yeah we should try setting up ogre 2.3 on windows, #745 |
🦟 Bug fix
Workaround for #1007
Summary
The
INTEGRATION_load_unload
test crashes with ogre 1.x. The tests checks to see if the render engine can be loaded and unloaded in a thread (which is howgz sim
runs the render engine). The crash happens on ubuntu 24.04 with the system debs, see #1007 for more info.The workaround implemented in this PR is to prevent the
RenderSystem_GL
plugin library from being unloaded on shutdown to avoid the crash. The plugin will be still be stopped and deleted but we do not calldlclose
on it. I verified that the destructors of various objects / singletons in the plugin are called.This is not ideal and we should find a proper solution in the future.
To test
The
INTEGRATION_load_unload
test should now pass with ogre 1.x on Ubuntu 24.04 with the system ogre debs:gz-sim should no longer crash on exit:
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.