Bug: Rhino 8 crashes after resizing floating toolbars

Hi,

if you try to decrease a floating toolbar rhino crashes

Rhino 8 SR4 2024-2-13 (Rhino 8, 8.4.24044.15001, Git hash:master @ 5d3f86ffffae3c2ed84d21147c008b3907a40a2e)
License type: Comercial, build 2024-02-13
License details: Cloud Zoo

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 64GB)
.NET 7.0.16

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 3070 (NVidia) Memory: 8GB, Driver date: 1-18-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 551.23
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port 0

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 2x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

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

Rhino plugins that do not ship with Rhino
C:\Program Files\Chaos Group\V-Ray\V-Ray for Rhinoceros\V7\VRayForRhino.rhp “V-Ray for Rhino”
D:\00 RESOURCES\080_RH7\SafeLayout.rhp “SafeLayout” 1.1.0.2
C:\Users\Usuario\AppData\Roaming\McNeel\Rhinoceros\packages\7.0\CommandTracker\7.0.8201.28462\CommandTracker.rhp “CommandTracker” 7.0.8201.28462
C:\Users\Usuario\AppData\Roaming\McNeel\Rhinoceros\8.0\Plug-ins\Crayon (39629248-4fa6-47b8-83c7-745a7efea259)\1.2.0.0\Crayon\Crayon.rhp “Crayon” 1.0.0.0
D:\00 RESOURCES\080_RH7\blockeditnew202310240119\BlockEditNew.rhp “BlockEdit” 1.0.0.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoBonusTools.rhp “Rhino Bonus Tools”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\RhinoCode\RhinoCodePlugin.rhp “RhinoCodePlugin” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.4.24044.15001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

And you get an RhinoDotNetCrash.txt:

[ERROR] FATAL UNHANDLED EXCEPTION: System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[END ERROR]

It also happens when i launch safe mode

As a first step, see if SR5 works better.

In Options > Updates and Statistics > Update frequency, select Service Release Candidate, then click Check now…

Any better?

Hi @John_Brock

i’ve just updated to SR5 and it still happens… exactly the same as on SR4

Hi Nacho -

As a second step, please disable all 3rd party plug-ins and restart Rhino. Does that still crash?
-wim

Hi @wim

i’ve done as yopu suggested and still crashes. Also tried safemode.

i’ve discovered it only happens if you resize the toolbar horizontally… vertically works fine

I’m not seeing that here… Resizing in any direction seems to work fine without crashing.
(8.5.24065.13001, 2024-03-05)

@nachetz
Assuming you really mean a crash, are you sending in the Rhino Crash Reports with your email address and description of what you were attempting, or is is something else happening?

Rhino shutdowns after resizing the toolbar as seen on the video and a RhinoDotNetCrash.txt shows on the same folder:

[ERROR] FATAL UNHANDLED EXCEPTION: System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[END ERROR]

There is no Rhino Crash Reports window as seen on the video

as you can see rhino closes but there is no Rhino Crash Report and the appears on the same folder

Interesting.
That generally indicates that something in Windows that Rhino uses, is damaged, crashing, and taking Rhino with it.

Is your system fully up to date using Windows “Check for Updates”?

Yes, all windows + drivers up to date… :worried:

Another thing to try is a Repair of Rhino 8.

  1. Windows Control Panel
  2. Add/Remove programs
  3. Select Rhino
  4. Click Change
  5. Click Repair

A Repair will force a reinstall of the Windows dependencies that I suspect might be damaged.

Any luck?
Don’t be surprised if you need to restart Windows.

@curtisw - can you have a look at this?

1 Like

Hi @John_Brock

i’ve just tried Repair Rhino 8 but unfortunately no luck…

This is really grasping for straws, but…
Assuming you have not modified your toolbar arrangement, I’d suggest trying a Reset:
image

No luck… should i try to make a clean install?

No. A reinstall would be a waste of time.
The Repair did what a reinstall does plus reinstalls the Microsoft dependencies.
I’m out of ideas.

I’ve asked the developers if they have any ideas on what to try.
Sorry.

1 Like

nachetz,

Please open Rhino in Safe Mode (via Windows start) and try again

this seems a pretty widely reported issue

https://developercommunity.visualstudio.com/t/overflow-exception-in-windowchrome/167357

discussion there may give some hints at how to avoid the issue until it can be worked around

2 Likes

Hi,

did it before writing and i’ve done again, no luck…
it only happens with Rhino 8, if i use rhino 7 it works well

1 Like