iLogic editor bug/crash (pop-up help issue?) Version 2022.2

iLogic editor bug/crash (pop-up help issue?) Version 2022.2

llorden4
Collaborator Collaborator
656 Views
5 Replies
Message 1 of 6

iLogic editor bug/crash (pop-up help issue?) Version 2022.2

llorden4
Collaborator
Collaborator

I'm getting a repeatable crash when typing in the iLogic editor with this particular code and have captured the conditions & error report from this event.

 

I am attempting to enter a "Catch" option to troubleshoot some code I'm working on; trying to type in...

MsgBox("i: " & CStr(i))

 

It keeps crashing as soon as I press the letter "c" on the keyboard.  I've tried suppressing my rule to keep it from firing, but I suspect the issue with the handler for pop-up help within the editor.

 

 

Error message:

System.InvalidOperationException: Failed to compare two elements in the array. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.SZArrayHelper.get_Item[T](Int32 index)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.ArgumentCompletionItemSortComparer.#Vlb(IQualifiedName #hlb)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.ArgumentCompletionItemSortComparer.Compare(ICompletionItem x, ICompletionItem y)
at System.Collections.Generic.ArraySortHelper`1.DepthLimitedQuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer, Int32 depthLimit)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, IComparer`1 comparer)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.CompletionSession.SortItems(IComparer`1 comparer)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.CompletionSession.SortItems()
at ActiproSoftware.Text.Languages.DotNet.Implementation.DotNetCompletionProviderBase.OnSessionOpening(ICompletionSession session)
at ActiproSoftware.Text.Languages.VB.Implementation.VBCompletionProvider.RequestSession(IEditorView view, Boolean canCommitWithoutPopup, Boolean requireExactMatch)
at ActiproSoftware.Text.Languages.VB.Implementation.VBCompletionProvider.OnDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Languages.VB.Implementation.VBCompletionProvider.#llb(SyntaxEditor #mlb, EditorSnapshotChangedEventArgs #rb)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.OnDocumentTextChanged(EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.RaiseDocumentTextChangedEvent(EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.OnDocumentTextChanged(Object sender, TextSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.<>c.<AttachToDocumentEvents>b__59_10(SyntaxEditor instance, Object source, TextSnapshotChangedEventArgs eventArgs)
at ActiproSoftware.Text.Implementation.TextDocumentBase.OnTextChanged(TextSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Implementation.CodeDocument.OnTextChanged(TextSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Implementation.TextDocumentBase.#iO(#2O #MC, Action`1 #e8b)
at #gN.#2O.Apply()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ReplaceSelectedText(ITextChangeType type, String text, IEditorViewTextChangeOptions options)
at ActiproSoftware.Windows.Controls.SyntaxEditor.EditActions.TypingAction.Execute(IEditorView view)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ExecuteEditAction(IEditAction action)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.PerformTyping(String text)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ProcessTyping(TextCompositionEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.OnTextInput(TextCompositionEventArgs 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.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
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.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, 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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at iLogic.EditRuleRunner.RuleModifyAndEval(ILmiRule rule, Boolean allowRunAfterEdit, Boolean& cancelled)

Autodesk Inventor Certified Professional
0 Likes
Accepted solutions (1)
657 Views
5 Replies
Replies (5)
Message 2 of 6

BenoitLarocque000
Enthusiast
Enthusiast

I have similar problem with 2022.2.

Models that used to update correctly with 2022.1 now gives me errors when propagating values from parameters located in parent assembly to a sub assembly (a simple true false parameter propagation crashes). I also have problem when running an update rule in a sub assembly from the parent assembly????   Any idea? 

0 Likes
Message 3 of 6

llorden4
Collaborator
Collaborator

Nope, and when I get no response at all from the Inventor team it usually means they don't either.

Autodesk Inventor Certified Professional
0 Likes
Message 4 of 6

BenoitLarocque000
Enthusiast
Enthusiast

I uninstalled the 2022.2 service pack and everything went back to normal.

 

0 Likes
Message 5 of 6

llorden4
Collaborator
Collaborator

Still having this issue in 2023.4, it's repeatable for me.

When attempting to manually type in this line.

oTickPnts(i, 1) = oTG.CreatePoint2d(oCLPoints(i, 1).X + x, oCLPoints(i, 1).Y + y)

 I get an editor crash/exit when I reach the location of "+ x" or "+ y".  I have to create the line of text without those entries, save and exit, re-enter the editor and then paste in that text in order to complete the line without the crash.

 

[Here's a copy & paste of the error report.]

System.InvalidOperationException: Failed to compare two elements in the array. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.SZArrayHelper.get_Item[T](Int32 index)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.ArgumentCompletionItemSortComparer.#Vlb(IQualifiedName #hlb)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.ArgumentCompletionItemSortComparer.Compare(ICompletionItem x, ICompletionItem y)
at System.Collections.Generic.ArraySortHelper`1.DepthLimitedQuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer, Int32 depthLimit)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, IComparer`1 comparer)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.CompletionSession.SortItems(IComparer`1 comparer)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.CompletionSession.SortItems()
at ActiproSoftware.Text.Languages.DotNet.Implementation.DotNetCompletionProviderBase.OnSessionOpening(ICompletionSession session)
at ActiproSoftware.Text.Languages.VB.Implementation.VBCompletionProvider.RequestSession(IEditorView view, Boolean canCommitWithoutPopup, Boolean requireExactMatch)
at ActiproSoftware.Text.Languages.VB.Implementation.VBCompletionProvider.OnDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Languages.VB.Implementation.VBCompletionProvider.#llb(SyntaxEditor #mlb, EditorSnapshotChangedEventArgs #rb)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.OnDocumentTextChanged(EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.RaiseDocumentTextChangedEvent(EditorSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.OnDocumentTextChanged(Object sender, TextSnapshotChangedEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.<>c.<AttachToDocumentEvents>b__59_10(SyntaxEditor instance, Object source, TextSnapshotChangedEventArgs eventArgs)
at ActiproSoftware.Text.Implementation.TextDocumentBase.OnTextChanged(TextSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Implementation.CodeDocument.OnTextChanged(TextSnapshotChangedEventArgs e)
at ActiproSoftware.Text.Implementation.TextDocumentBase.#iO(#2O #MC, Action`1 #e8b)
at #gN.#2O.Apply()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ReplaceSelectedText(ITextChangeType type, String text, IEditorViewTextChangeOptions options)
at ActiproSoftware.Windows.Controls.SyntaxEditor.EditActions.TypingAction.Execute(IEditorView view)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ExecuteEditAction(IEditAction action)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.PerformTyping(String text)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ProcessTyping(TextCompositionEventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.OnTextInput(TextCompositionEventArgs 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.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
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.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, 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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at iLogic.EditRuleRunner.RuleModifyAndEval(ILmiRule rule, Boolean allowRunAfterEdit, Boolean& cancelled)

Autodesk Inventor Certified Professional
0 Likes
Message 6 of 6

llorden4
Collaborator
Collaborator
Accepted solution

I was able to get this issue logged as INVGEN-76164

Autodesk Inventor Certified Professional
0 Likes