Coder Social home page Coder Social logo

New compiler warning about pluginlib HOT 4 CLOSED

ros avatar ros commented on August 28, 2024
New compiler warning

from pluginlib.

Comments (4)

mikaelarguedas avatar mikaelarguedas commented on August 28, 2024

It's unclear to me why this shows up on this package. This function should be called transitively by createInstance.

Call stack being:

catkinFindLib
called by getCatkinLibraryPaths (l323)
called by getAllLibraryPathsToTry ('330)
called by getClassLibraryPath (l412)
called by loadLibraryForClass (608)
called by:
  -> createClassInstance (l129)
  -> createInstance (l158)
  -> createUniqueInstance (l190)
  -> createUnmanagedInstance (l229)

I built the melodic version of class_loader, pluginlib, qt_gui_core and rqt_gui with this additional print

Debug output of rosrun rqt_gui rqt_gui:

[DEBUG] [1522718065.187724347]: XML file specifies lookup name (i.e. magic name) = rqt_gui_cpp/RosCppPluginProvider.
[DEBUG] [1522718065.187735353]: Exiting determineAvailableClasses()...
[DEBUG] [1522718065.187742513]: Finished constructring ClassLoader, base = qt_gui_cpp::PluginProvider, address = 0x118eb80
[DEBUG] [1522718065.187829905]: Attempting to create managed instance for class rqt_gui_cpp/RosCppPluginProvider.
[DEBUG] [1522718065.187843431]: Class rqt_gui_cpp/RosCppPluginProvider maps to library lib/librqt_gui_cpp in classes_available_.
[DEBUG] [1522718065.187850493]: this function is actually called

@dirk-thomas can you please do the same experiment on a bionic system and see if that print appears?

from pluginlib.

dirk-thomas avatar dirk-thomas commented on August 28, 2024

Same here - I don't see any differences.

I would suggest to just move the code from the anonymous catkinFindLib function into the only function calling it, namely getCatkinLibraryPaths. That gets rid of the warning.

(I don't know why the anonymous function was created in the first place in #49 though.)

from pluginlib.

dirk-thomas avatar dirk-thomas commented on August 28, 2024

@mikaelarguedas How about my proposal from the previous comment?

from pluginlib.

mikaelarguedas avatar mikaelarguedas commented on August 28, 2024

Yes I had the same idea, originally 👍 , as the function is private I think that's fine to not have it in its' own private namespace. I wanted to have a simple reproducible example to submit to GCC before removing it because that should be reported upstream.

from pluginlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.