# Dynamo gets stuck often and needs a restart

**URL:** <https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [July 14, 2023, 2:24pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815 "2023-07-14T14:24:17Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 14, 2023, 2:24pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/1 "2023-07-14T14:24:18Z")

</div>

When working for a long time with dynamo or even revit project without dynamo open. When I try to run dynamo scripts at least few times a day dynamo just says “Run started…” and I can still freely move around revit and dynamo as oppose to when a script is running when everything is frozen until the script finishes. If I don’t restart revit the dynamo will remain stuck falsely executing a node tree forever. Restarting just dynamo doesn’t fix it. Revit also needs a restart. This happens across projects and scripts. Any idea why? Or should this be reported as an issue?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 14, 2023, 3:05pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/2 "2023-07-14T15:05:52Z")

</div>

Sounds like there is a UI change which has to finish updating, perhaps due to switching documents or opening things in the background. Minimize the Revit window to the task bar and restore it and see if that clears things up.

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 15, 2023, 6:46am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/3 "2023-07-15T06:46:02Z")

</div>

Will try next time it happens

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 17, 2023, 11:50am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/4 "2023-07-17T11:50:46Z")

</div>

![Screenshot_3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/4/848ed52f0cc8d20fd69a3e36d1efbaa585c25040.png)  
It doesn’t work. As seen here I can freely move and interact with graph while it’s stuck in infinite execution. It is the same on manual mode. Tried minimizing it, didn’t change.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 17, 2023, 12:42pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/5 "2023-07-17T12:42:04Z")

</div>

Is there an open transaction in Revit?

Have you made sure your Revit is fully up to date and there are no add-in conflicts?

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 17, 2023, 1:45pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/6 "2023-07-17T13:45:39Z")

</div>

Nothing open in revit. Revit up to date at 2023 23.1.20.70. Not sure how to check add-in conflicts.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 17, 2023, 4:12pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/7 "2023-07-17T16:12:48Z")

</div>

> [@1bitBoolean](#):
>
> Nothing open in revit.

You need to have a file open to get Revit to launch… or was this in relation to the active transaction? Note that some situations can cause Revit to initiate a transaction without direct user action (add-ins and shortcuts being common instances).

> [@1bitBoolean](#):
>
> Not sure how to check add-in conflicts.

This would be indicated in the Revit journal, but the easy way to check is to disable **ALL** add-ins, restart the CPU, launch Revit, and attempt to reproduce. If you do manage to get the issue to reproduce, grab the Revit journal and Dynamo log. Attach those here and I can have a look.

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 25, 2023, 2:54pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/8 "2023-07-25T14:54:32Z")

</div>

Caught it. Here’s latest logs

Revit journal:

> **[' 0:\< Initial VM: Avail 134213370 MB, Used 18 MB, Peak 18; RAM: Avail...](https://pastebin.com/tkyDE1Kv)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Dynamo log:

> **[Dynamo log started 2023-07-25 10:44:40Z2023-07-25 10:44:40Z : Python template...](https://pastebin.com/sxcguaNE)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Cannot replicate on command. It just sometimes happens after dynamo has been open for a while

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 25, 2023, 4:15pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/9 "2023-07-25T16:15:22Z")

</div>

Revit journal is incomplete - it didn’t finish the start up. Can you post the file directly to the forum?

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 26, 2023, 11:22am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/10 "2023-07-26T11:22:17Z")

</div>

Seams that I uploaded .worker1 file instead of the log.  
The file cannot be pasted or uploaded here since it’s ~10MB.  
I’ve uploaded it to dropbox here:

> **[journal.0135.txt](https://www.dropbox.com/scl/fi/nu7mesjwd1u8rehbtkmao/journal.0135.txt?rlkey=06tml27jrr0my43yjh6d807g1&dl=0)**
>
> Shared with Dropbox

If there are security concerns please point to where I should upload or paste text to.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 26, 2023, 11:28am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/11 "2023-07-26T11:28:30Z")

</div>

Looks to be complete now. I’ll review later. Any idea about what time the lockup occurred?

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 26, 2023, 12:35pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/12 "2023-07-26T12:35:04Z")

</div>

Probably happened near the end since after posting I restarted revit to fix the issue

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 26, 2023, 1:58pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/13 "2023-07-26T13:58:55Z")

</div>

Have a few things to pull at on the Revit side… can you confirm the Dynamo log was complete?

Usually we see a sign off but the pastebin for the Dynamo log stops early, but the Revit journal is complete.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [July 26, 2023, 2:18pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/14 "2023-07-26T14:18:47Z")

</div>

Hi @1bitBoolean ,

Even though Jacob already addressed it, pressing ESC a couple of times in Revit after executing the script makes sure that you haven’t accidently opened any environment in Revit which Dynamo is waiting for.

A Dynamo script won’t run if you’re, for example, in a Beam Editor environment.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 26, 2023, 4:33pm UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/15 "2023-07-26T16:33:58Z")

</div>

I am seeing some issues around element casts failing, which could cause some instability. That said it was a 5+ hour Revit session, and Revit itself doesn’t often like much more than 4 hours of functional use at a clip when you do heavy production work, which I would qualify this as (based on the number of actions). I’ll keep looking later (ideally with confirmation that the Dynamo log was complete).

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 27, 2023, 9:09am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/16 "2023-07-27T09:09:07Z")

</div>

Can confirm that dynamo log is complete. All my dynamo logs are very short, can reach the end with single scroll of my mouse wheel. Just went through few random ones to make sure.

---

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [July 27, 2023, 9:10am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/17 "2023-07-27T09:10:50Z")

</div>

Doesn’t work, sometimes when it occurs I continue working and I spam esc a lot while working. And I then check back later and it’s always still bugged.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [July 27, 2023, 9:15am UTC](https://forum.dynamobim.com/t/dynamo-gets-stuck-often-and-needs-a-restart/91815/18 "2023-07-27T09:15:20Z")

</div>

We can confirm your environment is broken then.

All Dynamo logs should end with the line “Goodbye” after closing out extensions… Yours just stops after saving a backup file. Perhaps an infosec issue?
