cancel
Showing results for 
Search instead for 
Did you mean: 

Text View: 'Unexpected error' reported when trying to change item position

ferro
Senior III

Dear GFX Team,

When trying to move(drag and drop) an item within a group

ferro_2-1716377617234.png

... This error message appears:

ferro_0-1716377428588.png

Error log:

2024-05-22 12:27:27,316 [1] ERROR TouchGFXDesigner.App: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at TouchGFXDomainModel.Texts.TextDatabase.MoveTextToGroupBefore(Text textToMove, Text beforeText, TextGroup textGroupTo)
   at TouchGFXDesigner.Main.Project.Texts.TextTab.TextGrid.TextGridViewModel.MoveText(Text sourceText, Text targetText, TextGroup targetGroup, RelativeInsertPosition relativeInsertPosition)
   at TouchGFXDesigner.Main.Project.Texts.TextTab.TextGrid.TextGridViewModel.Drop(IDropInfo dropInfo)
   at GongSolutions.Wpf.DragDrop.DragDrop.DropTargetOnDrop(Object sender, DragEventArgs e, EventType eventType)
   at GongSolutions.Wpf.DragDrop.DragDrop.DropTargetOnDrop(Object sender, DragEventArgs 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.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.OleDropTarget.RaiseDragEvent(RoutedEvent dragEvent, Int32 dragDropKeyStates, Int32& effects, DependencyObject target, Point targetPoint)
   at System.Windows.OleDropTarget.MS.Win32.UnsafeNativeMethods.IOleDropTarget.OleDrop(Object data, Int32 dragDropKeyStates, Int64 point, Int32& effects)
   at MS.Win32.UnsafeNativeMethods.DoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.OleServicesContext.OleDoDragDrop(IDataObject dataObject, IOleDropSource dropSource, Int32 allowedEffects, Int32[] finalEffect)
   at System.Windows.DragDrop.OleDoDragDrop(DependencyObject dragSource, DataObject dataObject, DragDropEffects allowedEffects)
   at System.Windows.DragDrop.DoDragDrop(DependencyObject dragSource, Object data, DragDropEffects allowedEffects)
   at GongSolutions.Wpf.DragDrop.DragDrop.DoDragSourceMove(Object sender, Func`2 getPosition)
   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)

 

Best regards

Ferro

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @LouisB 

"Do you know how to reproduce this bug ?"

Hm, no I dont. It happened few times even after closing the Designer (I think it caused Designer to crash actually, dont remember) and now it works Okay. Will let you know if I find the pattern.

Best

View solution in original post

3 REPLIES 3
LouisB
ST Employee

Hello @ferro.
 

Thank you for reporting this, I will bring up this issue to the team.

Regards.

Louis BOUDO
ST Software Developer | TouchGFX
LouisB
ST Employee

Hello @ferro ,
Do you know how to reproduce this bug ? Or maybe you can send me your project in private message.
Regards,

Louis BOUDO
ST Software Developer | TouchGFX

Hi @LouisB 

"Do you know how to reproduce this bug ?"

Hm, no I dont. It happened few times even after closing the Designer (I think it caused Designer to crash actually, dont remember) and now it works Okay. Will let you know if I find the pattern.

Best