ros2-for-unity icon indicating copy to clipboard operation
ros2-for-unity copied to clipboard

Missing DLL file: UnsatisfiedLinkError: tier4_simulation_msgs__rosidl_typesupport_c.dll

Open samanipour opened this issue 10 months ago • 0 comments

Describe the bug Hi, @adamdbrw @pijaro if you could help me to solve this issue I would be very appreciated

I'm trying to setup AWSIM-Lab as Unity Project on Windows. Following this issue we found out that ros2-for-unity has missing library file when we try to run it under Windows 11 and AWSIM-Lab as Unity Project setup.

To Reproduce Steps to reproduce the behavior:

  1. Follow AWSIM-Lab Setup Instructions for Windows
  2. Run the demo in Unity Editor
  3. Open Unity Console
  4. See error UnsatisfiedLinkError: tier4_simulation_msgs__rosidl_typesupport_c.dll ROS2.DllLoadUtilsWindowsDesktop.ROS2.DllLoadUtils.LoadLibraryNoSuffix (System.String fileName) (at <c2fd60e12ae74b49b3633ef9563fbe65>:0) tier4_simulation_msgs.msg.DummyObject..cctor () (at <875a1a567ccc4ffe8e2115395ef84ff7>:0) Rethrow as TypeInitializationException: The type initializer for 'tier4_simulation_msgs.msg.DummyObject' threw an exception. (wrapper write-barrier) System.Object.wbarrier_conc(intptr) System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) (at <51fded79cd284d4d911c5949aff4cb21>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) (at <51fded79cd284d4d911c5949aff4cb21>:0) System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) (at <51fded79cd284d4d911c5949aff4cb21>:0) System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache) (at <51fded79cd284d4d911c5949aff4cb21>:0) System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) (at <51fded79cd284d4d911c5949aff4cb21>:0) System.Activator.CreateInstance[T] () (at <51fded79cd284d4d911c5949aff4cb21>:0) ROS2.Subscription1[T]..ctor (System.String subTopic, ROS2.Node node, System.Action1[T] cb, ROS2.QualityOfServiceProfile qos) (at <2034886caef046439cfa6ebcd9ed8cd7>:0) ROS2.Node.CreateSubscription[T] (System.String topic, System.Action1[T] callback, ROS2.QualityOfServiceProfile qos) (at <2034886caef046439cfa6ebcd9ed8cd7>:0) ROS2.ROS2Node.CreateSubscription[T] (System.String topicName, System.Action1[T] callback, ROS2.QualityOfServiceProfile qos) (at Assets/Ros2ForUnity/Scripts/ROS2Node.cs:92) AWSIM.SimulatorROS2Node.CreateSubscription[T] (System.String topicName, System.Action1[T] callback, ROS2.QualityOfServiceProfile qos) (at Assets/AWSIM/Scripts/ROS/SimulatorROS2Node.cs:86) AWSIM.RVIZNPCSpawner.Start () (at Assets/AWSIM/Scripts/NPCs/RvizNPCSpawner/RVIZNPCSpawner.cs:53)`

Expected behavior The UnsatisfiedLinkError: tier4_simulation_msgs__rosidl_typesupport_c.dll should not occur.

Screenshots Error Screenshot: Image

Desktop (please complete the following information):

  • OS: [Windows 11]
  • ros2 distro [humble]
  • ros2-for-unity version
  • ros2 environment setup [e.g. single pc, local network]

Additional context I should also mentioned that there are some other errors related to missing RobotecGPULidar which could be solved by the following proposed solution in this issue(https://github.com/RobotecAI/RobotecGPULidar/issues/330#issuecomment-2598193526).

System setup:

samanipour avatar Jan 28 '25 09:01 samanipour