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

Node to code crashing Dynamo #9227

Closed
andydandy74 opened this issue Nov 5, 2018 · 2 comments
Closed

Node to code crashing Dynamo #9227

andydandy74 opened this issue Nov 5, 2018 · 2 comments
Labels
2.x Issues related to 2.x versions of Dynamo. crash Related to a crash. engine Issues related to the engine driving Dynamo. error/warning/crash Issues mentioning a Dynamo error, warning or crash message needs investigation Needs looked into further. priority Related to a release. tracked

Comments

@andydandy74
Copy link
Contributor

Dynamo version

2.0.1 stable

Operating system

Windows 10

What did you do?

Ran node to code

What did you expect to see?

A code block

What did you see instead?

Dynamo crashing

Stack trace:

Object reference not set to an instance of an object.

   at Dynamo.Graph.Nodes.CodeBlockNodeModel.GetTypeHintForOutput(Int32 index)
   at Dynamo.Engine.NodeToCode.NodeToCodeCompiler.GetInputOutputMap(IEnumerable`1 nodes, Dictionary`2& inputMap, Dictionary`2& outputMap, Dictionary`2& renamingMap, Dictionary`2& typeHintMap)
   at Dynamo.Engine.NodeToCode.NodeToCodeCompiler.NodeToCode(Core core, IEnumerable`1 workspaceNodes, IEnumerable`1 nodes, INamingProvider namingProvider)
   at Dynamo.Graph.Workspaces.NodesToCodeExtensions.ConvertNodesToCodeInternal(WorkspaceModel workspace, EngineController engineController, INamingProvider namingProvider)
   at Dynamo.Models.DynamoModel.ConvertNodesToCodeImpl(ConvertNodesToCodeCommand command)
   at Dynamo.Models.DynamoModel.ExecuteCommand(RecordableCommand command)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
   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)

Steps to reproduce

  • Open Core_Math.dyn from the sample files that ship with Dynamo
  • Select all
  • Run node to code
@johnpierson johnpierson added 2.x Issues related to 2.x versions of Dynamo. engine Issues related to the engine driving Dynamo. crash Related to a crash. needs investigation Needs looked into further. labels Nov 7, 2018
@johnpierson
Copy link
Member

johnpierson commented Nov 21, 2018

Curious if this is related to 8981

@johnpierson johnpierson added the priority Related to a release. label Nov 29, 2018
@horatiubota horatiubota added the error/warning/crash Issues mentioning a Dynamo error, warning or crash message label Nov 11, 2019
@mjkkirschner
Copy link
Member

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

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. engine Issues related to the engine driving Dynamo. error/warning/crash Issues mentioning a Dynamo error, warning or crash message needs investigation Needs looked into further. priority Related to a release. tracked
Projects
None yet
Development

No branches or pull requests

4 participants