Git Product home page Git Product logo

Comments (7)

DarkGeekMS avatar DarkGeekMS commented on August 16, 2024 1

@orensbruli
I have debugged the issue for a while and I think the problem is that startup_check_flag is not initialized.

Nothing changes startup_check_flag but class initialization, so when I print the value of startup_check_flag in the class constructor, I found that it's set to a random integer, which means true :

public:
    idserver (QString prfx) { prefix = prfx.toStdString(); std::cout << startup_check_flag << std::endl; }

An uninitialized boolean is supposed to be set to false though, which happens in Ubuntu 18.04, but not in Ubuntu 20.04.

So, I initialized startup_check_flag to false :

private:
    void initialize();
    std::string prefix;
    TuplePrx tprx;
    bool startup_check_flag = false;

from dsr-graph.

DarkGeekMS avatar DarkGeekMS commented on August 16, 2024 1

Yes, it works fine with all Ubuntu versions.
I will create a PR to change it in the components.
Also, I think it should be fixed in the code generator as well.

from dsr-graph.

DarkGeekMS avatar DarkGeekMS commented on August 16, 2024 1

I updated and tested the components in this PR : #12

from dsr-graph.

orensbruli avatar orensbruli commented on August 16, 2024

Thank you @DarkGeekMS
Could you make some debug for us? This flag should be set to false in initialization and to true only if --startup-check option is given.
You can see this in the main.cpp file of the components. You can look for this // Search in argument list for --test argument (if exist) to find where it's set to true and bool startup_check_flag = false; to find where it's created and set. Could you make some debug of this in your Ubuntu 20.04?

from dsr-graph.

DarkGeekMS avatar DarkGeekMS commented on August 16, 2024

Sure thing, I'm working on it.

from dsr-graph.

orensbruli avatar orensbruli commented on August 16, 2024

Great! And with this change, the component starts as expected, right?
As far as these changes looks good for all the ubuntu versions I think you can make a Pull Request of this.

from dsr-graph.

orensbruli avatar orensbruli commented on August 16, 2024

@DarkGeekMS I'm fixing this in robocompdsl, thx.

from dsr-graph.

Related Issues (15)

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.