# Dynamo crashes upon package installation / Revit 2020

**URL:** <https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249>\
**Category:** Revit\
**Tags:** revit, packagemanager, dynamo, bug\
**Created:** [April 19, 2024, 12:13pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249 "2024-04-19T12:13:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed.Ramy.JBI](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Ahmed.Ramy.JBI](https://forum.dynamobim.com/u/Ahmed.Ramy.JBI)\
**Post date:** [April 19, 2024, 12:13pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/1 "2024-04-19T12:13:13Z")

</div>

Hi all!  
Dynamo crashes with me everytime I try installing a package, and as a result causes Revit to crash too.

Below is a screeenshot of the crash with the error logging:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/1/91bc14a17cd738ad87d7c5e58ae48094c683b5a1.png)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/f/df00e77958c530419c24a647212cc155746da74b.jpeg)

Object reference not set to an instance of an object.

at Dynamo.PackageManager.PackageManagerSearchViewModel.\<\>c.b\_\_84\_3(Tuple`2 x) at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)  
at Dynamo.PackageManager.PackageManagerSearchViewModel.PackageOnExecuted(PackageManagerSearchElement element, PackageVersion version, String downloadPath)  
at Dynamo.PackageManager.ViewModels.PackageManagerSearchElementViewModel.OnRequestDownload(PackageVersion version, Boolean downloadToCustomPath)  
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)  
at System.Windows.Controls.Primitives.ButtonBase.OnClick()  
at System.Windows.Controls.Button.OnClick()  
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)  
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)  
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)  
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)  
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)  
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)  
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)  
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)  
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)  
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)  
at System.Windows.Input.InputManager.ProcessStagingArea()  
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)  
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)  
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)  
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)  
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)  
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)  
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [April 19, 2024, 12:36pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/2 "2024-04-19T12:36:24Z")

</div>

Archilab has special versions depending on your revit build. 2020 is quite old now, but check the package description for the version to use.

---

<div class="post-metadata">

**Author:** ![Ahmed.Ramy.JBI](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Ahmed.Ramy.JBI](https://forum.dynamobim.com/u/Ahmed.Ramy.JBI)\
**Post date:** [April 19, 2024, 12:46pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/3 "2024-04-19T12:46:02Z")

</div>

Hi Gavin!

The error occurs with any custom package I try to add to Dynamo.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [April 19, 2024, 12:49pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/4 "2024-04-19T12:49:28Z")

</div>

Hrm strange. Maybe disable all addins using diroots addin manager and see if that helps.

---

<div class="post-metadata">

**Author:** ![Ahmed.Ramy.JBI](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Ahmed.Ramy.JBI](https://forum.dynamobim.com/u/Ahmed.Ramy.JBI)\
**Post date:** [April 19, 2024, 12:51pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/5 "2024-04-19T12:51:12Z")

</div>

I have Diroots installed, but can’t manage to find the button of Addinmanager ?

---

<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:** [April 19, 2024, 1:04pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/6 "2024-04-19T13:04:20Z")

</div>

Just disable all Revit add-ins. How isn’t as important as getting it done; that said I don’t think this is add-in related.

It feels like this is due to a conflict with an existing package. Try to disable all your Dynamo packages and then install them anew. Note that Revit 2020 hasn’t been supported for a full year now so you’re going to be fighting version issues for a long time to come. If you can get into a supported build dynamo will be more functional (plus you won’t have to worry about using a software which has not been reviewed for security vulnerabilities or issues for 13+ months).

---

<div class="post-metadata">

**Author:** ![Ahmed.Ramy.JBI](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Ahmed.Ramy.JBI](https://forum.dynamobim.com/u/Ahmed.Ramy.JBI)\
**Post date:** [April 19, 2024, 1:07pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/7 "2024-04-19T13:07:14Z")

</div>

I know that 2020 is already ancient, however the specific users group who will be utilizing the script I’m currently honing are asked to deliver the model in 2020.

Ok, so do you think that the package manager wil be sufficient to get the job done or should I manually intervene by deleting the packages folders ?

---

<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:** [April 19, 2024, 1:08pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/8 "2024-04-19T13:08:59Z")

</div>

> [@Ahmed.Ramy.JBI](#):
>
> should I manually intervene by deleting the packages folders ?

If you only load packages from the default directory I would just close Revir and rename your \packages folder to \packages\_Archive. Then start loading from scratch.

---

<div class="post-metadata">

**Author:** ![Ahmed.Ramy.JBI](https://avatars.discourse-cdn.com/v4/letter/a/71e660/32.png) [@Ahmed.Ramy.JBI](https://forum.dynamobim.com/u/Ahmed.Ramy.JBI)\
**Post date:** [April 19, 2024, 1:09pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/9 "2024-04-19T13:09:53Z")

</div>

ok wow that’s a slick trick honestly 😀

---

<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:** [April 19, 2024, 1:11pm UTC](https://forum.dynamobim.com/t/dynamo-crashes-upon-package-installation-revit-2020/100249/10 "2024-04-19T13:11:40Z")

</div>

I am working with eight companies at the moment and have “\packages\_” + (1…16) for Dynamo for Revit 2.16… helps to reconfigure the environments to match their setup this way.
