hecomi / uDesktopDuplication

Desktop Duplication API implementation for Unity (only for Windows 8/10)
http://tips.hecomi.com/entry/2016/12/04/125641
MIT License
563 stars 97 forks source link

uDesktopDuplication fails to load on certain systems #36

Open CircuitLord opened 4 years ago

CircuitLord commented 4 years ago

Heyo! No idea if this is some sort of error on my part or not, but I'm at a loss for ideas so I figured I'd ask.

It works perfectly fine for most people, but on maybe about 10% of systems that use my app, this error will show up in the log.

Plugins: Failed to load 'C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Plugins/x86_64/uDesktopDuplication.dll' because one or more of its dependencies could not be loaded. (Filename: Line: 292) Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Mono/uDesktopDuplication Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Mono/uDesktopDuplication.dll Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Mono/uDesktopDuplication Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Mono/libuDesktopDuplication Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Mono/libuDesktopDuplication.dll Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/Desktop Portal/DesktopPortal_Data/Mono/libuDesktopDuplication Uploading Crash Report DllNotFoundException: uDesktopDuplication at (wrapper managed-to-native) uDesktopDuplication.Lib.SetLogFunc(uDesktopDuplication.Lib/DebugLogDelegate) at uDesktopDuplication.UDDManager.OnDisable () [0x0001b] in :0 UnityEngine.GameObject:Internal_AddComponentWithType(Type) UnityEngine.GameObject:AddComponent(Type) UnityEngine.GameObject:AddComponent() uDesktopDuplication.UDDManager:CreateInstance() uDesktopDuplication.UDDManager:get_instance() uDesktopDuplication.UDDManager:get_monitors()

I'm aware of the stuff like how the Desktop Duplication doesn't work on Windows 7 or on weird multi-gpu setups, but from the people it's happened to, they all had similar or identical specs/os version to me.

This error seems very similar/almost identical to issue #25 for a much older version, but it doesn't seem like there was anything specific that was changed to fix it.

Let me know if there's any other info you might need! Thanks for the awesome library ^_^

hecomi commented 4 years ago

Thank you for the error report. Could you try v1.7.0 released last week? Actually I haven't fixed the error but if it was an error caused by a build, It will fix the problem.

aliBUT commented 4 years ago

I love this plugin and it helped me a lot Unfortunately I am also facing a similar issue where it some times does not work on certain systems after long period of usage.