Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4896

Duplicate mongocrypt Plugins in Unity Causing Editor Conflicts

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 2.23.1
    • Component/s: None
    • None

      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.

            Assignee:
            james.kovacs@mongodb.com James Kovacs
            Reporter:
            stefan.lehnert@studmail.htw-aalen.de Stefan Lehnert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: