cancel
Showing results for 
Search instead for 
Did you mean: 

An error occurred when creating an example of GFX and importing GUI.

rloveusm
Associate

Dear all

When I generated example of GFX designer, unexpected error has happend.

​TouchGFX Designer-4.18.1 stopped at 88%0693W00000JP58aQAD.png0693W00000JP59eQAD.pngI already tried to uninstall and reinstall but without success. 

And the TouchGFXDesigner.log as follows.

2022-02-09 13:12:13,354 [1] INFO  TouchGFXDesigner.App: Logging configured
2022-02-09 13:12:20,826 [1] INFO  TouchGFXDesigner.Main.MainWindow: Application started
2022-02-09 13:12:20,827 [1] INFO  TouchGFXDesigner.Main.MainWindow: Username: rlove
2022-02-09 13:12:20,827 [1] INFO  TouchGFXDesigner.Main.MainWindow: Designer version: 4.18.1
2022-02-09 13:12:20,828 [1] INFO  TouchGFXDesigner.Main.MainWindow: Designer installation path: D:\TouchGFX\4.18.1\designer
2022-02-09 13:12:20,828 [1] INFO  TouchGFXDesigner.Main.MainWindow: Windows version: Microsoft Windows NT 10.0.19044.0
2022-02-09 13:12:20,828 [1] INFO  TouchGFXDesigner.Main.MainWindow: Current culture: ko-KR
2022-02-09 13:12:20,832 [1] INFO  TouchGFXDesigner.Main.MainWindow: Current culture time seperator: :
2022-02-09 13:12:20,832 [1] INFO  TouchGFXDesigner.Main.MainWindow: Current culture date seperator: -
2022-02-09 13:12:20,836 [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.8.04084 Full 4.8.04084 )  v4.0 (Client 4.0.0.0 )  
2022-02-09 13:12:36,498 [14] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\rlove\AppData\Roaming\TouchGFX-4.18.1\Downloads\STM32H735G-DK\3.0.7\STM32H735G-DK-3.0.7.tpa
2022-02-09 13:12:36,512 [14] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\rlove\AppData\Roaming\TouchGFX-4.18.1\Downloads\ClockExample\2.1.0\ClockExample-2.1.0.tpa
2022-02-09 13:12:36,519 [14] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\rlove\AppData\Roaming\TouchGFX-4.18.1\Downloads\STM32H735G-DK\3.0.7\STM32H735G-DK-3.0.7.tpa
2022-02-09 13:12:36,827 [14] DEBUG TouchGFXPackages.Implementation.TouchGFXPackageStream: Filestream opened on C:\Users\rlove\AppData\Roaming\TouchGFX-4.18.1\Downloads\ClockExample\2.1.0\ClockExample-2.1.0.tpa
2022-02-09 13:12:37,128 [14] DEBUG TouchGFXDomainModel.Texts.TextManager: Loaded 342 fonts
2022-02-09 13:12:38,340 [14] ERROR TouchGFXDomainModel.LoadSave.LoadSave: TMP is not writable: C:/Users/rlove/AppData/Local/Temp
TEMP is not writable: C:/Users/rlove/AppData/Local/Temp
system temporary path is not writable: C:/Users/rlove/AppData/Local/Temp
TMP is not writable: C:/Users/rlove/AppData/Local/Temp
TEMP is not writable: C:/Users/rlove/AppData/Local/Temp
system temporary path is not writable: C:/Users/rlove/AppData/Local/Temp
 
System.Exception: TMP is not writable: C:/Users/rlove/AppData/Local/Temp
TEMP is not writable: C:/Users/rlove/AppData/Local/Temp
system temporary path is not writable: C:/Users/rlove/AppData/Local/Temp
TMP is not writable: C:/Users/rlove/AppData/Local/Temp
TEMP is not writable: C:/Users/rlove/AppData/Local/Temp
system temporary path is not writable: C:/Users/rlove/AppData/Local/Temp
 
   at TouchGFXDomainModel.LoadSave.Update.Update4170To4180.ConvertExcelToXml(String pathToTextConverter, String pathToExcelFile, String pathToXmlFile)
   at TouchGFXDomainModel.LoadSave.Update.Update4170To4180.Run()
   at TouchGFXDomainModel.LoadSave.Update.UpdateSerial.Update4170To4180(String serial4170, String projectPath)
   at TouchGFXDomainModel.LoadSave.Update.UpdateSerial.Update(String jsonString, String projectPath)
   at TouchGFXDomainModel.LoadSave.Update.UpdateSerial.Run(String path)
   at TouchGFXDomainModel.LoadSave.LoadSave.LoadDotTouchgfx(String filename)
   at TouchGFXDomainModel.LoadSave.LoadSave.Load(String filename)
2022-02-09 13:12:38,351 [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 TouchGFXPackages.ImportExport.ImportGui.Import()
   at TouchGFXPackages.Implementation.PackageManager.CombineAtAndUi(TouchGFXPackage tgui, TouchGFXPackage tgat, String projectPath, String applicationName, Int32 height, Int32 width, ColorDepth selectedColorDepth, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.<>c__DisplayClass5_0.<CombinePackagesAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.CombinePackagesAsync(ApplicationCombineConfig applicationConfig, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreatorOperation.Create(ApplicationCombineConfig applicationConfig, IProgress`1 progressPercentage)
   at TouchGFXDesigner.Main.Lobby.ApplicationCreator.ApplicationCreatorViewModel.CreateApplication(Object obj)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)
   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 REPLY 1
Yoann KLEIN
ST Employee

Hi rloveusm,

Seems that you don't got the permission to write in your TMP folder (C:/Users/rlove/AppData/Local/Temp).

Can you please check your rights permissions on that folder ?

Otherwise, if it still doesn't work, please try to run TouchGFXDesigner as an administrator.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX