HelloWorldRobotics / autoware.universe_old

https://autowarefoundation.github.io/autoware.universe/
Apache License 2.0
0 stars 0 forks source link

tev: ddsi_udp_conn_write to udp/192.168.1.119:53777 failed with retcode -1 #11

Closed yaukaizhi closed 8 months ago

yaukaizhi commented 8 months ago

Checklist

Description

'm getting this issue when using autoware's recommended DDS settings. Has anyone encountered this?

In the bashrc

export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
export CYCLONEDDS_URI=<path_to_cyclonedds_config.xml>
sudo sysctl -w net.core.rmem_max=2147483647
sudo sysctl net.ipv4.ipfrag_time=3
sudo sysctl net.ipv4.ipfrag_high_thresh=1342177280

cyclone dds config xml

<?xml version="1.0" encoding="UTF-8" ?>
<CycloneDDS xmlns="https://cdds.io/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://cdds.io/config https://raw.githubusercontent.com/eclipse-cyclonedds/cyclonedds/master/etc/cyclonedds.xsd">
<Domain Id="any">
        <General>
            <Interfaces>
                <NetworkInterface autodetermine="true" priority="default" multicast="default" />
            </Interfaces>
            <AllowMulticast>default</AllowMulticast>
            <MaxMessageSize>65500B</MaxMessageSize>
        </General>
        <Internal>
            <SocketReceiveBufferSize min="10MB"/>
            <Watermarks>
                <WhcHigh>500kB</WhcHigh>
            </Watermarks>
        </Internal>
    </Domain>
</CycloneDDS>

Error messages I get

[component_container_mt-57] 1698811787.925822 [0]        tev: ddsi_udp_conn_write to udp/192.168.1.119:53234 failed with retcode -1
[component_container_mt-57] 1698811787.925830 [0]        tev: ddsi_udp_conn_write to udp/192.168.1.119:53446 failed with retcode -1
[component_container_mt-57] 1698811787.925839 [0]        tev: ddsi_udp_conn_write to udp/192.168.1.119:53777 failed with retcode -1
[component_container_mt-57] 1698811787.925847 [0]        tev: ddsi_udp_conn_write to udp/192.168.1.119:54280 failed with retcode -1
[component_container_mt-57] 1698811787.925855 [0]        tev: ddsi_udp_conn_write to udp/192.168.1.119:55546 failed with retcode -1

Expected behavior

no error

Actual behavior

got error

Steps to reproduce

read the desc

Versions

No response

Possible causes

No response

Additional context

No response

yaukaizhi commented 8 months ago

solved, connect router to PC. Your IP cannot suddenly disconnect halfway, otherwise CycloneDDS will crash