Crash Grasshopper for mac WIP 5C249w

Hi vaz-

Sorry for the delayed reply (I’m playing catchup a little here).

Do you still have the Grasshopper definition/file that was causing this problem? If so, can you attach it here so we can take a look?

Thanks in advance,
-Dan

This has happened to me with a variety of grasshopper definitions in this version. Here’s a pretty simple one - in the process of recreating it, rhino crashed several times. Hope this helps!

unhandled current domain exception.gh (6.2 KB)

Having similar issues. Code below from current error. Seems to be triggered when hovering over icons in grasshopper toolbar. UI issue?
Unhandled CurrentDomain Exception

System.InvalidCastException: Cannot cast from source type to destination type.
at (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
at MonoMac.ObjCRuntime.NSObjectMarshaler`1[MonoMac.AppKit.NSView].MarshalNativeToManaged (IntPtr handle) [0x00000] in :0
at (wrapper native-to-managed) object:[System.Windows.Forms.ViewHelper:Void ViewWillMoveToSuperview(MonoMac.AppKit.NSView)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSView)
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:void_objc_msgSendSuper_UInt64 (intptr,intptr,ulong)
at MonoMac.AppKit.NSWindow.set_StyleMask (NSWindowStyle value) [0x00000] in :0
at System.Windows.Forms.Form.SetStyleMask () [0x00000] in :0
at System.Windows.Forms.Form.set_FormBorderStyle (FormBorderStyle value) [0x00000] in :0
at Grasshopper.GUI.GH_ToolTipForm.InitializeComponent () [0x00000] in :0
at Grasshopper.GUI.GH_ToolTipForm…ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) Grasshopper.GUI.GH_ToolTipForm:.ctor ()
at Grasshopper.GUI.GH_Tooltip.EnsureTooltipForm () [0x00000] in :0
at Grasshopper.GUI.GH_Tooltip.AssignTooltipFields (System.String title, System.String text, System.String description, System.Drawing.Image icon, System.Drawing.Image diagram) [0x00000] in :0
at Grasshopper.GUI.GH_TooltipComponent.ShowTooltip () [0x00000] in :0
at Grasshopper.GUI.GH_TooltipComponent.TimerTick (System.Object sender, System.EventArgs e) [0x00000] in :0
at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x00000] in :0
at System.Windows.Forms.Timer.FireTick () [0x00000] in :0
at MonoMac.Foundation.NSActionDispatcher.Apply () [0x00000] in :0
at (wrapper native-to-managed) object:[MonoMac.Foundation.NSActionDispatcher:Void Apply()] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector)

StackTrace:
at (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
at MonoMac.ObjCRuntime.NSObjectMarshaler`1[MonoMac.AppKit.NSView].MarshalNativeToManaged (IntPtr handle) [0x00000] in :0
at (wrapper native-to-managed) object:[System.Windows.Forms.ViewHelper:Void ViewWillMoveToSuperview(MonoMac.AppKit.NSView)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSView)
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging:void_objc_msgSendSuper_UInt64 (intptr,intptr,ulong)
at MonoMac.AppKit.NSWindow.set_StyleMask (NSWindowStyle value) [0x00000] in :0
at System.Windows.Forms.Form.SetStyleMask () [0x00000] in :0
at System.Windows.Forms.Form.set_FormBorderStyle (FormBorderStyle value) [0x00000] in :0
at Grasshopper.GUI.GH_ToolTipForm.InitializeComponent () [0x00000] in :0
at Grasshopper.GUI.GH_ToolTipForm…ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) Grasshopper.GUI.GH_ToolTipForm:.ctor ()
at Grasshopper.GUI.GH_Tooltip.EnsureTooltipForm () [0x00000] in :0
at Grasshopper.GUI.GH_Tooltip.AssignTooltipFields (System.String title, System.String text, System.String description, System.Drawing.Image icon, System.Drawing.Image diagram) [0x00000] in :0
at Grasshopper.GUI.GH_TooltipComponent.ShowTooltip () [0x00000] in :0
at Grasshopper.GUI.GH_TooltipComponent.TimerTick (System.Object sender, System.EventArgs e) [0x00000] in :0
at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x00000] in :0
at System.Windows.Forms.Timer.FireTick () [0x00000] in :0
at MonoMac.Foundation.NSActionDispatcher.Apply () [0x00000] in :0
at (wrapper native-to-managed) object:[MonoMac.Foundation.NSActionDispatcher:Void Apply()] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector)

Hi dan…thank you…

the grasshopper definition is there, but now it crash overtime…

Unhandled CurrentDomain Exception
System.InvalidCastException: Cannot cast from source type to destination type.
at MonoMac.AppKit.NSColor.UsingColorSpace (string) <0x0009b>
at System.Drawing.ConversionHelpers.ToColor (MonoMac.AppKit.NSColor) <0x00159>
at System.Windows.Forms.Control.get_DefaultBackColor () <0x00029>
at System.Windows.Forms.Form.get_BackColor () <0x0004d>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.PaintControlBackground (System.Windows.Forms.PaintEventArgs) <0x00098>
at System.Windows.Forms.Control.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x00018>
at Grasshopper.GUI.GH_Label.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x0005c>
at System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0007d>
at System.Windows.Forms.TextFieldView.DrawRect (MonoMac.CoreGraphics.CGRect) <0x0025c>
at (wrapper dynamic-method) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00078>
at (wrapper native-to-managed) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00151>
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_CGRect_bool (intptr,intptr,MonoMac.CoreGraphics.CGRect,bool) <0x0009a>
at MonoMac.AppKit.NSWindow.SetFrame (MonoMac.CoreGraphics.CGRect,bool) <0x000c5>
at System.Windows.Forms.Form.UpdateBounds (MonoMac.AppKit.NSView) <0x0013f>
at System.Windows.Forms.Control.SetBoundsInternal (int,int,int,int) <0x000a4>
at System.Windows.Forms.Control.SetBounds (int,int,int,int,System.Windows.Forms.BoundsSpecified) <0x000bf>
at System.Windows.Forms.Control.set_Width (int) <0x00065>
at Grasshopper.GUI.Ribbon.GH_RibbonDropdown.GH_RibbonPanelDropdown_Load (object,System.EventArgs) <0x00773>
at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x0007f>
at System.Windows.Forms.Form.CallLoad () <0x00023>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.CallLoad () <0x0006c>
at System.Windows.Forms.FormHelper.CallLoad () <0x00030>
at System.Windows.Forms.Form.InternalShow () <0x002d0>
at System.Windows.Forms.Control.Show () <0x00013>
at System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x00443>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x0007d>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown (bool) <0x002e7>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown () <0x00019>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bd>
at Grasshopper.GUI.Ribbon.GH_RibbonTab.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bf>
at Grasshopper.GUI.Ribbon.GH_Ribbon.GH_RibbonControl_MouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0019a>
at (wrapper delegate-invoke) .invoke_void_object_MouseEventArgs (object,System.Windows.Forms.MouseEventArgs) <0x000ac>
at System.Windows.Forms.Control.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x0007f>
at System.Windows.Forms.UserControl.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x00019>
at System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0008f>
at System.Windows.Forms.ScrollViewHelper.MouseDown (MonoMac.AppKit.NSEvent) <0x0009e>
at (wrapper dynamic-method) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00050>
at (wrapper native-to-managed) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00197>

StackTrace:
at MonoMac.AppKit.NSColor.UsingColorSpace (string) <0x0009b>
at System.Drawing.ConversionHelpers.ToColor (MonoMac.AppKit.NSColor) <0x00159>
at System.Windows.Forms.Control.get_DefaultBackColor () <0x00029>
at System.Windows.Forms.Form.get_BackColor () <0x0004d>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.get_BackColor () <0x00088>
at System.Windows.Forms.Control.PaintControlBackground (System.Windows.Forms.PaintEventArgs) <0x00098>
at System.Windows.Forms.Control.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x00018>
at Grasshopper.GUI.GH_Label.OnPaintBackground (System.Windows.Forms.PaintEventArgs) <0x0005c>
at System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.Draw (System.Windows.Forms.PaintEventArgs) <0x0007d>
at System.Windows.Forms.TextFieldView.DrawRect (MonoMac.CoreGraphics.CGRect) <0x0025c>
at (wrapper dynamic-method) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00078>
at (wrapper native-to-managed) object.[System.Windows.Forms.TextFieldView.Void DrawRect(MonoMac.CoreGraphics.CGRect)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.CoreGraphics.CGRect) <0x00151>
at (wrapper managed-to-native) MonoMac.ObjCRuntime.Messaging.void_objc_msgSendSuper_CGRect_bool (intptr,intptr,MonoMac.CoreGraphics.CGRect,bool) <0x0009a>
at MonoMac.AppKit.NSWindow.SetFrame (MonoMac.CoreGraphics.CGRect,bool) <0x000c5>
at System.Windows.Forms.Form.UpdateBounds (MonoMac.AppKit.NSView) <0x0013f>
at System.Windows.Forms.Control.SetBoundsInternal (int,int,int,int) <0x000a4>
at System.Windows.Forms.Control.SetBounds (int,int,int,int,System.Windows.Forms.BoundsSpecified) <0x000bf>
at System.Windows.Forms.Control.set_Width (int) <0x00065>
at Grasshopper.GUI.Ribbon.GH_RibbonDropdown.GH_RibbonPanelDropdown_Load (object,System.EventArgs) <0x00773>
at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x0007f>
at System.Windows.Forms.Form.CallLoad () <0x00023>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.CallLoad () <0x0006c>
at System.Windows.Forms.FormHelper.CallLoad () <0x00030>
at System.Windows.Forms.Form.InternalShow () <0x002d0>
at System.Windows.Forms.Control.Show () <0x00013>
at System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x00443>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.Show (System.Windows.Forms.IWin32Window) <0x0007d>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown (bool) <0x002e7>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.DisplayDropdown () <0x00019>
at Grasshopper.GUI.Ribbon.GH_RibbonPanel.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bd>
at Grasshopper.GUI.Ribbon.GH_RibbonTab.MouseDown (Grasshopper.GUI.Ribbon.GH_Ribbon,Grasshopper.GUI.Ribbon.GH_RibbonMouseEventArgs) <0x000bf>
at Grasshopper.GUI.Ribbon.GH_Ribbon.GH_RibbonControl_MouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0019a>
at (wrapper delegate-invoke) .invoke_void_object_MouseEventArgs (object,System.Windows.Forms.MouseEventArgs) <0x000ac>
at System.Windows.Forms.Control.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x0007f>
at System.Windows.Forms.UserControl.OnMouseDown (System.Windows.Forms.MouseEventArgs) <0x00019>
at System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0001b>
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.FireMouseDown (object,System.Windows.Forms.MouseEventArgs) <0x0008f>
at System.Windows.Forms.ScrollViewHelper.MouseDown (MonoMac.AppKit.NSEvent) <0x0009e>
at (wrapper dynamic-method) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00050>
at (wrapper native-to-managed) object.[System.Windows.Forms.ScrollViewHelper.Void MouseDown(MonoMac.AppKit.NSEvent)] (MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSEvent) <0x00197>

Hi @BetsyBull-

Thanks for attaching the definition. I tried to reproduce the crash by recreating the definition you provided, but I could not produce a crash. I made sure to select components from the toolbar and hover over them to get tooltips before dragging them onto the canvas. Can I trouble you to submit your system information (RhinoWIP > About Rhinoceros > More info… > Copy to clipboard and paste here)? I’d like to compare our two systems to see what is different.

Thanks,
-Dan

Software information

Software versions
Rhinoceros version: 5.2 WIP (5C249w)
IronPython version: 5.1.2015.131
Language: en
OS X version: Version 10.11.5 (Build 15F34)

Plug-ins
None

Third party kernel extensions
None

Hardware information

Computer hardware
Hardware model: Macmini7,1
Processor: Intel Core i5-4278U CPU @ 2.60GHz
Memory: 8 GB
Architecture: Intel 64 bit

Video hardware
Graphics: Intel Iris 1536 MB
Memory: 1536 MB
Screen size: 1920 x 1080
Displays: HS221HPB (72dpi 1x)

USB devices
Apple, Inc.: IR Receiver
Apple Inc.: Bluetooth USB Host Controller
Mitsumi Electric: Apple Optical USB Mouse
Apple Inc.: Apple Keyboard

Bluetooth devices
None

OpenGL information

OpenGL software
OpenGL version: 2.1 INTEL-10.14.66
Render version: 2.1
Shading language: 1.20
Maximum texture size: 16384 x 16384
Z-buffer depth: 24 bits
Maximum viewport size: 16384 x 16384

Implementation settings
Use texture compression: No

Appearance settings
Antialiasing: 4x
Mip map filtering: None
Anisotropic filtering: None

Sure! I’ve had the crash occur in a number of ways - it doesn’t always seem to be related to hovering on the toolbar. I’ve also had this kind of crash occur when I’m sticking to searching for components instead of selecting them from the toolbar. It was happening with increasing frequency until I found another thread that suggested deleting the kernel file to reset - I did that and it helped for a while, but I have had it crash since then. Thanks for your help!!

Software information

Software versions
Rhinoceros version: 5.2 WIP (5C249w)
IronPython version: 5.1.2015.131
Language: en (MacOS default)
OS X version: Version 10.11.5 (Build 15F34)

Plug-ins
None

Third party kernel extensions
None

Hardware information

Computer hardware
Hardware model: MacBookPro10,2
Processor: Intel Core i7-3520M CPU @ 2.90GHz
Memory: 8 GB
Architecture: Intel 64 bit

Video hardware
Graphics: Intel HD Graphics 4000 1536 MB
Memory: 1536 MB
Screen size: 1280 x 800
Displays: Color LCD (227dpi 2x)

USB devices
Apple Inc.: Apple Internal Keyboard / Trackpad
Apple Inc.: Bluetooth USB Host Controller
Apple Inc.: FaceTime HD Camera (Built-in)
Generic: Mass Storage

Bluetooth devices
None

OpenGL information

OpenGL software
OpenGL version: 2.1 INTEL-10.14.66
Render version: 2.1
Shading language: 1.20
Maximum texture size: 16384 x 16384
Z-buffer depth: 24 bits
Maximum viewport size: 16384 x 16384

Implementation settings
Use texture compression: No

Appearance settings
Antialiasing: 4x
Mip map filtering: None
Anisotropic filtering: None

Hello,

@dan
I think, I have found a reliable way to recreate this bug (or at least to my eyes, it seems very similar so I’ll post here).
In the latest WIP (5D48w):
Open a new file
launch explicit History
After a few clicks to unroll different complete tabs, it crashes.-> the “Unhandeled CurrentDomain Exeption in .NET” window appears.

It is not specific to a certain tab.
It always happens after a few tab openings, but no specific times. might be after only two or 15.

Since my english is lacking quite a bit a vocabulary (sorry for the poor explanation above), i’ve made a screen video to make it clearer: https://we.tl/b7KWKCbxPY (45 Mo, too big for here)

I hope it helps.
nico

System info:

Software information

Software versions
Rhinoceros version: 5.3 WIP (5D48w)
IronPython version: 5.1.2015.131
Language: fr (MacOS default)
OS X version: Version 10.11.6 (assemblage 15G31)

Plug-ins
/Library/Frameworks/3DconnexionClient.framework/Versions/A/3DconnexionClient

Third party kernel extensions
com.3dconnexion.driver (10.4.0) 10CE9A5F-BE1D-329A-A834-94F8E97D2871

Hardware information

Computer hardware
Hardware model: iMac17,1
Processor: Intel Core i7-6700K CPU @ 4.00GHz
Memory: 32 GB
Architecture: Intel 64 bit

Video hardware
Graphics: AMD Radeon R9 M390 2048 MB
Memory: 2048 MB
Screen size: 2560 x 1440
Displays: iMac (217dpi 2x)

USB devices
Western Digital: Elements 10B8
Broadcom Corp.: Bluetooth USB Host Controller
Apple Inc.: FaceTime HD Camera (Built-in)
3Dconnexion: SpaceNavigator
Mitsumi Electric: Apple Optical USB Mouse
Apple Inc.: Apple Keyboard
Focusrite: Scarlett Solo USB

Bluetooth devices
None

OpenGL information

OpenGL software
OpenGL version: 2.1 ATI-1.42.15
Render version: 2.1
Shading language: 1.20
Maximum texture size: 16384 x 16384
Z-buffer depth: 24 bits
Maximum viewport size: 16384 x 16384

Implementation settings
Use texture compression: No

Appearance settings
Antialiasing: 8x
Mip map filtering: Aucun
Anisotropic filtering: Élevé

Thanks for reporting this @nico. We are working on that bug (MR-2701). We are able to reliably reproduce it on our machines.