Giter VIP home page Giter VIP logo

Comments (4)

liufuda avatar liufuda commented on June 3, 2024

my idl fiel define as follow

enum TEST_ENUM {
    TEST_ENUM_0, /* 0 */
    TEST_ENUM_1,
    TEST_ENUM_2
};

struct test {
    TEST_ENUM id;
};

generate test proj with cmd:

fastddsgen  -example CMake -typeobject test.idl

then add registertestTypes() to testPubSubMain.cxx
image

after build proj, run program :

./test publisher

keep it running and then run the test shell script.

from dds-record-replay.

juanlofer-eprosima avatar juanlofer-eprosima commented on June 3, 2024

Hi @liufuda , thanks for reaching out.

We tried to replicate the issue but it did work well in our environment. Make sure you are compiling against Fast-DDS's bugfix/complex-dynamic-types branch, and also double check Configuring Fast DDS DynamicTypes tutorial, as you might be missing the following:

// Send type information so the type can be discovered
type->auto_fill_type_information(true);
type->auto_fill_type_object(false);

pqos.wire_protocol().builtin.typelookup_config.use_client = false;
pqos.wire_protocol().builtin.typelookup_config.use_server = true;

We will try to improve at some point Fast-DDS-Gen example generation utility, so that these changes do not need to be manually applied when using -typeobject option.

from dds-record-replay.

liufuda avatar liufuda commented on June 3, 2024

hi@juanlofer-eprosima, I guess the reason you didn't replicate it is due to a lack of/ Data/configuration/recorder_ Config.yaml file, you can modify the test script as follow

 #!/bin/bash
origin_path=`pwd`
count=1
source /opt/FastDDS/DDS-Record-Replay/local_setup.sh
until [ $count -gt 100 ]; do
    sleep 1
    nohup /opt/FastDDS/DDS-Record-Replay/ddsrecorder_tool/bin/ddsrecorder >/dev/null 2>&1 &
    sleep 1
    pkill -SIGINT -u $(whoami) ddsrecorder
    echo "Iteration $count"
    ((count++))
done
cd ${origin_path}

from dds-record-replay.

liufuda avatar liufuda commented on June 3, 2024

Add the following code to my program,core dump disappear

// Send type information so the type can be discovered
type->auto_fill_type_information(true);
type->auto_fill_type_object(false);

pqos.wire_protocol().builtin.typelookup_config.use_client = false;
pqos.wire_protocol().builtin.typelookup_config.use_server = true;

from dds-record-replay.

Related Issues (12)

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.