Dynamo fails to start (Revit 2021)

Hi all,
Searched the archives, but couldn’t get something matching my symptoms.

This is with Revit 2021, but I can’t pull the Dynamo version running under it, due to the issue at hand.

There’s a second window popping when I start Dynamo, but I can never bring it in front or view it at all. I can shut it down though. I don’t seem to see a process in Task Manager.
Thank you!

Hi @Ra-X ,

Could you maybe share a screen recording of some kind so we can also see what you are seeing?

Restart the CPU, open Revit, start a new project from no template, launch Dynamo to reproduce the issue, quit Revit, and post that journal from that session with the screencast.

I was just heading in that direction - I started looking at journals with our template used for a project, but switched as per your request.
Enclosed.
_________________________________________________________________(a minute later)

Well, I seem to be a “new user,” so I can’t upload anything…
Anything I can possibly look at while that aspect gets sorted out?
Thank you.

Try now. Used some of my magical moderator powers to bump you (you were fairly close before - entering more topics while logged in and you’d already be there).

journal.0001.txt (400.2 KB)


Thanks, Jacob!

Sorry you can’t see my cursor/pointer… Something about Camtasia saving to avi. After starting Dynamo, it starts thinking, and then the Dynamo window gets behind Revit’s and stays there in the upside down :wink:

1 Like

Well… I have some good news and some bad news. But first up thanks for proving this info as you did - precisely what was needed and executed to perfection (missing mouse isn’t an issue).

The bad news is that the exact issue isn’t clear. But the good news is that we have a LOT of other issues (I estimate around 40) to address which may resolve the problem.

If you search the journal for “API_ERROR” you’ll see there are 49 flags, most of which (all?) are around DLL conflicts. Any one of these could be causing this issue or more. You’ll also notice a few references to “Log4Net” which hopefully triggers a few ‘on no’ thoughts, as Revit should be fully patched by now.

To address these issues, I recommend disabling all add-ins and seeing if the issue persists. If not, add them back via a binary search or in segments until you identify the culprit(s). Note that some of the add-ins you’re using a rather deeply rooted, so it make take a few reviews outside of the standard add-ins folder.

If that doesn’t resolve the issue, attempting to reset your Dynamo user preferences could resolve the issue. However the above should be addressed if it’s a root cause or not, and the settings should migrate between builds on the same system, so I’m hesitant to type that ‘how to’ up as it would likely make more work for you if the other issue isn’t addressed first. Give the add-in removal a shot first and let me know how that goes, and we can take next steps from there.

Hi Jacob,
Some updates on this, though no breakthrough yet.

  • for some reason, Dynamo started working again for a while, and I thought I’m off the hook.
  • then it broke again. I can’t tell why these two turns.
  • as I absolutely need Dynamo next week, I got back to troubleshooting now.
  • I’ve suspected some bad interaction between Enscape and Rhino.Inside (error at Revit startup), so I went through the addins, first selectively (those two above), then all disabled (using Stantech’s AddInManager.exe tool). No go.
  • I updated Revit 2021 to .1.7 (latest)
  • I just uninstalled Enscape, but no go
  • For some reason I observe that Dynamo Player loads ok… Not sure if this changes anything.
    Shall I generate new journals?
    Thank you.

More data on this:

  • Revit 2022 seems to also be inflicted (I’ll check if same version of Dynamo applies to both?..)
  • 2020 seems to work ok with no tinkering. Even my test script (executed in 2021) seems to work OK. Maybe I’m fine for next week, but would really love to fix 2021, which is my main version for Dynamo work.

I was able to start Dynamo under Revit 2021 again (it’s a toss up if it works). This time I got a warning, which may be the key to these issues.

Here’s the log:
System.IO.FileLoadException

Dynamo has detected a conflict with a dependency and may be unstable. If any issues are detected, please uninstall addins or packages and contact the provider.

While loading assembly RhythmRevit2022, Version=2021.12.1.0, Culture=neutral, PublicKeyToken=null, Dynamo detected that the dependency RevitAPI, Version=22.0.0.0, Culture=neutral, PublicKeyToken=null was already loaded with an incompatiable version. It is likely that another Revit Addin has loaded this assembly, please try uninstalling other Addins, and starting Dynamo again. Dynamo may be unstable in this state.
It is likely one of the following assemblies loaded the incompatible version:
UIFrameworkInterop, UIFramework, UIFrameworkServices, AddInManagerUI, APIInterop, RevitAPIIFC, IntfIFCAPI, RevitDBAPI, RevitAPI, AddInManager, GraphicsAPI, UtilityAPI, GeomUtilAPI, FamilyDBAPI, EssentialsDBAPI, RoomAreaPlanDBAPI, ArrayElemsDBAPI, StructuralDBAPI, HostObjDBAPI, SculptingDBAPI, ElementGroupDBAPI, CurtainGridFamilyDBAPI, SiteDBAPI, DetailDBAPI, BuildingSystemsDBAPI, EnergyAnalysisDBAPI, IntfATFAPI, MaterialDBAPI, AnalysisAppsDBAPI, StructuralAnalysisDBAPI, RebarDBAPI, AssemblyDBAPI, StairRampDBAPI, APIDBAPI, DPartDBAPI, PersistenceDBAPI, InterfaceUtilAPI, InterfaceAPI, PointCloudAccessAPI, NumberingDBAPI, MassingDBAPI, Autodesk.ATFTranslationServer.DBApplication, Autodesk.CivilAlignments.DBApplication, Autodesk.CoordinationModelDB, Autodesk.LinkTopography.Parser, Autodesk.ResultsBuilder.DBApplication, Autodesk.RouteAnalysis.DBApplication, Autodesk.SteelConnectionsDB, Autodesk.StructuralRibbon.Application, ConnectedDesktopDB, KeynoteDBServer, StraightSegmentCalculationServers, FittingAndAccessoryCalculationServers, CollaborateDB, RevitAPISteel, RSCloudClient, AddInJournaling, AddInJournalClient, FabricationPartBrowser, RevitAPIUI, UserInterfaceUtility, SSONET, Autodesk.RevitApplicationHome.Application, CEFRevitUtils, Autodesk.RevitApplicationHome.Utilities, APIUIAPI, DesktopMFCAPI, RevitMFCAPI, RevitUIAPI, BuildingSystemsUIAPI, EssentialsUIAPI, EnergyAnalysisUtilitiesAPI, DetailUIAPI, Autodesk.CivilAlignments.Application, Autodesk.CoordinationModelUI, Autodesk.FreeFormRebar.DB, Autodesk.IFC.Export.UI, Autodesk.LinkTopography.Commands.Application, Autodesk.MemberForces.Application, Autodesk.PnIDModeler.Application, Autodesk.PnIDModeler.Client, Autodesk.Precast.Application, Autodesk.Precast.UI, Autodesk.Precast.RevitBase, Autodesk.Precast.API, Autodesk.Precast.CNC, Autodesk.Precast.CNCExport, Autodesk.Precast.Commands, Autodesk.Precast.Geometry, Autodesk.Precast.RevitGeometry, Autodesk.Precast.RevitUI, Autodesk.Precast.ShopDrawings, Autodesk.Precast.Slab, Autodesk.Precast.Wall, Autodesk.ReinforcementNumbering.Application, Autodesk.ResultsExplorer.Application, Autodesk.Revit.CloudRendering.Application, Autodesk.Revit.SharedViews.Application, Autodesk.RouteAnalysis.Application, Autodesk.SectionProperties.Application, Autodesk.SpaceNaming.Application, Autodesk.SteelConnectionsUI, AutoLoader, ConnectedDesktopUI, ContentDelivery, DynamoRevitVersionSelector, DynamoRevitDS, RevitServices, Autodesk.DynamoPlayer.Application, EnergyAnalysis, FittingAndAccessoryCalculationUIServers, KeynoteUIServer, PointCloudSnappingServer, PressureLossReport, Autodesk.BatchPrint.Application, Collaborate, CollaborateBrowser, SkyscraperClientHost, C4RNET, eTransmitForRevit, Autodesk.IWExportToRevit, Autodesk.Revit.GenerativeDesign.Application, Autodesk.WorksharingMonitor.Application, Autodesk.WorksharingMonitor.Utilities, AVRevitPluginDashboard, AVCommon, BIT.Common.App, BIT.SpatialData.App, BIT.StandardizedData.App, BIT.StandardizedData.RevitAPI, BIT.ModelChecker.App, BIT.EquipmentData.App, BIT.COBie.App, BbRevitAddin2021, DatasmithRevit2021, ExportViewSelectorAddin, FOREground, FormItConverterRibbon, AXMImporter, MaterialWrapper, IdeateSoftwareISW, IdeateBIMLink, IdeateExplorer, IdeateSticky, IdeateStyleManager, IdeateQuickSelect, IdeateReNumber, IdeateSheetsAndViews, IdeateSmartDelete, IdeateSpellCheck, IdeateViewCreator, IdeateXray, IMAGINiTRvtUtilities2021, nwexportrevit_18, pyRevitLoader, Snippets.scripting, pyRevit_2021_3577c2106a9b4490_PyRevitLabs.PyRevit.Runtime.dll, pyRevit_2021_f4c8567eda0d2d60_pyRevitCore, pyRevit_2021_1a1589c15f869b97_pyRevitTools, RhinoInside.Revit, AcRVTDWGCoordsSyncRevitClient, RevitAPIUIMacrosInterop, RevitAPIMacrosInterop, Microsoft.GeneratedCode, RSEnterpriseClientInterop, RSEnterpriseClient, BIT.Common.RevitAPI, BIT.ModelChecker.RevitAPI, Autodesk.SteelConnections.ASRvtFamilyMapping, RevitAPIBrowserUtils, RebarUIStartUpAPI, Autodesk.ResultsManager.Application, SSONETUI, RevitNodes, DSRevitNodesUI, DynamoSteelRevit, StructuralAnalysisResults, RhythmRevit

@Ra-X … I might be completely wrong, but looking only at your posted video, I had a similar problem which was solved by right-clicking on the Dynamo icon (brought up by hovering over the Revit icon) on the task bar, and select ‘Maximise’. This seemed to bring Dynamo out from wherever it was hiding.

1 Like

Hi Scott,
And thank you for your note.

When this happens - and I’ve seen it happen before also with actual Revit AddIns - no regular Windows operations will bring that window from “behind” the Revit window. Will give it another try (triple check!) next time I see this - though right now they all work (with a varying number of “System.IO.FileLoadException” notifications) and hopefully they stay working…

Thank you again!

Start by disabling all of your add-ins. One of them is causing a conflict.

Jacob,
I did - see my post #9 above (Dynamo fails to start (Revit 2021) - #9 by Ra-X), to no avail. I used AddInnManager.exe - would this make a difference, maybe?
Thank you.

The System IO exception above indicates a few were active. Disable them all and post a Revit journal and Dynamo log file after recreating the issue

I’m having a similar prob. Revit crashes when I open Dynamo. My symptoms started when I tried two Revit plugins Bird and Orkestra. I uninstalled both and they somehow corrupted my files causing Dynamo’s package manager to disable. After finally doing a clean uninstall of 2021 and 2022, then reinstalling Revit 2021.1.7 (latest) Dynamo and Revit now crash (together at the same time) a few seconds after I open a new project and then Dynamo. I don’t have to do anything. After a few seconds it crashes. Here is the Revit journal file. Any idea what “Exception occurred” means? Also i’m not sure why the timestamp of Dynamo is the next day May 19 when today is still May 18.

~Snippet of journal~

’ 0:< Exception occurred
'C 18-May-2023 18:23:26.393; 0:< ExceptionCode=0xe0434352 ExceptionFlags=0x00000001 ExceptionAddress=00007FFBF47ECF19
'C 18-May-2023 18:23:26.393; [0000514c]BC: 0,0,1
’ 0:< System (MB) [Available / Total ] [Revit Memory Usage (MB) ]
’ 0:< RAM Statistics: 17842 / 32622 1014=InUse 1028=Peak
’ 0:< VM Statistics: 134210610 / 134217727 966=InUse 982=Peak

~Full journal below~

'***********************************************************
'***********************************************************
'<>
’ 0:< ::59:: Delta VM: Avail -2 → 134210880 MB, Used 689 MB; RAM: Avail +21 → 18162 MB, Used +0 → 803 MB
’ 0:< GUI Resource Usage GDI: Avail 9165, Used 835, User: Used 394
'E 18-May-2023 18:23:10.070; 0:<
Jrn.RibbonEvent “TabActivated:Manage”
'E 18-May-2023 18:23:10.358; 0:<
Jrn.Size 0 , 2094 , 979
'H 18-May-2023 18:23:10.358; 0:<
Jrn.Directive “WindowSize” _
, “[Project1]”, “Floor Plan: Level 1” _
, 2094, 979
’ 0:< ::61:: Delta VM: Avail -71 → 134210809 MB, Used +50 → 740 MB, Peak +49 → 740 MB; RAM: Avail -2 → 18160 MB, Used +10 → 813 MB, Peak +13 → 818 MB
’ 0:< GUI Resource Usage GDI: Avail 9163, Used 837, User: Used 394
'E 18-May-2023 18:23:15.928; 0:<
Jrn.Command “Ribbon” , “Launch Dynamo , ID_VISUAL_PROGRAMMING_DYNAMO”
’ 1:< ::62:: Delta VM: Avail -16 → 134210794 MB, Used +0 → 741 MB, Peak +2 → 743 MB; RAM: Avail -3 → 18157 MB, Used +3 → 817 MB, Peak +1 → 819 MB
’ 1:< GUI Resource Usage GDI: Avail 9144, Used 856, User: Used 394
’ 1:< API_SUCCESS { Registering Idling event by application Dynamo For Revit (8d83c886-b739-4acd-a9db-1bc78f315b2b). }
’ 1:< ::62:: Delta VM: Avail -123 → 134210671 MB, Used +127 → 869 MB, Peak +128 → 872 MB; RAM: Avail -102 → 18056 MB, Used +128 → 945 MB, Peak +128 → 948 MB
’ 1:< GUI Resource Usage GDI: Avail 9085, Used 915, User: Used 420
’ 1:< API_SUCCESS { Registering ApplicationClosing event by application Dynamo For Revit (8d83c886-b739-4acd-a9db-1bc78f315b2b). }
’ 0:< ::62:: Delta VM: Avail -61 → 134210610 MB, Used +56 → 925 MB, Peak +53 → 925 MB; RAM: Avail -24 → 18033 MB, Used +24 → 970 MB, Peak +22 → 970 MB
’ 0:< GUI Resource Usage GDI: Avail 9016, Used 984, User: Used 425
'H 18-May-2023 18:23:22.003; 0:<
Jrn.Data “APIStringStringMapJournalData” _
, 0
’ 0:< ::62:: Delta VM: Avail -10 → 134210601 MB, Used +11 → 936 MB, Peak +20 → 946 MB; RAM: Avail -34 → 17999 MB, Used +26 → 996 MB, Peak +32 → 1002 MB
’ 0:< GUI Resource Usage GDI: Avail 9016, Used 984, User: Used 425
’ 0:< Browser Deactivate
'E 18-May-2023 18:23:22.225; 0:<
Jrn.RButtonUp 0 , 1106 , 967
'H 18-May-2023 18:23:22.225; 0:<
Jrn.Data “DroppedMouseAction” _
, “no active editor”
’ 0:< Exception occurred
'C 18-May-2023 18:23:26.393; 0:< ExceptionCode=0xe0434352 ExceptionFlags=0x00000001 ExceptionAddress=00007FFBF47ECF19
'C 18-May-2023 18:23:26.393; [0000514c]BC: 0,0,1
’ 0:< System (MB) [Available / Total ] [Revit Memory Usage (MB) ]
’ 0:< RAM Statistics: 17842 / 32622 1014=InUse 1028=Peak
’ 0:< VM Statistics: 134210610 / 134217727 966=InUse 982=Peak
'C 18-May-2023 18:23:30.545; [0000514c]Revit worker 1 closed cleanly
'C 18-May-2023 18:23:30.550; [00004560]QueueMinder stopped
'C 18-May-2023 18:23:30.550; 1:< logging finished virtualization services
'C 18-May-2023 18:23:30.550; 1:< logging finished worker services
'C 18-May-2023 18:23:30.554; 1:< logging erased queues
’ 4.146735 1:<<<[0000514c]Terminating RevitWorker Processes
’ 0:< unhandledExceptionFilter is executed in a non-main thread (id = 20812, tag = : [was ]).

Below is the Dynmao log file

Dynamo log started 2023-05-19 01:23:16Z
2023-05-19 01:23:16Z : Python template set to default.
2023-05-19 01:23:17Z : Dynamo – Build 2.6.2.15705
2023-05-19 01:23:17Z : Duplicate migration type registered for SunPathDirection
2023-05-19 01:23:18Z : Dynamo will use the package manager server at : https://www.dynamopackages.com
2023-05-19 01:23:18Z : Exception encountered scanning the package directory at C:\Users\asin\AppData\Roaming\Dynamo\Dynamo Revit\2.6\packages\Zhukoven
2023-05-19 01:23:18Z : notification:Dynamo.Exceptions.LibraryLoadFailedException: Failed to load library: C:\Users\asin\AppData\Roaming\Dynamo\Dynamo Revit\2.6\packages\Zhukoven
at Dynamo.PackageManager.PackageLoader.ScanPackageDirectory(String directory, Boolean checkCertificates):
Failed to load library: C:\Users\asin\AppData\Roaming\Dynamo\Dynamo Revit\2.6\packages\Zhukoven:
C:\Users\asin\AppData\Roaming\Dynamo\Dynamo Revit\2.6\packages\Zhukoven\pkg.json contains a package without a header. Ignoring it.
2023-05-19 01:23:18Z : Dynamo.Exceptions.LibraryLoadFailedException:
2023-05-19 01:23:18Z : Failed to load library: C:\Users\asin\AppData\Roaming\Dynamo\Dynamo Revit\2.6\packages\Zhukoven
2023-05-19 01:23:18Z : at Dynamo.PackageManager.PackageLoader.ScanPackageDirectory(String directory, Boolean checkCertificates)
2023-05-19 01:23:18Z : System.InvalidOperationException:
2023-05-19 01:23:18Z : There already exists an AlsoKnownAs mapping for Select Rule Type.
2023-05-19 01:23:18Z :
2023-05-19 01:23:20Z : The folder ‘C:\ProgramData\Autodesk\RVT 2021\Dynamo\2.6\packages\GenerativeDesign\dyf’ does not exist
2023-05-19 01:23:20Z : The folder ‘C:\ProgramData\Autodesk\RVT 2021\Dynamo\2.6\packages\GenerativeDesign.Extension\dyf’ does not exist
2023-05-19 01:23:20Z : The folder ‘C:\ProgramData\Autodesk\RVT 2021\Dynamo\2.6\packages\GenerativeDesign.Revit\dyf’ does not exist
2023-05-19 01:23:20Z : DynamoPackageManager (id: FCABC211-D56B-4109-AF18-F434DFE48139) extension is added
2023-05-19 01:23:20Z : Backup files timer is started with an interval of 60000 milliseconds
2023-05-19 01:23:20Z : SYSTEM:Environment Path:C:\Program Files\Autodesk\Revit 2021\AddIns\SteelConnections;C:\Program Files\Autodesk\Revit 2021\en-US;C:\Program Files\Autodesk\Revit 2021;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\mpirt;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\ia32_win\compiler;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Common Files\Autodesk Shared;C:\Program Files\dotnet;C:\Program Files\BackupClient\CommandLineTool;C:\Program Files (x86)\Common Files\Acronis\FileProtector64;C:\Program Files\BackupClient\PyShell\bin;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\Common Files\Acronis\FileProtector;C:\Users\asin\AppData\Local\Microsoft\WindowsApps;;C:\Users\asin\AppData\Roaming\pyRevit-Master\bin;C:\Program Files\Autodesk\Revit 2021\AddIns\DynamoForRevit
2023-05-19 01:23:20Z : RENDER : Rendering Tier: 0
2023-05-19 01:23:20Z : RENDER : Pixel Shader 3 Supported: False
2023-05-19 01:23:20Z : RENDER : Pixel Shader 4 Supported: False
2023-05-19 01:23:20Z : RENDER : Software Effect Rendering Supported: True
2023-05-19 01:23:20Z : RENDER : Maximum hardware texture size: 0,0
2023-05-19 01:23:20Z : RENDER : Rendering Tier: 0
2023-05-19 01:23:20Z : RENDER : Pixel Shader 3 Supported: False
2023-05-19 01:23:20Z : RENDER : Pixel Shader 4 Supported: False
2023-05-19 01:23:20Z : RENDER : Software Effect Rendering Supported: True
2023-05-19 01:23:20Z : RENDER : Maximum hardware texture size: 0,0
2023-05-19 01:23:21Z : Documentation Browser (id: 68B45FC0-0BD1-435C-BF28-B97CB03C71C8) view extension is added
2023-05-19 01:23:21Z : DynamoManipulationExtension (id: 58B0496A-E3F8-43D9-86D2-94823D1D0F98) view extension is added
2023-05-19 01:23:21Z : LibraryUI (id: 85941358-5525-4FF4-8D61-6CA831F122AB) view extension is added
2023-05-19 01:23:21Z : NotificationsExtension (id: ef6cd025-514f-44cd-b6b1-69d9f5cce004) view extension is added
2023-05-19 01:23:21Z : archilab (id: bdac5a46-fa1d-4aee-b34e-00778e30e779) view extension is added
2023-05-19 01:23:21Z : Refinery (id: 23fb6a45-8cf6-4e80-8a8b-1ff83f1e2def) view extension is added
2023-05-19 01:23:21Z : PackageManagerViewExtension (id: 100f5ec3-fde7-4205-80a7-c968b3a5a27b) view extension is added
2023-05-19 01:23:21Z : Workspace References (id: A6706BF5-11C2-458F-B7C8-B745A77EF7FD) view extension is added
2023-05-19 01:23:21Z : Welcome to Dynamo!
2023-05-19 01:23:21Z : 00:00:00.4682350 elapsed for loading Dynamo main window.
2023-05-19 01:23:21Z : Preparing to load the library resources.
2023-05-19 01:23:21Z : WPF Render Mode: SoftwareOnly