Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing DLL file: UnsatisfiedLinkError: tier4_simulation_msgs__rosidl_typesupport_c.dll #121

Open
samanipour opened this issue Jan 28, 2025 · 0 comments

Comments

@samanipour
Copy link

samanipour commented Jan 28, 2025

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(RobotecAI/RobotecGPULidar#330 (comment)).

System setup:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant