Dynamo Crash Error - "The managed object is not valid."

Hi All!

My first post is unfortunately a request for assistance for a crash error.
I was helping a coworker, running Dynamo 1.3.0 on Revit 2016, through a simple exercise similar to that in the Dynamo Primer.(see figure at bottom).
He was unable to maintain more then 10 min of up time in the Dynamo software before receiving a crash titled “The managed object is not valid”. I have not a clue what triggered the error because it would crash sometimes after node placement, or when a manual Run was requested.
Any help at all to start my trouble shooting, has someone come across this before? No one else seemed to have received this error (10 other laptops) running different combinations of dynamo with revit.

Thanks for your time and thoughts,
Andrew

The copied report is below

at Autodesk.Revit.DB.Transaction.GetStatus()
at RevitServices.Transactions.AutomaticTransactionStrategy.ForceCloseTransaction(TransactionHandle handle)
at Dynamo.Applications.Models.RevitDynamoModel.OnEvaluationCompleted(Object sender, EvaluationCompletedEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at Dynamo.Graph.Workspaces.HomeWorkspaceModel.OnEvaluationCompleted(EvaluationCompletedEventArgs e)
at Dynamo.Graph.Workspaces.HomeWorkspaceModel.Run()
at Dynamo.Models.DynamoModel.ExecuteCommand(RecordableCommand command)
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.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
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.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 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

1 Like

Looks like one of your points is beyond Revit’s geometry limits. Try to run your script step by step in manual mode and also try changing Geometry Range settings. If it didn’t help report issue here https://github.com/DynamoDS/Dynamo/issues

1 Like

Thank you Kulkul! after scrapping the example file, we built again from scratch and havent run into the problem. I will double check what the Geometry Working Range is set to.

Much appreciated!