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

igmCppPort.dll issue #2

Closed
hjforsythe-rlp opened this issue Jun 1, 2022 · 8 comments
Closed

igmCppPort.dll issue #2

hjforsythe-rlp opened this issue Jun 1, 2022 · 8 comments
Labels
question Further information is requested

Comments

@hjforsythe-rlp
Copy link

Describe the bug

unable to use IGmesh components downloaded from package manager because of this error:

  1. Solution exception:igmCppPort.dll assembly: type: member:(null)

Tried on both Windows and Mac M1 devices with the same error.

To Reproduce
Using the Examples file provided, all components were throwing this error.

steps taken so far:

unblocked all components (.dll and gha)
downloaded from food4rhino and package manager
tried with files in package folder and components folder on both dell and mac

Expected behavior
working?

Screenshots and Grasshopper links (if possible)

none

@hjforsythe-rlp
Copy link
Author

hjforsythe-rlp commented Jun 1, 2022

Windows Error Update:

Assertion Failed!
Program ... \packages\7.0\IG-Mesh\0.2.7\igmCppPort.dll
File: C:\Libraries\vcpkg\installed\x64-...\DenseCo...sBase.h
Line 427

Expression: index >=0 && index < size()

This is thrown when a new mesh in input into a component such as igGeoDist

@xarthurx
Copy link
Owner

xarthurx commented Jun 2, 2022

Windows Error Update:

Assertion Failed!

Program ... \packages\7.0\IG-Mesh\0.2.7\igmCppPort.dll

File: C:\Libraries\vcpkg\installed\x64-...\DenseCo...sBase.h

Line 427

Expression: index >=0 && index < size()

This is thrown when a new mesh in input into a component such as igGeoDist

Hello, thanks for the report.
From the error message, it seems the problem is caused by the quality of the mesh, which causes matrix computation fail.

Is your mesh a triangle-based mesh?
Could you try using "triangulate" component from GH to first triangulate the mesh and then try the 'geodist' component?

If the problem still exists, could you provide a link to download the mesh?

I'm currently on vacation now, and don't have access to the compiling env. But will be back around Jun 11.

@xarthurx
Copy link
Owner

xarthurx commented Jun 2, 2022

Another possibility is the .dll file is compiled for x64 system only.

If your windows is x86, the lib might not work. And I don't have Apple M1, which I cannot support yet.

@hjforsythe-rlp
Copy link
Author

Just Tried: Mesh Sphere and Cylinder Gh Components ---> Triangulate Gh component ---> igGeodesic

Windows still returns the same error on these triangulated meshes

I have attached the meshes to this file as well as a screenshot of the error.

IgMesh_Error_Meshes.gh.zip

no rush on this issue. Enjoy your vacation :)

PS. The error on my Mac is still different than Windows
(Mac Error: Solution exception:igmCppPort.dll assembly: type: member:(null) )

@hjforsythe-rlp
Copy link
Author

Another possibility is the .dll file is compiled for x64 system only.

If your windows is x86, the lib might not work. And I don't have Apple M1, which I cannot support yet.

Currently using windows x64, and yeah not many RH/GH tools support M1 yet which is too bad :/

@xarthurx
Copy link
Owner

Just Tried: Mesh Sphere and Cylinder Gh Components ---> Triangulate Gh component ---> igGeodesic

Windows still returns the same error on these triangulated meshes

I have attached the meshes to this file as well as a screenshot of the error.

IgMesh_Error_Meshes.gh.zip

no rush on this issue. Enjoy your vacation :)

PS. The error on my Mac is still different than Windows (Mac Error: Solution exception:igmCppPort.dll assembly: type: member:(null) )

Hi, I'm back and try to figure out what happened to your IG-Mesh.

image
Here is what happened to me following your steps.
Clearly, it is not what happened to you...

To clarify, are you using Windows x64 on a MacBook or on normal non-mac computer?

@xarthurx
Copy link
Owner

I'm closing this issue due to a lack of activity.
If you have questions, you can re-open it again.

@xarthurx xarthurx added the question Further information is requested label Sep 19, 2022
@xarthurx
Copy link
Owner

xarthurx commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants