-
Notifications
You must be signed in to change notification settings - Fork 44
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
Segfault on external plugin loading #25
Comments
Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina). Interesting problem, some ideas:
Have you tried the example plugins? They are essentially "external plugins".
Yeah I suppose that would happen if the constructor is not called
Can't imagine how that could change anything, but have you tried removing the |
Original comment by Andrés Fortier (Bitbucket: andres_fortier). Thanks for the quick reply @chapulina ! After nuking my entire workspace things started to work again (I've tried already nuking the |
Original comment by Andrés Fortier (Bitbucket: andres_fortier).
The issue didn't have to do with ign_gui. |
Original report (archived issue) by Andrés Fortier (Bitbucket: andres_fortier).
Disclaimer: I know this is a weird issue and may be difficult to debug, esp. as I am the only one on a group of 4 devs seeing it. However I'm running out of ideas on what this may be, hence I created the issue. Any help will be much appreciated.
We have an application that defines a set of custom plugins. After updating ign_gui (and other dependencies) the plugin load procedure started to segfault. The details:
this->dataPtr
is not anullptr
, it seems to have garbage (I think because at no point isdataPtr
initialized tonullptr
- https://github.com/ignitionrobotics/ign-gui/blob/70f1809c2524f76bf2c69b946567a67f455850e0/include/ignition/gui/Plugin.hh#L109).Plugin
constructor (https://github.com/ignitionrobotics/ign-gui/blob/70f1809c2524f76bf2c69b946567a67f455850e0/src/Plugin.cc#L37) is not being called for our plugin. I tried changing thePlugin
source code to:and tested with different plugins. The result is that all the plugins shipped with ign_gui call the constructor, but those defined outside (i.e. in an app that use ign_gui as a library) don't call it.
dataPtr
having garbage, as it is the only place where it is initialized.dataPtr
is private I can't think on a workaround on our side to fix it.and
And of course, let me know if you need more info. Any pointers / hints will be greatly appreciated.
The text was updated successfully, but these errors were encountered: