Rhino 8 crash

We are working on an update of Rhino from V7 to V8, but on our computers we have a lot of problems with Rhino 8 because it crashes unexpectedly.

The informations i got from the crash-files points to a problem within .NET framework and window refresh:

[ERROR] FATAL UNHANDLED EXCEPTION: System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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]

The system information are:

Rhino 8 SR7 2024-5-17 (Rhino 8, 8.7.24138.15431, Git hash:master @ 03702f889bdef32626af4bca510b5e8a85666d38)
License type: Commercial, build 2024-05-17
License details: LAN Zoo Network Node

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 15GB)
.NET Framework 4.8.4645.0

Computer platform: LAPTOP - Plugged in [97% battery remaining]

Non-hybrid graphics configuration.
Primary display and OpenGL: AMD Radeon™ Graphics (AMD) Memory: 1GB, Driver date: 9-16-2021 (M-D-Y). OpenGL Ver: 4.6.14830 Compatibility Profile Context 21.10.26.06 27.20.21026.6002
> Integrated accelerated graphics device with 6 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: AMD Radeon™ Graphics (AMD) Memory: 1GB, Driver date: 9-16-2021 (M-D-Y). OpenGL Ver: 4.6.14830 Compatibility Profile Context 21.10.26.06 27.20.21026.6002
> Integrated accelerated graphics device with 6 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port

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: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: ATI Technologies Inc.
Render version: 4.6
Shading Language: 4.60
Driver Date: 9-16-2021
Driver Version: 27.20.21026.6002
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 512 MB

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.7.24138.15431
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”

Has anyone an idea what leads to this problem?

Thanks

This says that there is not enough memory on your system. Sounds like you’re working with files that are larger than fit in your 15GB RAM and pagefile.

No, this is not the problem. Happens on different files which are between 10MB - 50MB. Also the memory usage of Rhino before the crash is about 1G.

Your system info doesn’t show any third-party plug-ins, so it should not be necessary to run under that framework. Undo changes that make it run under .NET framework 4.8, and have it run under .NET 7 instead.

Other than that make sure you are on the latest drivers. I have seen it necessary to have also AMD GPUs run on drivers from this year, if possible.

Also make sure that absolutely all Windows updates have been installed.

If possible update your graphics drivers, 2021 is old, Rhino 8 needs drivers from this year if they are available.

We need to use the /netfx switch, because the computer runs in asia with Thai region settings. And according to discussion at Issue with Circle, Arc, and Polygon command in Rhino 8 - #23 by wim there is currently no other solution.
Or are there any updates on this region setting problem?

I don’t know. @wim do you know if anything happened on that front?

For testing i removed the /netfx switch and tried again. Still got a crash, but slightly different:

[ERROR] FATAL UNHANDLED EXCEPTION: System.Runtime.InteropServices.COMException (0x88980406): UCEERR_RENDERTHREADFAILURE (0x88980406)
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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]

And the system information now:

Rhino 8 SR7 2024-5-17 (Rhino 8, 8.7.24138.15431, Git hash:master @ 03702f889bdef32626af4bca510b5e8a85666d38)
License type: Commercial, build 2024-05-17
License details: LAN Zoo Network Node

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 15GB)
.NET 7.0.0

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Non-hybrid graphics configuration.
Primary display and OpenGL: AMD Radeon™ Graphics (AMD) Memory: 1GB, Driver date: 9-16-2021 (M-D-Y). OpenGL Ver: 4.6.14830 Compatibility Profile Context 21.10.26.06 27.20.21026.6002
> Integrated accelerated graphics device with 6 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: AMD Radeon™ Graphics (AMD) Memory: 1GB, Driver date: 9-16-2021 (M-D-Y). OpenGL Ver: 4.6.14830 Compatibility Profile Context 21.10.26.06 27.20.21026.6002
> Integrated accelerated graphics device with 6 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port

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: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: ATI Technologies Inc.
Render version: 4.6
Shading Language: 4.60
Driver Date: 9-16-2021
Driver Version: 27.20.21026.6002
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 512 MB

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.7.24138.15431
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”

Regarding the graphic driver: even though the driver on this computer is old, the crash happens on all kind of driver versions and graphic cards on different computers. So for my point of view it does not rely on the driver version.

A quick internet search points me to System.Runtime.InteropServices.COMException (0x88980406): UCEERR_RENDERTHREADFAILURE (0x88980406) · dotnet/wpf · Discussion #7465 · GitHub - sounds like an internal WPF based on that.

I don’t know what you mean by this, but you really do need to install the latest driver and see what happens. Also, see what happens on a computer with the newest nvidia card you have when you update the driver to the latest.

What i meant was, we have 60 floating licenses and even more computers with Rhino installed. This results in an huge amount of hardware/driver combinations and this problem happens on every computer.

But the hint on this website lead me to the problem/solution: WPF render thread failures - .NET Framework | Microsoft Learn

Thanks

@dsw - when Rhino crashes, do you see the “report a crash” dialog? I I’d like to review some .dmp files. I don’t see any crashes with your email in our system.

Thanks,

– Dale

Thanks @dale for your support, but the problem was finally on my side.
Made some mistakes with the changes for the dark theme :wink:

It would be great if you could elaborate on the changes you made that caused the crash to happen.