Skip to content

Crashing and lag spikes. #190

@tria97

Description

@tria97

Hello everyone.
When I run my project after setting the "MyROSIntegrationGameInstance" the project gets massive lagspikes about every second, which correspond to the log below.

image

This is the case when I am using the default 127.0.0.1 ROSBridge Server Host value.

If I actually change that and use, for example, the IP of the virtualbox ubuntu instance in which I am hosting ROS, (192.168.42.247/24)
the result is an instant crash upon game startup. This is not specific to this IP. Everything I've tried except 127.0.0.1 causes the instant crash issue.

image

image

The above is from running the built win64 game.

If I run the game inside the engine as a "standalone game" I get some more specific crash logs.

image

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000000

UE4Editor_ROSIntegration!TCPConnection::SendMessage() [E:\VR_robot_2\Plugins\ROSIntegration\Source\ROSIntegration\Private\rosbridge2cpp\TCPConnection.cpp:79]
UE4Editor_ROSIntegration!rosbridge2cpp::ROSBridge::SendMessage() [E:\VR_robot_2\Plugins\ROSIntegration\Source\ROSIntegration\Private\rosbridge2cpp\ros_bridge.cpp:81]
UE4Editor_ROSIntegration!rosbridge2cpp::ROSTopic::Advertise() [E:\VR_robot_2\Plugins\ROSIntegration\Source\ROSIntegration\Private\rosbridge2cpp\ros_topic.cpp:94]
UE4Editor_ROSIntegration!UTopic::Advertise() [E:\VR_robot_2\Plugins\ROSIntegration\Source\ROSIntegration\Private\Topic.cpp:241]
UE4Editor_ROSIntegration!UROSIntegrationGameInstance::Init() [E:\VR_robot_2\Plugins\ROSIntegration\Source\ROSIntegration\Private\ROSIntegrationGameInstance.cpp:126]
UE4Editor_Engine
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll

Is this the default behavior? An instant crash upon startup because no ROSbridge connection was established?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions