-
Notifications
You must be signed in to change notification settings - Fork 80
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
nodelet loader hides load error #23
Comments
This fixes ros#23. The call on an uninitialized boost::function was causing an exception, which was reported to the user instead of the underlying exception from the failed library load.
Hi, I'm getting the error described above when I attempt to run rqt_image_view. I am on Ubuntu 14.04, using the ROS prebuilt rqt packages, i.e. on this project I'm a user, not a developer. Has this error been seen by other users, and if so, do you know if there is workaround? |
There is no generic workaround. The bug in the To investigate your problem, you could build |
Thanks for the response. I was able to identify my problem through other means, and it was unrelated to this codebase, but the "true" error was indeed shadowed by the above error. |
@xqms thanks for your patch and sorry for the slow response. Is there a way I could reproduce the issue? I'd like to add a regression test. |
This fixes ros#23. The call on an uninitialized boost::function was causing an exception, which was reported to the user instead of the underlying exception from the failed library load.
I've added a unit test to the PR. If you want to see it fail, check out 79dbd5b. |
@xqms Thank you so much! Just merged it. |
This bug still persists on Hydro. Would it be possible to backport the PR #24 for Hydro? |
As of commit 4670f32, load errors (such as undefined references) can be hidden under certain circumstances.
If the loader is constructed using the
constructor, the
refresh_classes_
call in https://github.com/ros/nodelet_core/blob/indigo-devel/nodelet/src/loader.cpp#L272 will fail, causing an exception and hiding the initial load error from the user.This means that e.g. rqt plugin developers get an error message like
which is not very helpful.
The text was updated successfully, but these errors were encountered: