-
-
Notifications
You must be signed in to change notification settings - Fork 673
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
MessagePack throws in Rhino environment when the same assembly is loaded multiple times #1821
Comments
I assume the error is related to memory use. Hope someone and help me! |
I don't think we can help you with merely a "MessagePackSerializationException: Failed to serialize MyClass value." as the reported error message. |
Thank you for your reply! I can't find the full call stack. But I submitted an issue on the Rhino Forum: https://discourse.mcneel.com/t/get-an-error-when-using-c-script-component-to-get-nuget-package/182256/2 I will update this issue once I get any reply from there! |
@AArnott
|
I wonder if the assembly name changes each time it is recompiled and loaded. |
Based on what the developer of Rhino said, I think the assemblies have the same name. I will continue communicating on the McNeel forum. Thank you for your response! |
This may be a runtime limitation. .NET Framework doesn't support unloading assemblies, and I don't think mono does either. The newer ".NET" supports assembly unloading under certain conditions. I wonder which of these Rhino is based on. |
The attributes not being found isn't a runtime error -- that's an issue with build. Apparently MessagePack.Annotations isn't being referenced by the compiler. |
Yes, but this is weird. It can recognize all other package without this one. |
No denying it's weird... I'm just saying this isn't a MessagePack bug. Rhino is the odd one out here where all the issues are occurring, and MessagePack has proper dependencies between packages so that you shouldn't be getting attribute not found compiler errors, so all arrows point to Rhino being the problem and not something we can support. Sorry. |
Thank you for your help! I will continue communicating with Rhino developers! |
Bug description
I'm trying to use Rhino/Grasshopper, a 3d modeling and visual programming software, to send some Mesh geometry data via WIFI to another device.
And the MessagePack only works fine for the first time. Then keep reporting error.
Repro steps
You can see the video.
Expected behavior
No error message.
Actual behavior
Report error message: MessagePackSerializationException: Failed to serialize MyClass value.
Rhino 8 currently support .NET Framework and .NET. But it needs a reboot to switch between these two platforms.
.NET 7 doesn't.
.NET Framework 4.8 works fine
Additional context
2024-05-17.13-43-24.mp4
The text was updated successfully, but these errors were encountered: