DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
340 stars 188 forks source link

Dynamo freezes(and doesn't respond) forever when algorithm is run 2nd time. #3068

Open DmitriyZ21 opened 6 months ago

DmitriyZ21 commented 6 months ago

Dynamo Version

Dynamo Core: 2.16.2.5624 Dynamo Revit: 2.16.3.11903

Revit Version

Revit 2023

Operating System

Windows 10

What did you do?

I use a few python scripts, which also use networx library except a lot of other internal dynamo nodes.

What did you expect to see?

I expect it to run well anytime.

What did you see instead?

Dynamo freezes when it runs 2nd time, 1st time all good, RAM usage goes up.

Stacktrace/logs

Dynamo log started 2024-05-09 00:26:06Z 2024-05-09 00:26:07Z : Python template set to default. 2024-05-09 00:26:08Z : Dynamo -- Build 2.16.2.5624 2024-05-09 00:26:08Z : launch darkly initalized 2024-05-09 00:26:08Z : LD startup time: 924 2024-05-09 00:26:08Z : <<<<>>>> 2024-05-09 00:26:08Z : feature flag exe starting 2024-05-09 00:26:08Z : <<<<>>>> 2024-05-09 00:26:08Z : {"IsNewAppHomeEnabled":false,"graphics-primitive-instancing":false,"EasterEggIcon1":false,"EasterEggMessage1":"NA","IsTSplineNodesExperimentToggleVisible":false,"CER":false,"NodeAutocompleteMachineLearningIsBeta":true,"CER_v2":true,"IsMLDataIngestionPipelineinBeta":false} 2024-05-09 00:26:08Z : <<<<>>>> 2024-05-09 00:26:08Z : EasterEggIcon1 is false FROM MODEL 2024-05-09 00:26:08Z : EasterEggMessage1 is disabled FROM MODEL 2024-05-09 00:26:08Z : System.InvalidOperationException: 2024-05-09 00:26:08Z : There already exists an AlsoKnownAs mapping for DSCoreNodesUI.Logic.If. 2024-05-09 00:26:08Z : 2024-05-09 00:26:08Z : System.InvalidOperationException: 2024-05-09 00:26:08Z : There already exists an AlsoKnownAs mapping for If. 2024-05-09 00:26:08Z : 2024-05-09 00:26:08Z : Duplicate migration type registered for SunPathDirection 2024-05-09 00:26:09Z : AnalyticalAutomation.dll,M:AnalyticalAutomation.AnalyticalElements.AnalyticalPanel.BySurface(Autodesk.DesignScript.Geometry.Surface,System.Boolean) {0} is missing some XML documentation tags. 2024-05-09 00:26:09Z : The folder 'C:\Program Files\Autodesk\Revit 2023\AddIns\DynamoForRevit\Built-In Packages\Packages' does not exist 2024-05-09 00:26:09Z : Dynamo will use the package manager server at : https://www.dynamopackages.com 2024-05-09 00:26:09Z : Failed to delete package directory at "C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\2.16\packages\DynamoIronPython3", you may need to delete the directory manually. 2024-05-09 00:26:09Z : The folder 'C:\Program Files\Autodesk\Revit 2023\AddIns\DynamoForRevit\Built-In Packages\Packages' does not exist 2024-05-09 00:26:10Z : IronPythonExtension (id: D7B449D7-4D54-47EF-B742-30C7BEDFBE92) extension is added 2024-05-09 00:26:12Z : The folder 'C:\ProgramData\Autodesk\RVT 2023\Dynamo\2.16\packages\GenerativeDesign\dyf' does not exist 2024-05-09 00:26:13Z : The folder 'C:\ProgramData\Autodesk\RVT 2023\Dynamo\2.16\packages\GenerativeDesign.Extension\dyf' does not exist 2024-05-09 00:26:13Z : Generative Design (id: DFBD9CC0-DB40-457A-939E-8C8555555A9D) extension is added 2024-05-09 00:26:13Z : The folder 'C:\ProgramData\Autodesk\RVT 2023\Dynamo\2.16\packages\GenerativeDesign.Revit\dyf' does not exist 2024-05-09 00:26:13Z : DynamoPackageManager (id: FCABC211-D56B-4109-AF18-F434DFE48139) extension is added 2024-05-09 00:26:13Z : Backup files timer is started with an interval of 60000 milliseconds 2024-05-09 00:26:13Z : SYSTEM:Environment Path:C:\Program Files\Autodesk\Revit 2023\AddIns\SteelConnections;C:\Program Files\Autodesk\Revit 2023\en-US;C:\Program Files\Autodesk\Revit 2023;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Users\dimaz\AppData\Local\Microsoft\WindowsApps;C:\Users\dimaz.dotnet\tools;C:\Program Files\Autodesk\Revit 2023\AddIns\DynamoForRevit 2024-05-09 00:26:13Z : RENDER : Rendering Tier: 2 2024-05-09 00:26:13Z : RENDER : Pixel Shader 3 Supported: True 2024-05-09 00:26:13Z : RENDER : Pixel Shader 4 Supported: False 2024-05-09 00:26:13Z : RENDER : Software Effect Rendering Supported: True 2024-05-09 00:26:13Z : RENDER : Maximum hardware texture size: 16384,16384 2024-05-09 00:26:14Z : RENDER : Rendering Tier: 2 2024-05-09 00:26:14Z : RENDER : Pixel Shader 3 Supported: True 2024-05-09 00:26:14Z : RENDER : Pixel Shader 4 Supported: False 2024-05-09 00:26:14Z : RENDER : Software Effect Rendering Supported: True 2024-05-09 00:26:14Z : RENDER : Maximum hardware texture size: 16384,16384 2024-05-09 00:26:14Z : Documentation Browser (id: 68B45FC0-0BD1-435C-BF28-B97CB03C71C8) view extension is added 2024-05-09 00:26:14Z : DynamoManipulationExtension (id: 58B0496A-E3F8-43D9-86D2-94823D1D0F98) view extension is added 2024-05-09 00:26:14Z : Properties (id: 28992e1d-abb9-417f-8b1b-05e053bee670) view extension is added 2024-05-09 00:26:14Z : Graph Node Manager (id: F76F4274-537D-4782-B1E9-27E8FDE2186F) view extension is added 2024-05-09 00:26:14Z : LibraryUI - MSWebBrowser (id: 63cd0755-4a36-4670-ae89-b68e772633c4) view extension is added 2024-05-09 00:26:14Z : Graph Status (id: 3467481b-d20d-4918-a454-bf19fc5c25d7) view extension is added 2024-05-09 00:26:14Z : Notifications (id: ef6cd025-514f-44cd-b6b1-69d9f5cce004) view extension is added 2024-05-09 00:26:14Z : Package Details (id: C71CA1B9-BF9F-425A-A12C-53DF56770406) view extension is added 2024-05-09 00:26:14Z : Data Shapes (id: 01728826-4e57-44e1-8ad8-466b72ffaac5) view extension is added 2024-05-09 00:26:14Z : Inconsistent UniqueId for Data Shapes view extension. This may result in unexpected Dynamo behavior. 2024-05-09 00:26:14Z : TuneUp (id: b318f80b-b1d0-4935-b80e-7ab1be7742b4) view extension is added 2024-05-09 00:26:14Z : Generative Design Tools (id: DFBD9CC0-DB40-457A-939E-8C8555555A9D) view extension is added 2024-05-09 00:26:14Z : PackageManagerViewExtension (id: 100f5ec3-fde7-4205-80a7-c968b3a5a27b) view extension is added 2024-05-09 00:26:14Z : Python Migration (id: 1f8146d0-58b1-4b3c-82b7-34a3fab5ac5d) view extension is added 2024-05-09 00:26:14Z : Workspace References (id: A6706BF5-11C2-458F-B7C8-B745A77EF7FD) view extension is added 2024-05-09 00:26:14Z : Welcome to Dynamo! 2024-05-09 00:26:14Z : 00:00:00.6669736 elapsed for loading Dynamo main window. 2024-05-09 00:26:15Z : notification:Package Host Error: Package targets a different host than current host application.: bimorphNodes: The package or one of its dependencies targets a different environment, such as Revit, Civil 3D, Advance Steel, Alias or FormIt. This can cause instability and unexpected problems.: bimorphNodes 2024-05-09 00:26:17Z : EasterEggIcon1 is false from view 2024-05-09 00:26:17Z : EasterEggMessage1 is disabled from view 2024-05-09 00:26:17Z : Browser Loaded 2024-05-09 00:26:18Z : WPF Render Mode: SoftwareOnly 2024-05-09 00:27:13Z : Saving C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\backup.DYN ... 2024-05-09 00:27:13Z : Backup file is saved: C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\backup.DYN 2024-05-09 00:35:29Z : Active view is now Level 1 2024-05-09 00:35:30Z : ViewExtensionCommandExecutive ( UniqueId: b318f80b-b1d0-4935-b80e-7ab1be7742b4, Name: TuneUp, commandTypeName: SelectModelCommand ) 2024-05-09 00:36:13Z : Saving C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn ... 2024-05-09 00:36:13Z : Backup file is saved: C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn 2024-05-09 00:37:13Z : Saving C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn ... 2024-05-09 00:37:13Z : Backup file is saved: C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn 2024-05-09 00:37:16Z : ViewExtensionCommandExecutive ( UniqueId: b318f80b-b1d0-4935-b80e-7ab1be7742b4, Name: TuneUp, commandTypeName: SelectModelCommand ) 2024-05-09 00:39:05Z : Saving C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn ... 2024-05-09 00:39:06Z : Backup file is saved: C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn 2024-05-09 00:39:13Z : Saving C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn ... 2024-05-09 00:39:13Z : Backup file is saved: C:\Users\dimaz\AppData\Roaming\Dynamo\Dynamo Revit\backup\block_layout_dijkstra_method_3d_grid_v2.dyn

Details

No response

avidit commented 4 months ago

@DmitriyZ21 Is it possible for you to share the dynamo graph?