cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected error occurs when deleting a Text entry from Search Result page

PFlor.2
Senior

This has happened multiple time where when I try to delete a Text object while in the Search Results screen of TouchGFX Designer an error occurs. It does seem to delete the entry but gives an error. Attached is the error popup that occurs.

Here is the Log file entry...

 

2022-10-05 10:23:21,060 [1] ERROR TouchGFXDesigner.App: Sequence contains no matching element

System.InvalidOperationException: Sequence contains no matching element

  at System.Linq.ThrowHelper.ThrowNoMatchException()

  at TouchGFXDesigner.Main.Project.Texts.TextTab.TextTree.TextTreeViewModel.TextSelection_SelectedTextsChanged(Object sender, NotifyCollectionChangedEventArgs e)

  at TouchGFXDesigner.Main.Project.Texts.TextTab.TextSelection.RemoveTextFromSelected(Text text)

  at TouchGFXDesigner.Main.Project.Texts.TextTab.TextGrid.TextRowViewModel.set_IsItemSelected(Boolean value)

  at TouchGFXDesigner.Styles.Behaviors.TextDataGridBehavior.SelectItem(ItemContainerGenerator root, Object item, Boolean isCtrlDown)

  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)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Osman SOYKURT
ST Employee

Hello PFlor.2,

Thank you very much for your contribution. I reproduced this bug in my computer as well. I'll report this to my colleagues and I'll get back to you when I'll have more info concerning a fix.

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX

View solution in original post

3 REPLIES 3
Osman SOYKURT
ST Employee

Hello PFlor.2,

Thank you very much for your contribution. I reproduced this bug in my computer as well. I'll report this to my colleagues and I'll get back to you when I'll have more info concerning a fix.

/Osman

Osman SOYKURT
ST Software Developer | TouchGFX
Jiimmy
Associate II

Same problem here

Jiimmy
Associate II

Within the help of Git, I went back to the last version of the following file:

...\TouchGFX\assets\texts\texts.xml

Before I created a new language, which I deleted later. I think the code generator did not delete this language link and this caused the error.

cheers Jimmy