Skip to content

PLCnext Engineer 2024.0.4 Crash Report

PLCnext Engineer 2024.0.4 crashed on me.

Process: I highlighted multiple lines of ST code, then tried to do a Find/Replace the word "IN" with "OUT"... when I hit "continue with search and replace" this error occurred:

Note: Its possible the 1st line of ST code was empty, but I know the other 15 or so lines had plenty of code. I'm guessing you'll be able to play around with testing and make this repeatable.

Thanks,

Kevin


Here is the Crash Message:

PC Name: S000849

Session Start: 12/17/2024 22:55:58

Project Name: DynIoRTU_skips_emptyModules.pcwex

Project Path: C:\[Filepath]\[ProjName].pcwex


PLCnext Engineer, Version 2024.0.4 (Build 7.0.550.0, Revision ba77587a)


Unexpected Exception

======================================================================

startIndex cannot be larger than length of string. (Parameter 'startIndex')


Exception chain:

----------------------------------------------------------------------

ArgumentOutOfRangeException


======================================================================


Details

----------------------------------------------------------------------


ArgumentOutOfRangeException

==============================

Message:

------------------------------

startIndex cannot be larger than length of string. (Parameter 'startIndex')


Stack trace:

------------------------------

  at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)

  at System.String.Substring(Int32 startIndex, Int32 length)

  at Ade.Documents.UI.SearchLogic.cafcn.GetText(Uri kdgrl)

  at Ade.Documents.SearchHelper.GetTextSafe(ISearcher searcher, Uri position)

  at Ade.Documents.UI.SearchLogic.ybutc(ISearcher kdgrl, IReplacer kdgrl, IDocument kdgrl, Uri kdgrl, SearchOptions kdgrl, String kdgrl, String kdgrl, ReplaceScope kdgrl, ReplaceAction kdgrl, cafcp kdgrl)

  at Ade.Documents.UI.SearchLogic.ReplaceNext(IDocument document, Uri documentPosition, String searchString, SearchLookInType lookInType, SearchOptions searchOptions, String replacement, ReplaceScope scope, Action onCompleted)

  at _853fb106de0849e6a9947f4946c1d673.mcqpz.Execute(Object kdgrl)

  at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

  at System.Windows.Controls.Button.OnClick()

  at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

  at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

  at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

  at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

  at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

  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.InputProviderSite.ReportInput(InputReport inputReport)

  at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

  at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, 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 MS.Win32.UnsafeNativeMethods.DispatchMessage(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.Run(String[] args)

  at PCWorxNext.Startup.Main(String[] args)

Comments

  • Hey Kevin,

    Thank you for the report. I've been working on recreating this but have been unsuccessful so far. What controller and firmware do you have in the project?

    I've notified the correct people and been asking around but have not heard of any other instances like this either. Will update if I am able to recreate.

Sign In or Register to comment.