Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile the project because of plugin error #32

Open
chococococo opened this issue May 29, 2019 · 18 comments
Open

Cannot compile the project because of plugin error #32

chococococo opened this issue May 29, 2019 · 18 comments
Labels
bug/typo Something isn't working

Comments

@chococococo
Copy link

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
@ZiuTinyat
Copy link
Collaborator

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

@A-n-o-r-a-k
Copy link

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

@carnivean
Copy link

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)

@ZiuTinyat ZiuTinyat added the bug/typo Something isn't working label Jun 10, 2019
@ZiuTinyat
Copy link
Collaborator

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.

@cwule
Copy link

cwule commented Jul 5, 2019

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?

@SarahBrown97
Copy link

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

@topdude15
Copy link

topdude15 commented Aug 22, 2019

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?

@mertcanozturk
Copy link

same error @topdude15 @ZiuTinyat

@cwule
Copy link

cwule commented Nov 7, 2019

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
Copy link

cwule commented Nov 7, 2019

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

@1811353784
Copy link

批注 2019-11-13 114216

@iscaru1988
Copy link

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

@WooDooRealm
Copy link

Same problem
image

@aimino
Copy link

aimino commented Mar 26, 2020

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.

@KoenL-1747481
Copy link

i did what @aimino said and it works :)

@xml1324
Copy link

xml1324 commented May 14, 2020

Same here. Thanks to @aimino

@margonzalezfranco
Copy link

thanks @aimino that got it working for me too!

Lifeismana added a commit to Lifeismana/LIFProjet2020 that referenced this issue Feb 27, 2021
@gkxotjd12312
Copy link

@aimino thanks a lot god bless you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/typo Something isn't working
Projects
None yet
Development

No branches or pull requests