DynamoDS / Dynamo

Open Source Graphical Programming for Design
https://dynamobim.org
Other
1.74k stars 634 forks source link

Running Script Crashes Revit and Dynamo. Reproducible Sample Script. #15090

Open NonicaTeam opened 7 months ago

NonicaTeam commented 7 months ago

Dynamo Version

3.0.3 version

Host

Revit 2025. This only happens in Revit 2025. I tested in other versions and it seems to not happen there.

Operating System

Windows 10

What did you do?

Open a script and hit run. I disabled external Revit Addins and same error appears. Attached you the script causing the crash.

What did you expect to see?

Warnings and errors in the execution of the script. Image before running. before running

What did you see instead?

Revit crashes completely. I debugged it and this is the error I get. after running

What packages or external references (if any) were used?

packages

Stack Trace

Attach you link to download Dynamo script: https://nonica.io/wp-content/uploads/2024/04/3.-Clash-Detection.dyn

Details

Recent logs: dynamoLog_2c4c6a98-1465-4c08-8175-42a7a684fbed.txt dynamoLog_19d3eef8-344e-444c-aae3-420719836b00.txt dynamoLog_0fdfe960-92ea-404f-9276-a95c7e738e46.txt dynamoLog_213fa9e0-0ad5-4287-a0ad-64be7f97e21e.txt dynamoLog_e14517e5-8475-413c-b571-3a83b520f351.txt

johnpierson commented 7 months ago

Hi @NonicaTeam, I have a few questions that might help us get to the bottom of this.

NonicaTeam commented 7 months ago

Hey John, Sure, no problem! 1.-This issue came when running through the standard Dynamo UI. I fully uninstalled it to check if the issue was coming from our side. 2.-Indeed, some of the packages included in the script are not updated to Revit 2025 (Core) and are suitable for previous versions of Revit. Nonetheless, I think that Dynamo shouldn´t crash Revit in that scenario, in my opinion, it should be able to manage such exceptions. I hope this helps