Dynamo Core 2.8.0.2471
Windows 10 Home
I have a curve projected on two inclined plans, hence I get two curves after he operation. I want to reverse the direction of one curve, so I decompose the list, and then try to reverse the first curve.
That the curve direction is reversed.
Dynamo crashing.
here is the log I get in the console when running the executable from the terminal.
`Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at Autodesk.LibG.LibGPINVOKE.Curve_reverse__SWIG_0(HandleRef jarg1)
at Autodesk.LibG.Curve.reverse(Curve ptr)
at Autodesk.LibG.CurveHost.Reverse()
at Autodesk.DesignScript.Geometry.Curve.Reverse()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at ProtoFFI.FFIMethodInfo.Invoke(Object thisObject, Object[] parameters)
at ProtoFFI.CLRFFIFunctionPointer.InvokeFunctionPointerNoThrow(Context c, Interpreter dsi, Object thisObject, Object[] parameters)
at ProtoFFI.CLRFFIFunctionPointer.Execute(Context c, Interpreter dsi, List1 s)
at ProtoCore.Lang.FFIFunctionEndPoint.Execute(Context c, List1 formalParameters, StackFrame stackFrame, RuntimeCore runtimeCore)
at ProtoCore.CallSite.ExecWithZeroRI(List1 functionEndPoint, Context c, List1 formalParameters, StackFrame stackFrame, RuntimeCore runtimeCore, SingleRunTraceData previousTraceData, SingleRunTraceData newTraceData, FunctionEndPoint finalFep)
at ProtoCore.CallSite.ExecWithRISlowPath(List1 functionEndPoint, Context c, List1 formalParameters, List1 replicationInstructions, StackFrame stackFrame, RuntimeCore runtimeCore, SingleRunTraceData previousTraceData, SingleRunTraceData newTraceData, FunctionEndPoint finalFunctionEndPoint)
at ProtoCore.CallSite.ExecWithRISlowPath(List1 functionEndPoint, Context c, List1 formalParameters, List1 replicationInstructions, StackFrame stackFrame, RuntimeCore runtimeCore, SingleRunTraceData previousTraceData, SingleRunTraceData newTraceData, FunctionEndPoint finalFunctionEndPoint)
at ProtoCore.CallSite.Execute(List1 functionEndPoint, Context c, List1 formalParameters, List1 replicationInstructions, StackFrame stackFrame, RuntimeCore runtimeCore)
at ProtoCore.CallSite.DispatchNew(Context context, List1 arguments, List1 partialReplicationGuides, DominantListStructure domintListStructure, StackFrame stackFrame, RuntimeCore runtimeCore)
at ProtoCore.DSASM.Executive.Callr(Int32 blockDeclId, Int32 functionIndex, Int32 classIndex, Boolean& explicitCall, Boolean isDynamicCall, Boolean hasDebugInfo)
at ProtoCore.DSASM.Executive.CALLR_Handler(Instruction instruction)
at ProtoCore.DSASM.Executive.Execute(Int32 exeblock, Int32 entry, Language language)
at ProtoCore.DSASM.Executive.Execute(Int32 exeblock, Int32 entry, List1 breakpoints, Language language)
at ProtoCore.DSASM.Executive.BounceUsingExecutive(Executive executive, Int32 exeblock, Int32 entry, StackFrame stackFrame, Int32 locals, Boolean fepRun, Executive exec, List1 breakpoints)
at ProtoScript.Runners.ProtoScriptRunner.ExecuteLive(Core core, RuntimeCore runtimeCore)
at ProtoScript.Runners.LiveRunner.Execute(Boolean isCodeCompiled)
at ProtoScript.Runners.LiveRunner.CompileAndExecute(List1 astList)
at ProtoScript.Runners.LiveRunner.CompileAndExecuteForDeltaExecution(List1 astList)
at ProtoScript.Runners.LiveRunner.SynchronizeInternal(GraphSyncData syncData)
at ProtoScript.Runners.LiveRunner.UpdateGraph(GraphSyncData syncData)
at Dynamo.Scheduler.UpdateGraphAsyncTask.HandleTaskExecutionCore()
at Dynamo.Scheduler.AsyncTask.Execute()
at Dynamo.Scheduler.DynamoScheduler.ProcessTaskInternal(AsyncTask asyncTask)
at Dynamo.Scheduler.DynamoScheduler.ProcessNextTask(Boolean waitIfTaskQueueIsEmpty)
at Dynamo.Scheduler.DynamoSchedulerThread.ThreadProc()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
I could not attach the dynamo definition, but I provide here a download link from the google drive.
https://drive.google.com/file/d/1TzVmpZge-3Sokpd4dPgPiPKMLi2xhGdH/view?usp=sharing
Hi @LUC-ian. First of all, thanks for taking the time to provide all this information.
Taking a look at the error, it seems to originate from LibG, which is the library Dynamo uses to interact with ASM, the Autodesk geometry library shipped with most products. In order to determine which version of LibG/ASM you are using, can you tell us which version of an Autodesk product, probably Revit, you have installed on your machine?
Also I tried to access the file you shared in Google Drive and I couldn't access it but was asked to request access. If that was intentional I can provide my e-mail address. Please let me know.
Thank you and have a good day!
@mmisol I wonder if we should start logging this to Dynamo console: https://github.com/DynamoDS/Dynamo/blob/932f867304cc87146c510b804af0b2aef82cfdbc/src/Tools/DynamoShapeManager/Utilities.cs#L439
hi @mmisol I have two versions or Revit install on my machine:
Revit 2021.1.1 - Student version
Revit 2019 - Student version
here is the dynamo definition. just noticed I can upload zip archives
bridge2020.zip
the operation worked well in Dynamo Core 2.5.2.7915.
@mjkkirschner Yeah, I think having that info would aid greatly when giving support.
@LUC-ian Thanks! I think with that info most likely version 226 is getting picked up. Will give it a try.
I tried this with ASM 226 and 225 and it didn't crash for me using DynamoCoreRuntime_2.8.0.2471_20200908T2048.zip from dynamobuilds.com. @mjkkirschner Do you think there is anything else we could try?
@mmisol sorry I forgot to mention...there is a parameter Arches.InclinationAngle change his value...currently it is set to zero... change the value and it will crash...
Thanks @LUC-ian . Changing that to 18 I was able to reproduce the error. It's also reproducible with our latest binaries.
I believe we have all the info we need to investigate the issue. We'll let you know of any updates we have. Thanks for helping us get better!
Thanks @mmisol for looking into this, and I'm looking forward to have any updates on this issue.
this fix should be in master now - closing.
hi @mjkkirschner I'm assuming the fix is available when downloading the daily builds, and not for the Dynamo Sandbox release, right?
Most helpful comment
Hi @LUC-ian. First of all, thanks for taking the time to provide all this information.
Taking a look at the error, it seems to originate from LibG, which is the library Dynamo uses to interact with ASM, the Autodesk geometry library shipped with most products. In order to determine which version of LibG/ASM you are using, can you tell us which version of an Autodesk product, probably Revit, you have installed on your machine?
Also I tried to access the file you shared in Google Drive and I couldn't access it but was asked to request access. If that was intentional I can provide my e-mail address. Please let me know.
Thank you and have a good day!