Grasshopper generating RhinoDotNetCrash.txt at desktop when closing a file

Hi all,

Every time I close a GH file, it creates a RhinoDotNetCrash.txt on my desktop. I already tried to uninstall and go back to the SR version without luck. I suspect it started either after installation of the latest Rhino SRC or Windows update as I did them both around the same time.

Looks like it is caused by the Bifocals plug-in because as soon as I “uninstall” (read delete) the file, I no longer get the RhinoDotNetCrash.txt file.

Please see info below:

SystemInfo:

Rhino 6 SR30 2020-8-26 (Rhino 6, 6.30.20239.17111) (deleted)
License type: Commercial, build 2020-08-26
License details: Cloud Zoo. In use by: (deleted)

Windows 10.0 Pro Version 2004 64-bit (Physical RAM: 32Gb)
OS build: 19041.488

Machine name: (deleted)

Hybrid graphics system.
Primary display: Intel® UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 8-5-2020 (M-D-Y).
Primary OpenGL: NVIDIA GeForce RTX 2080 (NVidia) Memory: 8GB, Driver date: 8-12-2020 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 452.06

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On

Anti-alias mode: 8x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: Height

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 8-12-2020
Driver Version: 27.21.14.5206
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 8 GB

Rhino plugins
C:\Program Files\Rhino 6\Plug-ins\Commands.rhp “Commands” 6.30.20239.17111
C:\Program Files\Rhino 6\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 6\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 6.30.20239.17111
C:\Program Files\Rhino 6\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Users\Omeninho\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\PanelingTools (6caed836-bc06-4ebc-b1fd-e10886a0dc94)\2018.12.17.906\PanelingTools.rhp “PanelingTools”
C:\Program Files\Rhino 6\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Panther\Panther.rhp “Panther” 1.0.2007.8
C:\Program Files\Rhino 6\Plug-ins\RhinoCycles.rhp “RhinoCycles” 6.30.20239.17111
C:\Program Files\Rhino 6\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 6.30.20239.17111
C:\Program Files\Rhino 6\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 6\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Common Files\McNeel\Rhinoceros\6.0\Plug-ins\Flamingo nXt 5.0 (fd53f8c4-546d-47d1-8820-e66c97645a97)\5.5.18353.6521\5.5\Flamingo.nXt.rhp “Flamingo nXt 5.5” 5.5.18353.6521

RhinoDotNetCrash.txt file content:

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.
at Bifocals.BifocalsComponent.removeAnnotations()
at Bifocals.BifocalsComponent.Doc_ObjectsDeleted(Object sender, GH_DocObjectEventArgs e)
at Grasshopper.Kernel.GH_Document.OnObjectsDeleted(IEnumerable1 doc_objects) at Grasshopper.Kernel.GH_Document.RemoveObjects(IEnumerable1 objectList, Boolean update)
at Grasshopper.Kernel.GH_Document.Dispose(Boolean disposing)
at Grasshopper.Kernel.GH_DocumentServer.RemoveDocument(GH_Document document)
at Grasshopper.Kernel.GH_DocumentServer.SafeRemoveDocument(GH_Document document)
at Grasshopper.GUI.GH_DocumentEditor.MnuCloseClick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[END ERROR]

Any input on how to overcome this small issue is much appreciated.

Cheers,

Rick.

Remove Bifocals then.

It seems Bifocals mishandles when there’s no active document.

1 Like

You can’t do anything, apart from uninstalling Bifocals. The Bifocals developer can fix the issue, and I can put extra error handling around the event which is ultimately causing Bifocals to throw the exception. (I’ve just done that, the next Rhino7 release will have this additional protection).

1 Like

@Keyu and David: Thanks a lot for the feedback and info provided, much appreciated. It brings me a certain relief to know that the “culprit” is not at Rhino´s end as I was worried that I had messed up my installation after the SRC and Windows Updates.

Cheers!

Rick.