‎2020-11-25 03:54 AM
When I delete a typographies ,the TouchGFXDesigner can't generate or save. And the TouchGFXDesigner.log as follows.
2020-11-25 19:46:27,675 [6] INFO TouchGFXPackages.FileDownloader: Take operation was canceled. IsCancellationRequested=True
2020-11-25 19:46:27,675 [10] INFO TouchGFXPackages.FileDownloader: Take operation was canceled. IsCancellationRequested=True
2020-11-25 19:46:27,675 [7] INFO TouchGFXPackages.FileDownloader: Take operation was canceled. IsCancellationRequested=True
2020-11-25 19:46:27,676 [8] INFO TouchGFXPackages.FileDownloader: Take operation was canceled. IsCancellationRequested=True
2020-11-25 19:46:27,675 [9] INFO TouchGFXPackages.FileDownloader: Take operation was canceled. IsCancellationRequested=True
2020-11-25 19:46:27,691 [1] INFO TouchGFXDesigner.Main.MainWindow: Application closed
2020-11-25 19:46:32,608 [1] INFO TouchGFXDesigner.App: Logging configured
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Application started
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Username: minos.wu
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Designer version: 4.13.0
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Designer installation path: D:\app\TouchGFX\4.13.0\designer
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Windows version: Microsoft Windows NT 10.0.17763.0
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Current culture: zh-CN
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Current culture time seperator: :
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Current culture date seperator: /
2020-11-25 19:46:32,774 [1] INFO TouchGFXDesigner.Main.MainWindow: Installed .NET version(s): v2.0.50727 2.0.50727.4927 SP2v3.0 3.0.30729.4926 SP2v3.5 3.5.30729.4926 SP1v4 (Client 4.7.03190 Full 4.7.03190 ) v4.0 (Client 4.0.0.0 )
2020-11-25 19:46:36,469 [1] WARN TouchGFXPackages.AvailablePackages: Unable to read C:\Users\Minos.Wu\AppData\Roaming\TouchGFX-4.13.0\Downloads\SmartHome\1.0.0\SmartHome-1.0.0.tpa - Skipping
2020-11-25 19:46:36,594 [1] WARN TouchGFXPackages.AvailablePackages: Unable to read C:\Users\Minos.Wu\AppData\Roaming\TouchGFX-4.13.0\Downloads\STM32H750B-DK\3.0.0\STM32H750B-DK-3.0.0.tpa - Skipping
2020-11-25 19:46:36,641 [1] WARN TouchGFXPackages.AvailablePackages: Unable to read C:\Users\Minos.Wu\AppData\Roaming\TouchGFX-4.13.0\Downloads\SwipeContainerExample\1.0.0\SwipeContainerExample-1.0.0.tpa - Skipping
2020-11-25 19:46:38,669 [1] DEBUG TouchGFXDomainModel.LoadSave.Excel.ExcelHandler: Parsing done. Last text row: 198, last typ row: 15
2020-11-25 19:46:38,669 [1] DEBUG TouchGFXDomainModel.LoadSave.Excel.ExcelHandler: Valid text file.
2020-11-25 19:46:50,526 [1] ERROR TouchGFXDesigner.App: 未将对象引用设置到对象的实例。
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(TriggerCustom t)
在 System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
在 CallSite.Target(Closure , CallSite , ToSerial , Object )
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Interaction i)
在 System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Screen s)
在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Application a)
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Model m)
在 TouchGFXDomainModel.LoadSave.LoadSave.SaveDotTouchgfx(String filename, Model model)
在 TouchGFXDomainModel.LoadSave.LoadSave.Save(String filename, Model model)
在 TouchGFXApplication.TouchGFXApplication.SaveCommand(Boolean log, INotification parentNotification)
在 TouchGFXDesigner.Main.Project.ProjectViewModel.Save()
在 TouchGFXDesigner.Main.MainWindowViewModel.OnPreviewKeyHandler(KeyEventArgs e)
在 TouchGFXDesigner.Main.MainWindow.OnPreviewKeyDown(KeyEventArgs e)
在 System.Windows.UIElement.OnPreviewKeyDownThunk(Object sender, KeyEventArgs e)
在 System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
在 System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
在 System.Windows.Input.InputManager.ProcessStagingArea()
在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2020-11-25 19:46:51,726 [1] ERROR TouchGFXDesigner.App: 未将对象引用设置到对象的实例。
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(TriggerCustom t)
在 System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
在 CallSite.Target(Closure , CallSite , ToSerial , Object )
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Interaction i)
在 System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Screen s)
在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Application a)
在 TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Model m)
在 TouchGFXDomainModel.LoadSave.LoadSave.SaveDotTouchgfx(String filename, Model model)
在 TouchGFXDomainModel.LoadSave.LoadSave.Save(String filename, Model model)
在 TouchGFXApplication.TouchGFXApplication.SaveCommand(Boolean log, INotification parentNotification)
在 TouchGFXDesigner.Main.Project.ProjectViewModel.Save()
在 TouchGFXDesigner.Main.MainWindowViewModel.OnPreviewKeyHandler(KeyEventArgs e)
在 TouchGFXDesigner.Main.MainWindow.OnPreviewKeyDown(KeyEventArgs e)
在 System.Windows.UIElement.OnPreviewKeyDownThunk(Object sender, KeyEventArgs e)
在 System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
在 System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
在 System.Windows.Input.InputManager.ProcessStagingArea()
在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
在 System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
在 System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
在 System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
在 System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Can anyone help me, I don,t make a backup.:sad_but_relieved_face: Now I can't use the TouchGFXDesigner.
‎2020-11-25 06:12 AM
Your language is chinese? What does this mean? "System.NullReferenceException: 未将对象引用设置到对象的实例。"
‎2020-11-25 06:12 AM
Can you check if the excel file is somehow locked for writing?
‎2020-11-25 06:25 AM
未将对象引用设置到对象的实例 : The object reference is not set to an instance of the object
‎2020-11-25 06:34 AM
It can be writed, I opened it to see if there was any exception, but I didn't find it.
‎2020-11-27 06:38 PM
:face_with_tears_of_joy:I couldn't find the reason, and finally spent a lot of time rewriting the program for my project.