Bongo 2 & Cycles crashing during rendering

I am trying to render an animation of 750 frames and at a random point during rendering Rhino quits completely. I am running a high-spec PC with ample resources to handle it I would have thought. (Ryzen 9 9950x, 128gb DDR5, Nvidia 4080 Super).

Here is a still from the animation, there are many components.

Denoising is set to off

Looking at windows event viewer I get the same errors each time. I wonder based on some of the errors that there is a problem with one or more of the materials I am using? I have searched the forum and am yet to find a solution, any help here would be great!

Application: Rhino.exe
CoreCLR Version: 7.0.22.51805
.NET Version: 7.0.0
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Stack:
   at UnsafeNativeMethods.Rdk_RenderMaterial_SimulateMaterial(IntPtr, IntPtr, CRhRdkTextureGenConsts)
   at UnsafeNativeMethods.Rdk_RenderMaterial_SimulateMaterial(IntPtr, IntPtr, CRhRdkTextureGenConsts)
   at RhinoCyclesCore.CyclesShader.RecordDataForShaderPart(RhinoCyclesCore.ShaderBody, Rhino.Render.RenderMaterial, Single)
   at RhinoCyclesCore.CyclesShader.RecordDataForFrontShader(Rhino.Render.RenderMaterial, Single)
   at RhinoCyclesCore.Converters.ShaderConverter.RecordDataToSetupCyclesShader(Rhino.Render.RenderMaterial, Rhino.Render.LinearWorkflow, UInt32, RhinoCyclesCore.Converters.BitmapConverter, System.Collections.Generic.List`1<RhinoCyclesCore.CyclesDecal>, UInt32)
   at RhinoCyclesCore.Database.ChangeDatabase+<>c__DisplayClass112_0.<ApplyMeshInstanceChanges>b__5(Rhino.Render.ChangeQueue.MeshInstance)
   at System.Threading.Tasks.Parallel+<>c__DisplayClass19_0`1[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ForWorker>b__1(System.Threading.Tasks.RangeWorker ByRef, Int32, Boolean ByRef)
   at System.Threading.Tasks.TaskReplicator+Replica.Execute()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef, System.Threading.Thread)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()

Faulting application name: Rhino.exe, version: 8.14.24345.15001, time stamp: 0x6758cc40
Faulting module name: coreclr.dll, version: 7.0.22.51805, time stamp: 0x634ed04e
Exception code: 0xc0000005
Fault offset: 0x00000000001cd98c
Faulting process id: 0x4674
Faulting application start time: 0x1DB51A2EC1ABF86
Faulting application path: C:\Program Files\Rhino 8\System\Rhino.exe
Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.0\coreclr.dll
Report Id: 5c8ca300-1dc2-4787-8c90-30efd154814b
Faulting package full name: 
Faulting package-relative application ID: 

_Sysinfo dump

Rhino 8 SR14 2024-12-10 (Rhino 8, 8.14.24345.15001, Git hash:master @ cdb74b46090a23fe242c51b288886f76467a741b)
License type: Commercial, build 2024-12-10
License details: Cloud Zoo

Windows 11 (10.0.26100 SR0.0) or greater (Physical RAM: 126GB)
.NET 7.0.0

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 4080 SUPER (NVidia) Memory: 16GB, Driver date: 11-6-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 566.14
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port 0

Secondary graphics devices.
AMD Radeon™ Graphics (AMD) Memory: 2GB, Driver date: 6-25-2024 (M-D-Y).
> Accelerated graphics device with 5 adapter port(s)
- There are no monitors attached to this device!

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: 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: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 11-6-2024
Driver Version: 32.0.15.6614
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 16376 MB

Rhino plugins that do not ship with Rhino
C:\ProgramData\McNeel\Rhinoceros\8.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino8.rhp “Datasmith Exporter” 5.5.0.0
C:\Program Files\Common Files\McNeel\Rhinoceros\8.0\Plug-ins\Bella (813de3fb-18eb-405f-bfcd-b0b4d3da91fb)\24.2.0.0\bella_rhino.rhp “Bella” 24.2.0.0
C:\Program Files\Bongo 2.0 (64-bit)\Rhino6\Bongo.20.rhp “Bongo 2.0”
C:\Program Files\Bongo 2.0 (64-bit)\BongoUI.20.v60.rhp “BongoUI20v60”

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

Are you not getting a Rhino crash reporter dialog when these crashes happen?

It would be useful if you could share your animation 3dm file (zipped up with any and all support files) with us so we can investigate and try to reproduce the crash here. You can do so confidentially using our upload tool. I have prefilled my email address so that I get notified when the upload is complete. Please put a short description and a link bact to this discussion in the comment text area so I know what the file is for.

edit: there were some fixes related to handling of materials by RhinoCycles in Rhino 8.15 service release candidate. It would be great if you could try updating to that to see if that helps with your project: Help > Check for Updates… , set update frequency to Service Release Candidate.

Hi Nathan

Thank you for your reply. I have had some success.

I tried setting the CPU as the renderer and there were no crashes animating out the sequence, albeit much much slower. I need to be utilising the GPU. Of note, I am running the Nvidia studio drivers, not the game ready drivers.

I will update to the latest service release, thank you for the suggestion.

If am going to have a guess, I may need to increase the GPU throttling from 100ms to say 250ms and see if it still happens. I will try that and report back.

There is no crash reporter dialog when this happens, just a straight quit to the desktop.

I will look into uploading the model when I am back at my desktop. What is the max file size you can receive? This one is around 400mb.

Thanks
Mike

You should not need to set CPU as the renderer, keep using GPU. The crash stack trace you showed is something that happens outside of the actual rendering during the preparation of the data to be used to render. You also shouldn’t have to throttle the display update - but can of course. It just means more rendering between display updates. Potentially a bit faster rendering since less time is spent on updating the display, especially when rendering on CPU.

I think the rendering should be much more stable with the Rhino 8.15 SRC, since it has a fix for the crash you showed.

I believe somewhere around 1GB or so.

Hi Nathan

Unfortunately the update to Rhino 8.15 SRC has not fixed the issue. Rhino still crashes without a trace with the same errors as above in windows event viewer.

I have uploaded the file for you to have a look at. Please note: I forgot to turn off the layer called Trackballs, please do so before rendering.

I also included the textures but the paths to them might be incorrect.

Please let me know if I can provide anything else such as the render settings

Thanks
Mike