cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX 4.17 Object reference not set to an instance of an object.

NUDEM
Associate II

2021-08-17 09:46:33,673 [1] INFO TouchGFXDesigner.App: Logging configured

2021-08-17 09:46:55,655 [1] INFO TouchGFXDesigner.Main.MainWindow: Application started

2021-08-17 09:46:55,656 [1] INFO TouchGFXDesigner.Main.MainWindow: Username: nodemis

2021-08-17 09:46:55,656 [1] INFO TouchGFXDesigner.Main.MainWindow: Designer version: 4.17.0

2021-08-17 09:46:55,656 [1] INFO TouchGFXDesigner.Main.MainWindow: Designer installation path: E:\TouchGFX\4.17.0\designer

2021-08-17 09:46:55,656 [1] INFO TouchGFXDesigner.Main.MainWindow: Windows version: Microsoft Windows NT 6.1.7601 Service Pack 1

2021-08-17 09:46:55,656 [1] INFO TouchGFXDesigner.Main.MainWindow: Current culture: tr-TR

2021-08-17 09:46:55,671 [1] INFO TouchGFXDesigner.Main.MainWindow: Current culture time seperator: :

2021-08-17 09:46:55,671 [1] INFO TouchGFXDesigner.Main.MainWindow: Current culture date seperator: .

2021-08-17 09:46:55,720 [1] INFO TouchGFXDesigner.Main.MainWindow: Installed .NET version(s): v2.0.50727 2.0.50727.5420 SP2v3.0 3.0.30729.5420 SP2v3.5 3.5.30729.5420 SP1v4 (Client 4.8.03761 Full 4.8.03761 ) v4.0 (Client 4.0.0.0 )  

2021-08-17 09:46:55,786 [10] INFO Utils.WebHandling.WebHandler: Downloading STM32G071-AIRCON-REMOTE-DEMO-back.png

2021-08-17 09:46:55,786 [11] INFO Utils.WebHandling.WebHandler: Downloading STM32G071-AIRCON-REMOTE-DEMO-back.png

2021-08-17 09:46:56,254 [11] ERROR Utils.WebHandling.WebHandler: Response status code does not indicate success: 404 (Not Found).

System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).

  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()

  at Utils.WebHandling.FileDownloadUtil.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)

  at Utils.WebHandling.WebHandler.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)

2021-08-17 09:46:56,254 [10] ERROR Utils.WebHandling.WebHandler: Response status code does not indicate success: 404 (Not Found).

System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).

  at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()

  at Utils.WebHandling.FileDownloadUtil.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)

  at Utils.WebHandling.WebHandler.DownloadFile(Uri uri, String filePath, IProgress`1 progress, Action completion, Action`1 bytesReceived)

2021-08-17 09:46:56,499 [11] ERROR TouchGFXPackages.Implementation.FileDownloader: Failed to download: http://sw-center.st.com/touchgfx/pacman/4.16.0/STM32G071-AIRCON-REMOTE-DEMO/STM32G071-AIRCON-REMOTE-DEMO-back.png

2021-08-17 09:46:56,499 [10] ERROR TouchGFXPackages.Implementation.FileDownloader: Failed to download: http://sw-center.st.com/touchgfx/pacman/4.17.0/STM32G071-AIRCON-REMOTE-DEMO/STM32G071-AIRCON-REMOTE-DEMO-back.png

2021-08-17 09:47:02,175 [1] DEBUG TouchGFXDomainModel.Texts.TextManager: Loaded 318 fonts

2021-08-17 09:47:02,648 [1] ERROR TouchGFXDomainModel.LoadSave.Excel.ExcelHandler: Object reference not set to an instance of an object.

System.NullReferenceException: Object reference not set to an instance of an object.

  at TouchGFXDomainModel.LoadSave.Excel.ExcelHandler.Parse(IWorkbook wb)

2021-08-17 09:47:02,652 [1] ERROR TouchGFXDomainModel.LoadSave.LoadSave: Object reference not set to an instance of an object.

System.NullReferenceException: Object reference not set to an instance of an object.

  at TouchGFXDomainModel.LoadSave.Excel.ExcelHandler.Parse(IWorkbook wb)

  at TouchGFXDomainModel.LoadSave.Excel.ExcelReader.ReadWorkbook(String file, List`1 fonts)

  at TouchGFXDomainModel.LoadSave.Excel.TextDB.ReadFromExcelFile(String path)

  at TouchGFXDomainModel.LoadSave.Serial.FromSerial.Convert(SerialApplication a)

  at TouchGFXDomainModel.LoadSave.Serial.FromSerial.Convert(SerialModel m)

  at TouchGFXDomainModel.LoadSave.LoadSave.LoadDotTouchgfx(String filename)

  at TouchGFXDomainModel.LoadSave.LoadSave.Load(String filename)

2021-08-17 09:47:16,844 [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 TouchGFXDesigner.Main.MainWindowViewModel.InitializeFeatureGroupsWhenCreatingNewProject()

  at TouchGFXDesigner.Main.MainWindowViewModel.LoadApplication(LoadApplicationEvent loadApplicationEvent)

  at ApplicationEvents.ApplicationEvent.Raise[T](T args)

  at TouchGFXDesigner.Main.MainWindowViewModel.ViewLoaded(FileInfo file)

  at TouchGFXDesigner.Main.MainWindow.MainView_OnLoaded(Object sender, RoutedEventArgs e)

  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.RaiseEvent(RoutedEventArgs e)

  at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)

  at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)

  at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()

  at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

  at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)

  at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)

  at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)

  at System.Windows.Interop.HwndTarget.OnResize()

  at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)

  at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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)

Please help..

1 ACCEPTED SOLUTION

Accepted Solutions
NUDEM
Associate II

hello Romain, After I changed the language settings, I didn't get any errors again.

View solution in original post

4 REPLIES 4
Alexandre RENOUX
Principal

Hello NUDEM,

It seems that according to this line "2021-08-17 09:46:56,499 [11] ERROR TouchGFXPackages.Implementation.FileDownloader: Failed to download", your download of the Aircon Demo project was unsuccessful.

Have you tried on another computer or to select another application ?

/Alexandre

Romain DIELEMAN
ST Employee

Hi,

Are you still facing this issue ? Did changing the language and regional settings from Turkish to English in Win10 as you wrote in your other post solve this issue as well ?

/Romain

NUDEM
Associate II

hello Romain, After I changed the language settings, I didn't get any errors again.

Good to hear :thumbs_up:

/Romain