Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when undoing in graph with Revit nodes in Sandbox #9910

Closed
radumg opened this issue Aug 14, 2019 · 8 comments
Closed

Crash when undoing in graph with Revit nodes in Sandbox #9910

radumg opened this issue Aug 14, 2019 · 8 comments
Labels
2.x Issues related to 2.x versions of Dynamo. crash Related to a crash. error/warning/crash Issues mentioning a Dynamo error, warning or crash message tracked

Comments

@radumg
Copy link
Collaborator

radumg commented Aug 14, 2019

Dynamo version

2.0.2

Operating system

Windows 10

What did you do?

Open graph that has Revit nodes in Dynamo Sandbox.
Move group on canvas
Undo move -> crash

What did you expect to see?

No crash.

What did you see instead?

Crash.
Happens only on this graph, trying to move the get room boundaries & combine intersecting... groups, then undo.

image

Stack trace

Object reference not set to an instance of an object.

   at Dynamo.Graph.Nodes.CodeBlockNodeModel.LoadAndCreateConnectors(OrderedDictionary inportConnections, OrderedDictionary outportConnections, SaveContext context)
   at Dynamo.Graph.Nodes.CodeBlockNodeModel.DeserializeCore(XmlElement nodeElement, SaveContext context)
   at Dynamo.Graph.Workspaces.WorkspaceModel.ReloadModel(XmlElement modelData)
   at Dynamo.Core.UndoRedoRecorder.UndoActionGroup(XmlElement actionGroup)
   at Dynamo.Graph.Workspaces.WorkspaceModel.Undo()
   at Dynamo.Models.DynamoModel.ExecuteCommand(RecordableCommand command)
   at System.Windows.Input.CommandManager.TranslateInput(IInputElement targetElement, InputEventArgs inputEventArgs)
   at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs 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.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
   at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
   at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
   at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
   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)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
   at System.Windows.Interop.ThreadMessageEventHandler.Invoke(MSG& msg, Boolean& handled)
   at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at DynamoSandbox.DynamoCoreSetup.RunApplication(Application app)
@radumg radumg changed the title Crash when editing graph with Revit nodes in Sandbox Crash when undoing in graph with Revit nodes in Sandbox Aug 14, 2019
@radumg
Copy link
Collaborator Author

radumg commented Aug 14, 2019

Note : the only thing being undone is moving the group on canvas.

@mjkkirschner mjkkirschner added crash Related to a crash. 2.x Issues related to 2.x versions of Dynamo. labels Aug 16, 2019
@horatiubota horatiubota added the error/warning/crash Issues mentioning a Dynamo error, warning or crash message label Nov 11, 2019
@mjkkirschner
Copy link
Member

hey @radumg can you please attach the graph that you hit this crash with? It will help us reproduce it.

@mjkkirschner
Copy link
Member

tracked with https://jira.autodesk.com/browse/DYN-2286

@QilongTang
Copy link
Contributor

@radumg While our team decide to tackle this one, do you still have the graph around?

@radumg
Copy link
Collaborator Author

radumg commented Nov 29, 2019

hey @QilongTang & @mjkkirschner , sorry for the delay, I'll try and track down what I was working on at that time.

@radumg
Copy link
Collaborator Author

radumg commented Nov 29, 2019

@radumg
Copy link
Collaborator Author

radumg commented Nov 29, 2019

Uploaded here too, just in case
dt_GenerativeToolkit_Visibility_LinesTest(RVT).zip

@avidit
Copy link
Contributor

avidit commented Sep 6, 2023

fixed in 2.6

@avidit avidit closed this as completed Sep 6, 2023
@github-project-automation github-project-automation bot moved this from Triage to Done in Dynamo Issues Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Issues related to 2.x versions of Dynamo. crash Related to a crash. error/warning/crash Issues mentioning a Dynamo error, warning or crash message tracked
Projects
Status: Done
Development

No branches or pull requests

5 participants