URDF-Importer icon indicating copy to clipboard operation
URDF-Importer copied to clipboard

BUG: Duplicate DLLs blocking build

Open abruce33 opened this issue 4 years ago • 9 comments

Describe the bug A clear and concise description of what the bug is.

When going to build a project for Android (APK), I am getting a build error that is failing the build. It appears to be duplicate DLLs in both "/x86/assimp.dll " and "/x86_64/assimp.dll"

This is causing the following (4) critical compile errors.


error 1

Found plugins with same names, Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dll and Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86_64/assimp.dll. Delete the one of the duplicate plugins. UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions (string) UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 2

Plugins colliding with each other.


error 3

Build completed with a result of 'Failed' in 14 seconds (14151 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 4

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

1.) In my existing Unity 2020.3.17f project, I have "Android" set as the build target.
2.) I add the URDF-importer package via the Git URL : https://github.com/Unity-Technologies/URDF-Importer.git?path=/com.unity.robotics.urdf-importer#v0.5.0 3.) After the URDF importer has been added, I click "Build" which starts then stops quickly due to compile errors. 4.) primary error is:

Found plugins with same names, Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dll and Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86_64/assimp.dll. Delete the one of the duplicate plugins. UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions (string) UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Console logs / stack traces Please wrap in triple backticks (```) to make it easier to read.


error 1

Found plugins with same names, Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dll and Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86_64/assimp.dll. Delete the one of the duplicate plugins. UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions (string) UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 2

Plugins colliding with each other.


error 3

Build completed with a result of 'Failed' in 14 seconds (14151 ms) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 4

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Expected behavior A clear and concise description of what you expected to happen.

Clicking "Build" should result in project compiling and exporting an APK.

Troubleshooting note: The project will build an APK if I remove the URDF-Importer package.

Screenshots If applicable, add screenshots or videos to help explain your problem.

Environment (please complete the following information, where applicable):

  • Unity Version: [e.g. Unity 2020.2.0f1]
      • Unity 2020.3.17f
  • Unity machine OS + version: [e.g. Windows 10]
      • Win 10 Razr 14 AMD CPU w/ 3080 NVIDIA GPU
  • ROS machine OS + version: [e.g. Ubuntu 18.04, ROS Noetic]
      • Foxy w/ Noetic ROS 1
  • ROS–Unity communication: [e.g. Docker]
      • TCP-Endpoint is set up but not actively connected.
  • Branch or version: [e.g. v0.2.0]

Additional context Add any other context about the problem here.

I have tried

      • Deleting the Library and recompiling -> still fails with duplicate DLLs
      • reimporting all assets > still fails with duplicate DLLs

If I remove the URDF-Importer package the project builds normally.

abruce33 avatar Jan 24 '22 20:01 abruce33

Thanks for reporting the issue @abruce33. Can you please try the following:

  • In the project window, select the AssimpNet.dll file (com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/AssimpNet.dll)
  • In the inspector, exclude it from the android build (https://docs.unity3d.com/Manual/PluginInspector.html)

hyounesy avatar Jan 25 '22 21:01 hyounesy

Internal ticket# [AIRO-1688]

hyounesy avatar Jan 25 '22 21:01 hyounesy

Thanks for the direction Hamid, 🙂

It appears the option to exclude AsimpNet.dll from the Android build is disabled? (screenshot attached)

Not sure if this is a bug or a feature, as there does not seem to be any obvious way it has been "locked"

Please advise, thanks! Adam Bruce image

[cid:dea58654-1dac-466c-ba05-68fa21e18426]


From: Hamid Younesy @.> Sent: Tuesday, January 25, 2022 3:35 PM To: Unity-Technologies/URDF-Importer @.> Cc: Adam Bruce @.>; Mention @.> Subject: Re: [Unity-Technologies/URDF-Importer] BUG: Duplicate DLLs blocking build (Issue #174)

Internal ticket# [AIRO-1688]

— Reply to this email directly, view it on GitHubhttps://github.com/Unity-Technologies/URDF-Importer/issues/174#issuecomment-1021631076, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMNCE4Y5JZ4WHS5DZTVQASLUX4JTJANCNFSM5MWL46MA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

abruce33 avatar Jan 25 '22 21:01 abruce33

So the AsimpNet.DLL is managed and properties will not allow me to deselect 'all platforms' so as to exclude Android from the build. I've started a 'Unity Answers' thread on the DLL unselectable issue here: https://answers.unity.com/questions/1883562/dll-properties-grayed-out-unselectable-unable-to-e.html

abruce33 avatar Jan 26 '22 17:01 abruce33

Update,

Thanks for reporting the issue @abruce33. Can you please try the following:

* In the project window, select the AssimpNet.dll file (com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/AssimpNet.dll)

* In the inspector, exclude it from the android build (https://docs.unity3d.com/Manual/PluginInspector.html)

Update on my end, The Inspector properties for AssimpNet.dll are locked and unselectable. Therefore I am unable to exclude it from the android build. I am able to access other DLLs in the plungin inspector, but the problematic DLL is locked/unselectable.

Please let me know if there is an alternative way to deactivate the DLL, or "unlock" it's settings in the plugin Inspector?

Thanks, Adam

abruce33 avatar Jan 31 '22 18:01 abruce33

@abruce33, you can open up the package for local editing by adding the package from disk instead of via Git URL--you can follow the steps in the Workflow section of this doc to unlock these files for editing.

at669 avatar Feb 11 '22 21:02 at669

I'm having the same problem in UWP, Unity 2021.3.15f1, Unity 2020.3.11, Unity 2022.1.24, URDF importer 0.5.2 preview

C:\AR-VR-Github\Robotics-Hub-PandP\Build-Release\Robotics-Hub-PandP\Robotics-Hub-PandP.vcxproj : error : Cannot load project with duplicated project items: C:\AR-VR-Github\Robotics-Hub-PandP\Build-Release\Robotics-Hub-PandP\assimp.dll is included as 'None' and as 'None' item types.

@abruce33 Did you solve this?

Thank you, Sergio

sergiosolorzano avatar Dec 19 '22 05:12 sergiosolorzano

delete Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dl and its meta file it works

venkataprasad-git avatar Jun 14 '23 18:06 venkataprasad-git