PLCnext Engineer 2021.6 crashes after Ctrl+V

Environment: Windows 10, PLCnext Engineer 2021.6 (build 4.10.142.0) Reproduced: Twice. Steps 1st time:[list] [] Edit code in ST editor. [] Move code lines with Ctrl+X and Ctrl+V [/list] Steps 2nd time:[list] [] Add line “udtDebounce(xPress := xPress, tmDebounceTime := tmDebounceTime, xOnePulse := FALSE);” (line that caused crash 1st time) in ST editor. [] Copy and move it many-many times by Ctrl+C and Ctrl+V, Ctrl+X and Ctrl+V. [*] The same crash appeares when i copied about 350 lines with that text and tried to insert them in editor again. [/list] I tried to reproduce it third time but with no luck. Error message: PLCnext Engineer, Version 2021.6 (Build 4.10.142.0) Unexpected Exception ====================================================================== Data on clipboard is invalid (Exception from HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA)) Exception chain: \---------------------------------------------------------------------- COMException ====================================================================== Details \---------------------------------------------------------------------- COMException ============================== Message: \------------------------------ Data on clipboard is invalid (Exception from HRESULT: 0x800401D3 (CLIPBRD_E_BAD_DATA)) Stack trace: \------------------------------ at System.Runtime.InteropServices.ComTypes.IDataObject.GetData(FORMATETC& format, STGMEDIUM& medium) at System.Windows.DataObject.OleConverter.GetDataInner(FORMATETC& formatetc, STGMEDIUM& medium) at System.Windows.DataObject.OleConverter.GetDataFromOleHGLOBAL(String format, DVASPECT aspect, Int32 index) at System.Windows.DataObject.OleConverter.GetDataFromBoundOleDataObject(String format, DVASPECT aspect, Int32 index) at System.Windows.DataObject.OleConverter.GetData(String format, Boolean autoConvert, DVASPECT aspect, Int32 index) at System.Windows.DataObject.OleConverter.GetData(String format, Boolean autoConvert) at ICSharpCode.AvalonEdit.Editing.EditingCommandHandler.OnPaste(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 (String[] ) at PCWorxNext.Startup.Main(String[] args) Previously I observed the same behaviour when run PLCnext Engineer on virtual machine (VirtualBox 6.1.18_Ubuntu r142142) - every time I copied anything from host to VM it crashes. But it seems to be irrelevant because VirtualBox isn’t supported platform). So I just turned host<->VM buffer off. But now it was reproduced on real Win 10.

Hello argentumbolo, thanks for the detailed description! We will try to reproduce this issue and give you feedback asap. Best Regards Eduard

Hello argentumbolo, me and my colleagues have tried to reproduce this behavior, but without success (directly on Win 64 Bit OS). I assume the error in ST-Editor can be caused by PLCnEng installation or Operating system (Virtual Box adds invalid characters when inserting ST-Code via CTRL+V.). Please try to install the PLCnEng 2021.6 directly on the Windows Host System or another PC/Notebook with Win OS. Please find the test results under following link: Adresse:\thttps://extrans.phoenixcontact.com/extrans2/index.jsp?id=851184641 Passwort:\tgMbcQukmzX Best Regards Eduard

Hi Eduard, Thank you for fast response. I reinstalled PLCnEng at Friday. I don’t know how it work but I got the same crash immediately in first start and Ctrl+V. But then four days without any. So, at least it became very rare. I’ll try to reinstall Win later, maybe it’ll fix it completely. But can’t do it right now.

Hello argentumbolo, thanks for your reply, if this issue will be not resolved by reinstallation, please let me know. BR Eduard