Rhino 8 WIP Crashes immediately on startup

I installed Rhino WIP and started it up. Ran RhinoCode, let it install Python. I then tried to run Example 2 (Python), which resulted in it crashing immediately.

Tried running again, crashes immediately on startup after the splash screen. No luck with safe mode. Reinstalling did not solve the issue either.

Any ideas?

Build number 8.0.21327.16305

Hi Mohamed -
Could you post the SystemInfo data from Rhino 7?
Apart from that, I would look for the RhinoCode plug-in in Windows explorer and rename the rhp file (changing the extension) and see if that does anything.
-wim

My Rhino WIP is also crashing immediately on startup.

After reading this post I do recall using RhinoCode editor after the update which crashed Rhino WIP. I then tried to repair Rhino WIP with no effect also.

Could you please do as I asked above?
-wim

Removing the extension from RhinoCodePlugin.rhp had no effect.

When I run the “C:\Program Files\Rhino 8 WIP\System\Rhino.exe” directly Rhino did not crash started fine.

I use bat,cmd and shortcuts with flags like this from a cmd file:

"C:\Program Files\Rhino 8 WIP\System\Rhino.exe" /notemplate /nosplash /scheme="clean_no_ui_a"

Which is crashing.

I removed the /scheme like this from a cmd file:

"C:\Program Files\Rhino 8 WIP\System\Rhino.exe" /notemplate /nosplash

And now Rhino WIP is working.

This maybe a registry related issue. I use schemes all the time so the most recent update must somehow broken the creation of new schemes.

Old schemes seem to work fine. But I can not create new schemes correctly. The registry has my entry however the scheme is missing plug-ins key.

The schemes without “Plug-ins” key are crashing on startup while the others do not.

RhinoCode is now crashing when creating a new script:

[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: WebView2 was already initialized with a different CoreWebView2Environment. Check to see if the Source property was already set or EnsureCoreWebView2Async was previously called with different values.
   at Microsoft.Web.WebView2.Wpf.WebView2.EnsureCoreWebView2Async(CoreWebView2Environment environment)
   at Ed.Eto.Wpf.EdHandler.<InitializeAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   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]

Not sure if the scheme and RhinoCode problems are related but directly after the most recent auto-update creating new schemes for Rhino WIP stopped working and RhinoCode is crashing when creating new scripts.

Rhino 7 SR8 2021-7-15 (Rhino 7, 7.8.21196.05001, Git hash:master @ 45c1fd6dc85c7c1cce8c0bbe6f3e16481ae9abfa)
License type: Commercial, build 2021-07-15
License details: Cloud Zoo

Windows 10.0.19042 SR0.0 or greater (Physical RAM: 32Gb)

Computer platform: DESKTOP 

Standard graphics configuration.
  Primary display and OpenGL: NVIDIA Quadro P2200 (NVidia) Memory: 5GB, Driver date: 2-9-2021 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 461.55
    > Accelerated graphics device with 4 adapter port(s)
        - Secondary monitor attached to adapter port #0
        - Windows Main Display attached to adapter port #1

Secondary graphics devices.
  Citrix Display Only Adapter (Citrix Systems Inc.) Memory: 0MB, Driver date: 11-13-2019 (M-D-Y).
    > External USB display device with 8 adapter port(s)
        - There are no monitors attached to this device!
  Citrix Indirect Display Adapter (Citrix Systems Inc.) Memory: 0MB, Driver date: 11-13-2019 (M-D-Y).
    > External USB display device with 8 adapter port(s)
        - There are no monitors attached to this device!
  Intel(R) UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 10-28-2020 (M-D-Y).
    > Integrated graphics device with 3 adapter port(s)
        - There are no monitors attached to this device!

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: 8x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High
  
  Vendor Name: NVIDIA Corporation
  Render version: 4.6
  Shading Language: 4.60 NVIDIA
  Driver Date: 2-9-2021
  Driver Version: 27.21.14.6155
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 5 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 7\Plug-ins\Commands.rhp	"Commands"	7.8.21196.5001
  C:\Program Files\Rhino 7\Plug-ins\WebBrowser.rhp	"WebBrowser"	
  C:\Program Files\Rhino 7\Plug-ins\rdk.rhp	"Renderer Development Kit"	
  C:\Program Files\Rhino 7\Plug-ins\RhinoScript.rhp	"RhinoScript"	
  C:\Program Files\Rhino 7\Plug-ins\IdleProcessor.rhp	"IdleProcessor"	
  C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp	"Rhino Render"	7.8.21196.5001
  C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	7.8.21196.5001
  C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp	"Renderer Development Kit UI"	
  C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 7\Plug-ins\Alerter.rhp	"Alerter"	
  C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp	"RhinoCycles"	7.8.21196.5001
  C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	7.8.21196.5001
  C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp	"3Dconnexion 3D Mouse"	
  C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp	"Displacement"	

There have been issues like this in the past concerning citrix Does Rhino work on CITRIX servers? [McNeel Wiki]

To clarify I am not currently using Citrix, I am logged in directly to the machine.

Rhino 6/7 also worked perfectly fine through Citrix when I was working from home. Note that when I say Citrix, its actually my own work PC, but somehow routed through Citrix; the details of this I am not on top of. It is not a Citrix virtual machine.

An update that might help the developers.

I can avoid the immediate crash if I run Rhino 8 with administrator rights. Then I will actually get an error message:

image

However, it will still crash after a few minutes …

I seem to have gotten around this issue by installing to a different directory (i.e. not Program Files).

I think it was crashing while it was trying to load the Help tab on the right hand side.

Spoke too soon. Trying to open a script in RhinoCode will still crash, with the following RhinoDotNet.txt

[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: WebView2 was already initialized with a different CoreWebView2Environment. Check to see if the Source property was already set or EnsureCoreWebView2Async was previously called with different values.
   at Microsoft.Web.WebView2.Wpf.WebView2.EnsureCoreWebView2Async(CoreWebView2Environment environment)
   at Ed.Eto.Wpf.EdHandler.<InitializeAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   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]

Seem to match up: