Mat_S
September 27, 2024, 1:25pm
1
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?
Gijs
(Gijs de Zwart)
September 27, 2024, 1:57pm
2
first step: run _SystemInfo in Rhino and post back the results
Mat_S
September 30, 2024, 12:05pm
4
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"
Gijs
(Gijs de Zwart)
September 30, 2024, 12:22pm
5
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
Mat_S
October 1, 2024, 6:19pm
6
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.
Mat_S
October 1, 2024, 6:43pm
7
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?
Japhy
(Japhy)
October 1, 2024, 6:47pm
8
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.
Mat_S
October 1, 2024, 7:02pm
9
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?
Japhy
(Japhy)
October 1, 2024, 7:09pm
10
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.
Mat_S
October 1, 2024, 7:24pm
11
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
October 1, 2024, 7:46pm
13
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
eirannejad
(Ehsan Iran-Nejad)
October 1, 2024, 7:59pm
14
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
Mat_S
October 1, 2024, 8:51pm
15
I can merge these, but I thought it might be cleaner to separate.
This turns out to be related to this issue:
When running a python3 script in grasshopper, I set the # env: c:/... to a folder with python scripts. Something about grasshopper/rhino is not happy about these script directories. Now it crashes again.
Mat_S
October 2, 2024, 5:46pm
16
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.
eirannejad
(Ehsan Iran-Nejad)
October 3, 2024, 4:44pm
17
@Mat_S I’ll continue on the other thread
I am trying to install packages to a virtual environment, and then uninstall them when I made a mistake.
In the script editor, I have found the Open Python 3 Shell. When running python there, it doesn’t have numpy installed, so I tried looking for a venv activate file, but the site-envs seems to just be a folder.
From what I gather, there aren’t really virtual environments, just directories with names on them.
The issue I have is managing the env: directive at the top of a python script. T…