[CSHARP-4896] Duplicate mongocrypt Plugins in Unity Causing Editor Conflicts Created: 27/Dec/23  Updated: 08/Jan/24

Status: Investigating
Project: C# Driver
Component/s: None
Affects Version/s: 2.23.1
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Stefan Lehnert Assignee: James Kovacs
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I am experiencing an issue in Unity where multiple instances of the mongocrypt plugin from the MongoDB.Libmongocrypt package are causing conflicts. The specific error message is: "Multiple plugins with the same name 'mongocrypt' (found at 'Assets/Packages/MongoDB.Libmongocrypt.1.8.0/content/mongocrypt.dll' and 'Assets/Packages/MongoDB.Libmongocrypt.1.8.0/Sources/mongocrypt.dll'). That means one or more plugins are set to be compatible with Editor. Only one plugin at the time can be used by Editor."

Steps to Reproduce:

  1. Add MongoDB Driver to Unity project (including.Libmongocrypt)
  2. Observe the resulting error in the Unity Editor console.

Expected Behavior: A single instance of the mongocrypt plugin should be loaded without causing any conflicts in the Unity Editor.

Actual Behavior: Multiple instances of the mongocrypt plugin are detected, causing an error in the Unity Editor.

Environment:

  • Unity Version: 2023.3.0a14
  • MongoDb Driver 2.23.1
  • MongoDB.Libmongocrypt Version: 1.8.0
  • Operating System: W10

Additionally, I would like to seek advice on which of the two mongocrypt.dll files can be safely removed without impacting the functionality of the MongoDB driver. The duplicated files are located at '…/MongoDB.Libmongocrypt.1.8.0/contentl' and '…/MongoDB.Libmongocrypt.1.8.0/Sources'. Any guidance on resolving this duplication issue without affecting the driver's operation in Unity would be greatly appreciated.



 Comments   
Comment by PM Bot [ 27/Dec/23 ]

Hi stefan.lehnert@studmail.htw-aalen.de, thank you for reporting this issue! The team will look into it and get back to you soon.

Generated at Wed Feb 07 21:49:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.