openpose_unity_plugin
openpose_unity_plugin copied to clipboard
Cannot compile the project because of plugin error
Issue Summary
Cannot compile the example project. I get multiple errors in the Unity Editor, but I can run the project and everything works.
As soon as I try to build, or build and run, I get the same errors, and the build fails
These errors seem to originate from various .dll files, such as "ActiproSoftware.Docking.Wpf.dll" and "ActiproSoftware.Shared.Wpf.dll" I've tried deleting them, but they lead to more errors in other dlls. Tried deleting them all, until I could finish compiling, but OpenPose didn't work
Executed Command (if any)
File -> Build and Run
Errors (if any)
ArgumentOutOfRangeException: Argument is out of range. Parameter name: count is less than 0 System.IO.BinaryReader.ReadBytes (Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/BinaryReader.cs:306) Mono.Cecil.PE.ImageReader.ReadDebugHeader () Mono.Cecil.PE.ImageReader.ReadImage () Mono.Cecil.PE.ImageReader.ReadImage (Disposable
1 stream, System.String file_name)
Mono.Cecil.ModuleDefinition.ReadModule (Disposable1 stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters)
Type of Issue
- Compilation/installation error
- Help wanted
Your System Configuration
-
Unity Configuration: Unity 2018.4.1f Using .NET 3.5 as runtime:
-
OpenPose version: OpenPose Unity Plugin default, I think you mentioned it's 1.5.0
-
General configuration:
- Windows 10
- Release? (by default: release):
- Visual Studio 2017
-
If Windows system:
- Default from this repository
@gineshidalgo99 Do you have any idea what does that dll (ActiproSoftware.Docking.Wpf.dll
) do?
I am running into the same issue when building the unity3d openpose plugin I have it setup for CPU only and using the webcam. I finally got it working in the editor but when going to build I get the Actipro dll error as seen here.
I am running into the same error with a slightly modified error message...
Exception: ExtractAssemblyTypeInfo: Failed to process Assets/OpenPose/Plugins/ActiproSoftware.Docking.Wpf.dll, System.ArgumentOutOfRangeException: Argument is out of range. Parameter name: count is less than 0 at System.IO.BinaryReader.ReadBytes (Int32 count) [0x00038] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/BinaryReader.cs:306 at Mono.Cecil.PE.ImageReader.ReadDebugHeader () [0x00000] in <filename unknown>:0 at Mono.Cecil.PE.ImageReader.ReadImage () [0x00000] in <filename unknown>:0 at Mono.Cecil.PE.ImageReader.ReadImage (Disposable
1 stream, System.String file_name) [0x00000] in 1 stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 UnityEditor.AssemblyHelper.ExtractAssemblyTypeInfo (BuildTarget targetPlatform, Boolean isEditor, System.String assemblyPathName, System.String[] searchDirs) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:346) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
This issue will be examined and updates will be posted here!
This issue seems to happen after the current updates. You may try to use the last version (v1.0.0) to build your project if needed.
I get the same error. @ZiuTinyat With the last version (v1.0.0) do you mean OpenPose or the UnityPlugin? Because isn't the release version of the UnityPlugin v1.0.0? If you mean OpenPose v1.0.0, do you mean to build it from source and replace the dlls in the Assets/OpenPose/Plugins folder?
I also get this error upon attempting to build. I've noticed however, that "ActiproSoftware.Docking.Wpf.dll" also shows up in a series of broken assemblies whenever I load my Unity project. I've been ignoring them because the demo and my other scenes still work perfectly without addressing them when playing them in the editor. No crashing or anything. Could it be related, and have others had this notification as well?
I have also been running into this same issue. I clone the repo from the source, then run the getModel and getPlugin bat files, then open in Unity 2018.4 (also tested 2019.1 and 2019.2) and I get this same issue over and over. I tried downloading ActiPro and extracting the DLLs myself but those did not work. I tried using older versions of the software from previous commits and releases but those faced the same issue. Has this issue yet been resolved?
same error @topdude15 @ZiuTinyat
This issue will be examined and updates will be posted here!
This issue seems to happen after the current updates. You may try to use the last version (v1.0.0) to build your project if needed.
Any updates on this, would love to use Openpose with my project?
It does build when using the most recent Openpose plugin. But when building for Universal Windows Platform, the demo app runs but no camera opens and it throws an error:
NotSupportedException: IL2CPP does not support marshaling delegates that point to generic methods. OpenPose.Example OpenPoseUserScript.Start()
I have the same problem here, did someone figured out how to fix this?
Same problem
Delete ActiproSoftware.Docking.Wpf.dll,ActiproSoftware.Shared.Wpf.dll,log4net.dll,OpenTK.dll,OpenTK.GLControl.dll,SpinnakerNETGUI_v140.dll,SpinnakerNETGUId_v140.dll and try to build. I got succeeded to build.
i did what @aimino said and it works :)
Same here. Thanks to @aimino
thanks @aimino that got it working for me too!
@aimino thanks a lot god bless you