cancel
Showing results for 
Search instead for 
Did you mean: 

Simulator exits prematurely

Hello, if I create a partial project from CubeMX, open it in TouchGFX designer, add a button and run the simulator, nothing happens. The simulator executable is built correctly, but it exits immediately with no errors reported.

15 REPLIES 15
Martin KJELDSEN
Chief III

Screenshots and logs please :)

Where are the logs located? There's nothing to take a screenshot of.

Martin KJELDSEN
Chief III

%APPDATA%/TouchGFX-4.13.0

Does the designer tell you that an error occured ?

The Windows Event Log indicates:-

Faulting application name: simulator.exe, version: 0.0.0.0, time stamp: 0x5ef0b0dc

Faulting module name: dgapi.dll, version: 7.5.2.54, time stamp: 0x5d7fb4a8

Exception code: 0xc0000005

Fault offset: 0x00030cad

Faulting process id: 0x7f10

Faulting application start time: 0x01d648985da4ed13

Faulting application path: Src\build\bin\simulator.exe

Faulting module path: c:\windows\system32\dgapi.dll

Report Id: c5223111-826e-469d-9052-a9de149abf38

Faulting package full name: 

Faulting package-relative application ID: 

Martin KJELDSEN
Chief III

Windows version?

Windows 10. No error reported by designer. The log suggests a problem downloading a package. Is there a way to specify proxy server configuration?

Martin KJELDSEN
Chief III

I've never seen this issue before but i'm seeing a lot of activity on various sites about generally faulting dgapi.dll in Windows.

Martin KJELDSEN
Chief III

Designer uses the system proxy information, and that may be a blocker for downloading packages - BUT, it should not be a problem here if you're already at the compiling stage. You could try running the simulator outside of the designer.

Go to the application folder from a TouchGFX Environment and type

make -f simulator/gcc/Makefile
./build/bin/simulator.exe

See if you get the same error.

The simulator runs fine on my personal laptop which does not have dgapi.dll. This is on all our corporate machines and cannot be removed - is there any way around it?

Building outside Designer is not working:-

make.exe -f simulator/gcc/Makefile

process_begin: CreateProcess(NULL, ruby ../Middlewares/ST/touchgfx/framework/tools/textconvert/main.rb assets/texts/texts.xlsx ../Middlewares/ST/touchgfx/framework/tools/fontconvert/build/win/fontconvert.out generated/fonts generated/texts assets/fonts ., ...) failed.

make (e=2): The system cannot find the file specified.

generated/simulator/gcc/Makefile:219: recipe for target 'texts' failed

make[1]: *** [texts] Error 2

simulator/gcc/Makefile:32: recipe for target 'all' failed

make: *** [all] Error 2