PLCnext Engineer, Version 2022.6 (Build 5.3.820.0, Revision e0d1fdaf) Unexpected Exception ====================================================================== 0 <= length, startIndex(1083)+length <= 5434 Parameter name: length Actual value was 4358. Exception chain: ---------------------------------------------------------------------- ArgumentOutOfRangeException ====================================================================== Details ---------------------------------------------------------------------- ArgumentOutOfRangeException ============================== Message: ------------------------------ 0 <= length, startIndex(1083)+length <= 5434 Parameter name: length Actual value was 4358. Stack trace: ------------------------------ at ICSharpCode.AvalonEdit.Utils.Rope`1.VerifyRange(Int32 startIndex, Int32 length) at ICSharpCode.AvalonEdit.Utils.Rope`1.CopyTo(Int32 index, T[] array, Int32 arrayIndex, Int32 count) at ICSharpCode.AvalonEdit.Utils.CharRope.ToString(Rope`1 rope, Int32 startIndex, Int32 length) at ICSharpCode.AvalonEdit.Document.TextDocument.GetText(ISegment segment) at Ade.Text.ColorizingTransformer.SelectedTextOccurrencesHighlightingTransformer.ColorizeLine(DocumentLine line) at ICSharpCode.AvalonEdit.Rendering.DocumentColorizingTransformer.Colorize(ITextRunConstructionContext context) at ICSharpCode.AvalonEdit.Rendering.ColorizingTransformer.Transform(ITextRunConstructionContext context, IList`1 elements) at ICSharpCode.AvalonEdit.Rendering.VisualLine.RunTransformers(ITextRunConstructionContext context, IVisualLineTransformer[] transformers) at ICSharpCode.AvalonEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, VisualLineTextParagraphProperties paragraphProperties, VisualLineElementGenerator[] elementGeneratorsArray, IVisualLineTransformer[] lineTransformersArray, Size availableSize) at ICSharpCode.AvalonEdit.Rendering.TextView.GetOrConstructVisualLine(DocumentLine documentLine) at ICSharpCode.AvalonEdit.Editing.RectangleSelection.CalculateSegments() at ICSharpCode.AvalonEdit.Editing.RectangleSelection..ctor(TextArea textArea, TextViewPosition start, TextViewPosition end) at ICSharpCode.AvalonEdit.Editing.RectangleSelection.UpdateOnDocumentChange(DocumentChangeEventArgs e) at ICSharpCode.AvalonEdit.Editing.TextArea.OnDocumentChanged(DocumentChangeEventArgs e) at ICSharpCode.AvalonEdit.Editing.TextArea.ReceiveWeakEvent(Type managerType, Object sender, EventArgs e) at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Listener& listener, Object sender, EventArgs args, Type managerType) at System.Windows.WeakEventManager.ListenerList.DeliverEvent(Object sender, EventArgs args, Type managerType) at System.Windows.WeakEventManager.DeliverEvent(Object sender, EventArgs args) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at ICSharpCode.AvalonEdit.Document.TextDocument.DoReplace(Int32 offset, Int32 length, ITextSource newText, OffsetChangeMap offsetChangeMap) at ICSharpCode.AvalonEdit.Document.TextDocument.Replace(Int32 offset, Int32 length, ITextSource text, OffsetChangeMap offsetChangeMap) at ICSharpCode.AvalonEdit.Document.TextDocument.Replace(ISegment segment, String text) at ICSharpCode.AvalonEdit.Editing.RectangleSelection.ReplaceSingleLineText(TextArea textArea, SelectionSegment lineSegment, String newText, Int32& insertionLength) at ICSharpCode.AvalonEdit.Editing.RectangleSelection.ReplaceSelectionWithText(String newText) at ICSharpCode.AvalonEdit.Editing.EditingCommandHandler.<>c__DisplayClass12_0.b__0(Object target, ExecutedRoutedEventArgs args) at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e) at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding) at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute) at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute) at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs 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.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated) 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.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 Ade.Application.ApplicationStarter.Run() at PCWorxNext.Startup.Main(String[] args)