openpose_unity_plugin icon indicating copy to clipboard operation
openpose_unity_plugin copied to clipboard

Cannot compile the project because of plugin error

Open chococococo opened this issue 5 years ago • 18 comments

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 Unity build error

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 (Disposable1 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

  1. Unity Configuration: Unity 2018.4.1f Using .NET 3.5 as runtime: Unity config error

  2. OpenPose version: OpenPose Unity Plugin default, I think you mentioned it's 1.5.0

  3. General configuration:

    • Windows 10
    • Release? (by default: release):
    • Visual Studio 2017
  4. If Windows system:

    • Default from this repository

chococococo avatar May 29 '19 19:05 chococococo

@gineshidalgo99 Do you have any idea what does that dll (ActiproSoftware.Docking.Wpf.dll) do?

ZiuTinyat avatar May 31 '19 01:05 ZiuTinyat

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.

2019-06-02 21_59_43-Unity 2018 4 1f1 Personal - Demo unity - OpenPosePlugin - PC, Mac   Linux Standa

A-n-o-r-a-k avatar Jun 03 '19 02:06 A-n-o-r-a-k

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 (Disposable1 stream, System.String file_name) [0x00000] in :0 at Mono.Cecil.ModuleDefinition.ReadModule (Disposable1 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)

carnivean avatar Jun 09 '19 16:06 carnivean

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.

ZiuTinyat avatar Jun 10 '19 10:06 ZiuTinyat

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?

cwule avatar Jul 05 '19 18:07 cwule

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? errorpic

SarahBrown97 avatar Aug 10 '19 00:08 SarahBrown97

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?

topdude15 avatar Aug 22 '19 15:08 topdude15

same error @topdude15 @ZiuTinyat

mertcanozturk avatar Oct 24 '19 08:10 mertcanozturk

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?

cwule avatar Nov 07 '19 06:11 cwule

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()

cwule avatar Nov 07 '19 18:11 cwule

批注 2019-11-13 114216

1811353784 avatar Nov 13 '19 03:11 1811353784

I have the same problem here, did someone figured out how to fix this?

iscaru1988 avatar Nov 19 '19 12:11 iscaru1988

Same problem image

WooDooRealm avatar Nov 19 '19 14:11 WooDooRealm

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.

aimino avatar Mar 26 '20 08:03 aimino

i did what @aimino said and it works :)

KoenL-1747481 avatar Apr 07 '20 14:04 KoenL-1747481

Same here. Thanks to @aimino

xml1324 avatar May 14 '20 06:05 xml1324

thanks @aimino that got it working for me too!

margonzalezfranco avatar Jul 09 '20 05:07 margonzalezfranco

@aimino thanks a lot god bless you

gkxotjd12312 avatar Oct 12 '21 06:10 gkxotjd12312