Rhino 8 Python Crashes

I saw a few similar posts, but in my case, Rhino opens fine, grasshopper opens fine. When I try to make a python scripting component in grasshopper, it totally freezes, then Rhino just closes. I don’t get any crash screen or such.

I had one of the older versions of Rhino 8 and it worked fine. I updated and it started to crash. I uninstalled rhino and installed again, restarted computer, still crashes.

What steps can I take to fix it?

first step: run _SystemInfo in Rhino and post back the results

Rhino 8 SR11 2024-9-10 (Rhino 8, 8.11.24254.15001, Git hash:master @ d3c11108eae09fadc146928ba51b9b182a05303f)
License type: Educational Lab License, build 2024-09-10
License details: Cloud Zoo

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 256GB)
.NET 7.0.2

Computer platform: DESKTOP 

Standard graphics configuration.
  Primary display and OpenGL: NVIDIA RTX A4500 (NVidia) Memory: 20GB, Driver date: 7-12-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 551.61
    > Accelerated graphics device with 4 adapter port(s)
        - Windows Main Display attached to adapter port #0
        - Secondary monitor attached to adapter port #1
        - Secondary monitor attached to adapter port #2

Secondary graphics devices.
  NVIDIA RTX A4500 (NVidia) Memory: 20GB, Driver date: 2-15-2024 (M-D-Y).
    > Accelerated graphics device with 0 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: 4x
  Mip Map Filtering: Linear
  Anisotropic Filtering Mode: High
  
  Vendor Name: NVIDIA Corporation
  Render version: 4.6
  Shading Language: 4.60 NVIDIA
  Driver Date: 2-15-2024
  Driver Version: 31.0.15.5161
  Maximum Texture size: 32768 x 32768
  Z-Buffer depth: 24 bits
  Maximum Viewport size: 32768 x 32768
  Total Video Memory: 20470 MB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
  C:\Program Files\Rhino 8\Plug-ins\Commands.rhp	"Commands"	8.11.24254.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.11.24254.15001
  C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp	"RDK_EtoUI"	8.11.24254.15001
  C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp	"Snapshots"	
  C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp	"MeshCommands"	8.11.24254.15001
  C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp	"RhinoCycles"	8.11.24254.15001
  C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp	"Toolbars"	8.11.24254.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"	


hi @Mat_S

Does it also crash when you have only one monitor attached?
After testing that, it might be worth trying to update the driver of the card your monitor is attached to the same driver version as your secondary RTX A4500

Hi,

Yes crash is happening with one monitor as well.

There is only one driver that i’m aware of. I’m not sure how one GPU can have a different driver.

I’m not sure if it’s the problem, but how can I revert the Rhino 8 version? I think it was working before I updated. Maybe something like from before Summer?

Are you running a lot of 3rd party grasshopper plugins?

Try opening grasshopper via the Rhino command line with the GrasshopperLoadOneByOne command and say No to 3rd party addins.

If that doesn’t reveal the issue we’ll start troubleshooting the python install.

I did that and said “No” to everything, but then there is no Python3 option, so I can’t test if it crashes when loading it.

Maybe I didn’t understand your comment, but how would I know it is 3rd party?

The idea being one of the 3rd party plugins you may have installed was causing a conflict, if that is not the case we can move on.

Close Rhino. Re-open and open the ScriptEditor in Rhino and go to Tools > Advanced > Reset Python 3 Runtime menu and restart Rhino.

After Rhino is ready, run the ScriptEditor command and let is initialize. Then grab all the logs from RhinoCodeLogs command and post the result.

Sorry let me rephrase; if I don’t enable the plugins, I can’t try to make a python3 script, so I can’t know if some other plugin was the cause.

I did the process, didn’t notice any “initialize”, it just loaded like usual.

ScriptEditor.log (22.5 KB)

@Mat_S

  • Does the Crash Report submit dialog pop up for you? If yes, did you submit the report?
  • The last line on the logs is editor trying to read its config files. Try deleting C:\Users\local user\.rhinocode\editor.json file and restart Rhino.

There is no crash dialog, it just freezes for about 10 seconds, then completely shuts off.

I think that fixed it, thank you.

I deleted it, opened rhino, try to get to script editor, and it hard crashed like in grasshopper, just opening it (which it didn’t do before). I opened rhino again and grasshopper is working.

I’ll report back if i run into it again.

1 Like

There is also a bug with the search/help panel getting the UI stuck that was resolved in 8.12 so it would be worth testing out the latest 8.12 SRC as well.

Thanks for testing and reporting

I can merge these, but I thought it might be cleaner to separate.

I updated to the latest one, but there doesn’t seem to be any fixes for the python crashes.

I detailed in the other posts, but I basically can’t run most of my code that uses external libraries.

@Mat_S I’ll continue on the other thread