2019-10-19 02:00 PM
When I try to create a project for a Discovery Kit or open the online application in TouchGFX Designer, the "Downloading Application Template" and "Downloading GUI" slowly reach 100% and then this error screen is displayed:
/*
Sorry - something unexpected has happened which caused an error to occur in the Designer.
For more information, see the log file located at: C:\Users\User\AppData\Roaming\TouchGFX-4.12.3\TouchGFXDesigner.log
Please consider reporting this bug and steps to reproduce it at the TouchGFX Help Center so it can be fixed in a future version.
You can find the Help Center here: http://support.touchgfx.com
Error: Värde får inte vara null.
Parameternamn: stream
*/
It appears to give the same error whichever board I choose and any Demo template. Same for both My Applications and Online Applications.
Looking in the referenced log file I find this:
[1] ERROR TouchGFXDesigner.App: Värde får inte vara null.
Parameternamn: stream
System.ArgumentNullException: Värde får inte vara null.
Parameternamn: stream
vid System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding)
vid TouchGFXPackages.PackageManager.Unpack(TouchGFXPackage touchGFXPackage, String projectPath, String applicationName, Action`2 progress)
vid TouchGFXPackages.PackageManager.CombineAtAndUi(TouchGFXPackage tgui, TouchGFXPackage tgat, String projectPath, String applicationName, Int32 height, Int32 width, ColorDepth selectedColorDepth, Action`2 progress)
vid TouchGFXDesigner.Main.StartupWindow.MyApplications.CreateNewApplicationViewModel.b__0()
vid System.Threading.Tasks.Task`1.InnerInvoke()
vid System.Threading.Tasks.Task.Execute()
--- **** på stackspårningen från föregående plats där ett undantag utlöstes ---
vid System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
vid TouchGFXDesigner.Main.StartupWindow.MyApplications.CreateNewApplicationViewModel.d__81.MoveNext()
--- **** på stackspårningen från föregående plats där ett undantag utlöstes ---
vid System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
vid System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
vid TouchGFXDesigner.Main.StartupWindow.MyApplications.CreateNewApplicationViewModel.d__44.MoveNext()
--- **** på stackspårningen från föregående plats där ett undantag utlöstes ---
vid System.Runtime.CompilerServices.AsyncMethodBuilderCore.b__6_0(Object state)
vid System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
vid System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2019-10-21 02:14 AM
Hi,
Something could've happened in the download of the file. Try deleting your %APPDATA%/TouchGFX-4.12.3\Downloads folder - This will force a re-download. You could also just delete the package in question from that folder.
/Martin