attilakapostyak / Flow.Launcher.Plugin.AudioDeviceSelector

Flow Launcher Plugin for selecting audio devices
7 stars 6 forks source link

Plugin is conflicting with other plugins with same .dll files #12

Open z1nc0r3 opened 1 year ago

z1nc0r3 commented 1 year ago

I have another plugin that also uses the same NAudio package. When starting the Flow Launcher it gives this error.

image

AFAIK both plugins use the same version of the NAudio.dll package which may be the reason for the conflict.

EXCEPTION OCCURS System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidCastException: Unable to cast object of type 'NAudio.CoreAudioApi.Interfaces.MMDeviceEnumeratorComObject' to type 'NAudio.CoreAudioApi.Interfaces.MMDeviceEnumeratorComObject'.

I tried renaming the plugins and their respective folders to check which plugin has the issue. And the result was if a plugin has the package NAudio which loaded earlier, then the other plugin throws an error. I'm not sure whether it is related to this plugin or the Flow Launcher plugin package.

This is the Log file : 2023-03-07.txt

attilakapostyak commented 1 year ago

Which plugin are you using that has NAudio.dll as reference?

z1nc0r3 commented 1 year ago

It's a custom plugin that I developed to control device volume. https://github.com/z1nc0r3/Flow.Launcher.Plugin.VolumeController