DynamoDS / DynamoRevit

Dynamo Libraries for Revit
https://dynamobim.org
339 stars 188 forks source link

Dynamo has crashed message after adding a few nodes to the script. #2630

Open ValentinBelets opened 4 years ago

ValentinBelets commented 4 years ago

Hi there!

05_RVT_SGN_Placement_V.3.1.zip

Dynamo version

Dynamo Core 2.0.4.12684 Dynamo Revit 2.0.4.12685

Revit version

Revit 19.2.20.24

Operating system

Windows 10

What did you do?

Added a few nodes to the script, and it got stuck returning crashes. Previous version of the script still works.

What did you expect to see?

Expected it to run.

What did you see instead?

"Dynamo has crashed" message

Object reference not set to an instance of an object.

at ProtoCore.DSASM.Mirror.ExecutionMirror.GetStringValue(StackValue val, Heap heap, Int32 langblock, Int32 maxArraySize, Int32 maxOutputDepth, Boolean forPrint) at ProtoCore.Utils.StringUtils.GetStringValue(StackValue sv, RuntimeCore runtimeCore) at ProtoCore.Mirror.MirrorData.GetData(StackValue sv, RuntimeCore runtimeCore) at Dynamo.Graph.Nodes.NodeModelExtensions.GetGraphicItemsFromMirrorData(MirrorData mirrorData, List1 graphicItems) at Dynamo.Graph.Nodes.NodeModelExtensions.GetGraphicItemsFromMirrorData(MirrorData mirrorData, List1 graphicItems) at Dynamo.Graph.Nodes.NodeModelExtensions.GetGraphicItemsFromMirrorData(MirrorData mirrorData, List1 graphicItems) at Dynamo.Graph.Nodes.NodeModelExtensions.GeneratedGraphicItems(NodeModel node, EngineController engineController) at System.Linq.Enumerable.<SelectManyIterator>d__172.MoveNext() at Dynamo.Applications.ViewModel.RevitWatch3DViewModel.Draw(NodeModel node) at System.EventHandler1.Invoke(Object sender, TEventArgs e) at Dynamo.Models.DynamoModel.OnEvaluationCompleted(Object sender, EvaluationCompletedEventArgs e) at System.EventHandler1.Invoke(Object sender, TEventArgs e) at Dynamo.Graph.Workspaces.HomeWorkspaceModel.OnEvaluationCompleted(EvaluationCompletedEventArgs e) at Dynamo.Models.DynamoModel.RunCancelImpl(RunCancelCommand command) at Dynamo.Models.DynamoModel.ExecuteCommand(RecordableCommand command) 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)

ZiyunShang commented 4 years ago

Hi @ValentinBelets , are you experience this issue in latest version of Dynamo?