45 minutes to Trim single line

Using Rhino 8.6.24101.5001.2024-04-10, I am trying to edit a model that is in a file that is only 50 MB. Most of the Layers are set to invisible and Ì am in Wireframe mode.

Problem: I select a few lines and my RAM shoots up to 155+ GB being used. To Trim one (1) line, it took my computer 45 minutes and Rhino was unresponsive during that time.

Pressing Esc did nothing.

I tried the same thing with a second line, but after 30 minutes, I ended the task in the Task Manager.

I have a few plugins installed, but the one that is most important to me is Lands Design 6.

Is it appropriate to upload the file to an online repository and put a link to the file here to see if I can get some assistance?

Any idea as to what might be going on or what troubleshooting I should do?

Thank you.

SysInfo

Rhino 8 SR6 2024-4-10 (Rhino 8, 8.6.24101.05001, Git hash:master @ 32c244aa711e0034e75bec2e87d093c764820b96)
License type: Educational, build 2024-04-10
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 63GB)
.NET 7.0.19

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 4090 (NVidia) Memory: 24GB, Driver date: 2-15-2024 (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 graphics devices.
AMD Radeon™ Graphics (AMD) Memory: 1GB, Driver date: 1-2-2024 (M-D-Y).
> Accelerated graphics device with 5 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: 24564 MB

Rhino plugins that do not ship with Rhino
C:\Users\Edward P. Sager\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\D5Conv (e0d5e210-02f6-4ee9-a2b0-1675e225d958)\0.10.1.0001\Rhino 7\D5Conv.rhp “D5Converter for Rhino”
C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp “Datasmith Exporter” 5.3.2.0
C:\Program Files\Common Files\McNeel\Rhinoceros\7.0\Plug-ins\ConnecterPlugIn (caac53be-e271-4b97-93e7-f3dd18d48ccc)\0.5.0.0\ConnecterPlugIn.rhp “ConnecterPlugIn” 0.5.0.0
C:\Users\Edward P. Sager\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\NVIDIADenoiser\0.4.3\NVIDIADenoiser.Windows.rhp “NVIDIADenoiser.Windows” 0.4.3.0
C:\Program Files\Common Files\McNeel\Rhinoceros\8.0\Plug-ins\Bella (813de3fb-18eb-405f-bfcd-b0b4d3da91fb)\24.2.0.0\bella_rhino.rhp “Bella” 24.2.0.0
C:\Users\Edward P. Sager\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\AMDDenoiser\0.5.3\AMDDenoiser.Windows.rhp “AMDDenoiser.Windows” 0.5.3.0
C:\Users\Edward P. Sager\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\Iris\0.7.1\Iris.V7.rhp “Iris” 1.0.0.0

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.6.24101.5001
C:\Program Files\Rhino 8\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.6.24101.5001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.6.24101.5001
C:\Users\Edward P. Sager\AppData\Roaming\McNeel\Rhinoceros\packages\8.0\PanelingTools\2021.3.2.446\PanelingTools.rhp “PanelingTools”
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.6.24101.5001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.6.24101.5001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.6.24101.5001
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”


Pre-trim RAM usage…not at its peak yet.


What I was able to trim after about 45 minutes.


Post-trim with RAM usage declining.

Yes, no problem, please do.

1 Like

Thank you.

https://1drv.ms/u/s!AqJOVop4Fp--hpBHgrDBsmW0cYv2Gw

Here the trim is instant - apparent intersections enabled as the curves are not in the same plane…

There is a missing block instance - it is linked, so I don’t have access.

I don’t have any plug-ins installed though. I am on 8.7.

1 Like

Thank you, @Helvetosaur. If it is not Rhino, then I suppose it must be hardware-related or Windows-related.

Oy. Again, thank you.

@Helvetosaur I just updated to the latest Rhino: 8 SR7 2024-5-13 (Rhino 8, 8.7.24134.03001) and repaired parts of Windows 11 and it is still occurring with Trim.

I have tried other commands in Rhino and none have issues. Maybe the linked file is corrupt.

Is there a way to get the linked file to be embedded?

If you create a memory leak on purpose, it will be quite hard to allocate 36 gb. Note that it also seem to write quite a lot on your C drive. Malware?

1 Like

I wonder if there is a plugin problem here.

Have you tried stripping back all of your plugins to the minimum workable (zero if you can), and then giving it a go?

1 Like

You also must have some huge image/texture stuck in the file which is making it 50Mb. If you save the file without textures it is only about 3Mb. I don’t think this is the cause of the problem though. I suspect a plug-in or something wrong with the linked block file.

1 Like

You have quite many plug-ins installed. Please disable them all, reload Rhino and see if the error persists.

Tools > Options > Plug-ins, select Plug-ins that do not ship with Rhino, then load protect each one of them.

1 Like

Thank you for your response @TomTom. I have no idea how to create a memory leak, but I think the activity on the C drive is the paging file being used. It is set to 96000 MB to 128000 MB.

I have scanned my drive for malware but nothing came up.

@Helvetosaur Thank you for reply. I deleted all of the textures and it certainly made the file more manageable.

I am not even sure what file is the linked file…I have so many versions saved in the case of a computer crash.

I found the linked file and tried to Trim after embedding the file. My computer slowed to a crawl and I was lucky to be able to End Task rather than do a hard shutdown of the computer.

The linked/embedded file is approximately 300 MB with nested blocks, but I think only 3 different blocks in total. However, there are about 2000 instances of the blocks.

Sorry folks for not replying to several posts at once. I learn: one post, many mentions.

@nathanletwory Thank you for your reply. I disabled all of the plugins, but the GUI icons for them still appear, although they are useless, as pressing on them results in “Unknown command”.

I opened my file and was able to immediately (well, within 30 seconds) trim another curve. However, after I added some curves to Trim and started the Trim command, Rhino became unresponsive, my computer slowed and I had to End Task.

In case it was Windows causing problems, earlier in the day, I did an in-place repair of Windows 11 and updated the graphics card driver. I found that an external HDD was kaput and could not be repaired, so I got rid of it. All other hardware seems to be working fine.

I am wondering if I should uninstall Rhino v.8 and the plugins, erase traces of v.8, then reinstall v.8.7 and install only 4 plugins: Bella, Datasmith Exporter, Lands Design and Paneling Tool Scripts.

Other than uninstall/reinstall, I am at a loss.

Is there anything you can see that I am missing?

Hi Edward,

The missing block file is on your J drive - is that drive on the broken hard disk?

In any event, can you upload the block file? (it is J:_ASU\2023 Fall\ARC 622 Adv Architecture Technology II\Module 5\Tower Only [v8].3dm)

image

It looks to me like you are including the block instance in your selection - or you have something else that you haven’t included in your original upload - for the trim and as trim seems to work fine with what you uploaded, suspicion falls on the block or block instance.

Regards
Jeremy

2 Likes

Just like Jeremy said:

Rhino might be trying to trim one or more block instances containing a lot of geometry.
Maybe also using a low tolerance … I don’t know …

I’ve seen in the past, on a PC with less memory, but trying to trim maybe 1 or 2thousand surfaces (no blocks BTW), Rhino 6 almost freezing.
Then you had either to wait possibly hours or stop Rhino somehow.

1 Like

@jeremy5 @emilio Thank you both for responding.

I should have been more clear with the bad hard drive. It is not the J drive. I was thinking maybe Windows was trying to deal with whatever might have been wrong with the drive and, well, interfering with Rhino somehow. It makes no sense, I know.

Yes, I can and will upload the file and give a link to it. Just so you know, it is about 300 MB.

Tower Only [v8].3dm

You are correct that I accidentally drifted when including what to Trim and included the block instance. I feel very stupid; if I do not include the block, I can trim just fine.

I am not sure if there is anything wrong with the Tower with all of its blocks, or if it is just the sheer number of so many things that make up the blocks.

There are so many parts that when I have tried to use Shrinkwrap and Mesh to see about 3D printing sections of the Tower, I can see that millions of points and meshes are being created and eventually, Rhino crashes.

1 Like

You have nested blocks, you have complex meshes in the block, you have lots of layers which have visibility states that impact which nested elements are visible (and hence whether they impact the trim). I wonder whether Rhino is including hidden nested elements in the trim candidate set?

I think your files will make a great case study for McNeel to consider alongside https://mcneel.myjetbrains.com/youtrack/issue/RH-82015 Snap lag with many blocks. @nathanletwory can it be linked to that youtrack? SRC 8.8 has supposedly brought some fixes for nested blocks but they don’t seem to cover this example.

Regards
Jeremy

(Incidentally while locked up in the trim I used the task manager to cancel Rhino and my pc quickly blue screened. To be investigated…)

1 Like

The files have been linked to the YT.

2 Likes

@jeremy5 @nathanletwory Thank you for taking a look at my file. I am fascinated that it is considered complex in some way.

Thank you to all who helped me to understand what has been going on.

2 Likes