RobotecAI / ros2-for-unity

High-performance ROS2 solution for Unity3D
Apache License 2.0
446 stars 58 forks source link

When I use the latest windows 11 standalone verison, my Unity is stuck and unresponsive. #83

Closed soul667 closed 1 year ago

soul667 commented 1 year ago

When I use the latest windows 11 standalone verision, my Unity is stuck and unresponsive. Through my code modifications, I realized that the problem was with the node creation statement just like this.

 ros2Node = ros2Unity.CreateNode("ROS2UnityTalkerNode");

I then consulted the unity log Editor.log and found the following error

Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.so.2
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib.dll
Fallback handler could not load library C:/Program Files/Unity/Hub/Editor/2023.1.7f1c1/Editor/Data/MonoBleedingEdge/lib/libdl.dylib
ROS2 version: humble. Build type: standalone. RMW: rmw_fastrtps_cpp
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
ROS2.ROS2ForUnity:.ctor () (at Assets/Ros2ForUnity/Scripts/ROS2ForUnity.cs:316)
ROS2.ROS2UnityComponent:LazyConstruct () (at Assets/Ros2ForUnity/Scripts/ROS2UnityComponent.cs:58)
ROS2.ROS2UnityComponent:Start () (at Assets/Ros2ForUnity/Scripts/ROS2UnityComponent.cs:68)

(Filename: Assets/Ros2ForUnity/Scripts/ROS2ForUnity.cs Line: 316)

Incidentally, it was working fine before, and then suddenly one day the bug happened. Maybe I installed some environment or something that caused a conflict(maybe ros2 in windows?), but i would,t like to reinstall now, I just want to just know where the error happened. Can you help me with this?

Deric-W commented 1 year ago

I had a similar problem, check if clearing C:\ProgramData\eprosima\fastrtps_interprocess fixes your problem.

soul667 commented 1 year ago

thank you so much,it,s really solved my problem.