It seems Rhino crashes when the user calls the Make2D command in case a plugin stored user data into the camera which was used during Make2D.
I was checking our data handling but it seems it is a general issue. I have attached a sample file to reproduce the problem.
Here is the sample .cs file:
Here is the sample scene file:
To trigger the crash:
- Open Rhino
- Load the sample file
- while the Perspective view is still the active run command “Make2DCrasher”
- rectangle-select the chair inside the perspective view
- run command Make2D (with default values and on the Perspective view)
It seems in case I select the chair after calling the Make2D command it sometimes doesn’t crash. But if I select the chair before the Make2D command call it is quite sure it crashes on my computer.
I have tested mainly under WIN, but it crashes under OSX too.
Here is the OSX crash log, maybe it helps:
Rhinoceros_2020-01-28-094402_MacBook-Pro.crash.zip (39.5 KB)
This is not the crashing thread but maybe it seems it has some connection to user datas:
Thread 2:: Finalizer
0 libc++abi.dylib 0x00007fff6bc353d8 __dynamic_cast + 26
1 com.mcneel.rhinoceros.RhCommon 0x00000001386651dc CRhCmnUserData_Delete + 41
2 ??? 0x000000015cff56dc 0 + 5855205084