rhino crash with vantage / The process was terminated due to an unhandled exception / Attempted to read or write protected memory

Hi,

Rhino crashes when working in Vray Vantage, this happens only when selecting a material in rhino with vantage open.

I’m getting this data from windows event manager:

		Application: Rhino.exe CoreCLR Version: 7.0.2024.26716 .NET Version: 7.0.20 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\_Globals\_GenerateQuickConte ntPreview(IntPtr,

​…

Please give me some hint where I can fix the issue.

Looking forward to hear from you.

Thanks,

Jacob

Application: Rhino.exe
CoreCLR Version: 7.0.2024.26716
.NET Version: 7.0.20
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_Globals_GenerateQuickConte ntPreview(IntPtr, Int32, Int32, IntPtr, Boolean, Int32, UInt32 ByRef)
at UnsafeNativeMethods.Rdk_Globals_GenerateQuickConte ntPreview(IntPtr, Int32, Int32, IntPtr, Boolean, Int32, UInt32 ByRef)
at Rhino.Render.RenderContent.GenerateQuickContentPre view(Rhino.Render.RenderContent, Int32, Int32, Rhino.Render.PreviewSceneServer, Boolean, Int32, Rhino.Commands.Result ByRef)
at RDK.Controls.NewContentControl.NewContentCtrlViewM odel.GenerateQuickContentPreview(Rhino.Render.Rend erContent, Boolean, Rhino.Render.PreviewAppearance, Rhino.Render.SceneServerDataUsage, Int32, Rhino.Commands.Result ByRef, Int32, Int32)
at RDK.Controls.NewContentControl.NewContentCtrlViewM odel.CreatePreviewImagesAll(Boolean)
at RDK.Controls.NewContentControl.NewContentCtrlViewM odel.DisplayData()
at RDK.Controls.NewContentControl.NewContentCtrlViewM odel.OnDataChanged(System.Object, Rhino.UI.Controls.DataSource.EventInfoArgs)
at UnsafeNativeMethods.IRhinoUiController_Commit(IntP tr, System.Guid)
at UnsafeNativeMethods.IRhinoUiController_Commit(IntP tr, System.Guid)
at RDK.Controls.GenericController.Commit(System.Guid)
at RDK.Controls.NewContentControl.NewContentCtrlViewM odel.SelectContents(Rhino.Render.RenderContentColl ection)
at RDK.Controls.NewContentControl.NewContentCtrl.Sele ctContents(Rhino.Render.RenderContentCollection)
at RDK.Panels.ObjectMaterialPropertiesPage.ObjectMate rialSection.RefreshUICallback()
at RDK.Panels.ObjectMaterialPropertiesPage.ObjectMate rialSection.RefreshUI()
at RDK.Panels.ObjectMaterialPropertiesPage.ObjectMate rialSection.DisplayData(Rhino.RhinoDoc, Rhino.DocObjects.RhinoObject[])
at RDK.Panels.ObjectMaterialPropertiesPage.ObjectMate rialPropertiesPage.UpdatePage(Rhino.UI.ObjectPrope rtiesPageEventArgs)
at Rhino.UI.RhinoPageHooks.PropertiesPanelUpdatePageH ook(IntPtr, System.Guid)



Hi,

This seem to be a combination of an issue in Rhino and a wrong assumption of ours that there can be no issue in Rhino.
Seems to occur only when the material panel had not be previously activated (not initialized). If you activate it at least once, prior the live link connection, there is no issue afterwards.
Anyway, I fixed it already and the next update will include it.

Thanks for reporting

Hi Nikolay

Unfortunately, that did not work in my case.
When is the update coming? Because I can’t use the program like this, it keeps crashing, also in different situations.

Jacob

It also happens when I got to viewport property’s, rhino just stops working. For me, Vantage is not working at all. Please find a solution

And with copy and paste from a second rhino file

Vantage 2.7.0 still crashes when changing material in rhino

@jjoostwoud

Anyway, I fixed it already and the next update will include it.
This was referring to the next V-Ray for Rhino update.

Ai, yes , sorry

I installed the new SR16 update and release candidate SR17 (13001, 02-18), but Rhino still crashes. Hopefully, this will be fixed soon.

I am not familiar with Rhino but this sounds like an update for Rhino itself. As I said, the issue was in the V-Ray for Rhino plugin. I think their next hotfix will be in a few weeks.

Solved in the last update, thanks!