šŸ› BUG - Script Editor Freeze

Hi I found a bug that freezes Rhino:

-Create a script file and save it somewhere
-Run Save As to save it somewhere else
-Ensure that the original file is still open in your script editor
-Delete said file in file explorer within the Save Script As dialog
-the script in your script editor will now have the name struck out

-Rhino will now freeze (I think indefinitely) and kick up the fans

expected behavior:

automatically close file in script editor first to allow deletion or do not allow deletion and warn user that it is currently open and cannot be deleted

Is this repeatable on your end @wim @eirannejad ?

System Info

Rhino 8 SR11 2024-8-13 (Rhino 8, 8.11.24226.06001, Git hash:master @ bdb34e68e0160956fc5633ba163aeb8fe1301c50)
License type: Commercial, build 2024-08-13
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 64GB)
.NET 7.0.17

Computer platform: LAPTOP - Plugged in [98% battery remaining]

Standard graphics configuration.
Primary display: DisplayLink USB Device (DisplayLink) Memory: 0MB, Driver date: 2-9-2024 (M-D-Y).
> External USB display device with 4 adapter port(s)
- Windows Main Display attached to adapter port 0
- Secondary monitor attached to adapter port 1
Primary OpenGL: NVIDIA GeForce RTX 3080 Ti Laptop GPU (NVidia) Memory: 16GB, Driver date: 1-15-2023 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 528.24
> Integrated accelerated graphics device with 4 adapter port(s)
- Video pass-through to primary display device

Secondary graphics devices.
Intel(R) Iris(R) Xe Graphics (Intel) Memory: 1GB, Driver date: 10-26-2022 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- There are no monitors attached to this device. Laptop lid is probably closed
DisplayLink USB Device (DisplayLink) Memory: 0MB, Driver date: 2-9-2024 (M-D-Y).
> External USB display device with 0 adapter port(s)
- There are no monitors attached to this device. Laptop lid is probably closed

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: 1-15-2023
Driver Version: 31.0.15.2824
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 16 GB

Rhino plugins that do not ship with Rhino
C:\Program Files\Enscape\Enscape.Rhino.Plugin-net48\Enscape.Rhino8.Plugin.dll ā€œEnscape.Rhino8.Pluginā€ 4.1.0.2288
C:\Users\micha\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Crash\1.4.2-beta\Crash.rhp ā€œCrashā€ 1.4.0.0
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp ā€œDatasmith Exporterā€ 5.1.0.0
C:\Users\micha\AppData\Roaming\McNeel\Rhinoceros\8.0\Plug-ins\D5LiveSync (e0d5e210-02f6-4ee9-a2b0-1675e225d958)\D5Conv.rhp ā€œD5 Live Sync for Rhinoā€

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp ā€œCommandsā€ 8.11.24226.6001
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.24226.6001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp ā€œRDK_EtoUIā€ 8.11.24226.6001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp ā€œSnapshotsā€
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp ā€œMeshCommandsā€ 8.11.24226.6001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp ā€œRhinoCyclesā€ 8.11.24226.6001
C:\Program Files\Rhino 8\Plug-ins\Grasshopper\GrasshopperPlugin.rhp ā€œGrasshopperā€ 8.11.24226.6001
C:\Program Files\Rhino 8\Plug-ins\RhinoCode\RhinoCodePlugin.rhp ā€œRhinoCodePluginā€ 8.11.24226.6001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp ā€œToolbarsā€ 8.11.24226.6001
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ā€

Thank you all!

@michaelvollrath I think I might not be repeating the steps correctly. I can’t replicate this :thinking:

Thanks for checking @eirannejad ,

I was using Grasshopper Script Editor as well if that makes a difference?

The only other caveat is that I was saving my scripts to a OneDrive location so perhaps that’s the culprit

1 Like

Is the Explorer on the left side pointing to the OneDrive where the scripts are being saved to? (Trying to figure out if saving/deleting scripts is triggering a refresh in Explorer)

Not sure! One sec, I’ll check

I feel like I’m missing something. When I do a ā€œsave asā€, the tab for that script updates to the new name, so I don’t know how to ensure that the original file is still open…like I’m misunderstanding that part. Do I need to go and open that original file back up?

(the script editor in Rhino8 has been freezing so much on me since the last update that I had to switch to the Rhino7 editor … so I’d love for someone to identify a cause…I never use my OneDrive, btw…so if OneDrive is causing this issue, it’s not whatever is causing mine).

@webdunce Is any of freezing examples repeatable?

Hi @eirannejad,

Here’s what it looks like on my end (the frantic mouse movement is me trying to move the dialog or click the Cancel/Save buttons) but it results in a freeze every time:

@webdunce On my end, a save as will close the previous version of the script, keeping the duplicated aka saved as version of the script open in the script editor. If you want to open the previous version just use the Open command and navigate to that location.

Is this not the behavior on your end? Or maybe you’re expecting something different, such as loading a new tab with the newly duplicated file will keeping the current file that was duplicated open in the tab as well?

I haven’t had a chance to figure that out, yet. Sorry.

It wasn’t easily apparent without a voice explaining, but after watching the video several times, you’re steps seem to be:

  1. Press ctrl-shift-s
  2. Click on file’s name
  3. Press delete
  4. Experience freeze

I was able to replicate this, and, here’s the strange part: I HAVE TO PRESS CTRL-SHIFT-S to initiate the save-as in order to cause the freeze. If I click on the save-as icon or if I click on File > Save As, I can perform the save-as normally. It is only if I press ctrl-shift-s to initiate the save-as process. It freezes every time if I do that.

(By the way, this is not what has been causing my problems because I never use the ctrl-shift-s to save-as…I always click on the icon)

But, my Rhino just told me there’s an update, so let’s see what happens after I update.

Just tagging you @eirannejad because my post here seems to have the repeatable steps (maybe) for Michael’s problem.

@michaelvollrath OK, so the latest update does not help. The script-editor still freezes if I follow the steps in my previous post.

system_info.txt (2.4 KB)

1 Like

Since I just updated Rhino8, I will start using its script editor again and see if my freezing problem still happens, and, if it does, I’ll try to be more cognizant of what is happening when the freeze occurs.

1 Like

@michaelvollrath does the freeze happen if you save to a local drive and not a synced folder?

I will test and report back, that was next on my list to try.

EDIT:
@eirannejad
I can also trigger a freeze by ā€œpastingā€ a file into the ā€œOpen Scriptā€ dialog while it is open. Again… One Drive.

Will test if doing this locally without OneDrive has the same effect on both Delete/Copy/Paste

Stay tuned!

1 Like