Skip to main content
moredatalesscenter
Associate III
June 22, 2020
Question

Simulator exits prematurely

  • June 22, 2020
  • 15 replies
  • 2571 views

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.

This topic has been closed for replies.

15 replies

Martin KJELDSEN
Principal III
June 22, 2020

Screenshots and logs please :)

moredatalesscenter
Associate III
June 22, 2020

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

Martin KJELDSEN
Principal III
June 22, 2020

%APPDATA%/TouchGFX-4.13.0

Does the designer tell you that an error occured ?

moredatalesscenter
Associate III
June 22, 2020

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
Principal III
June 22, 2020

Windows version?

moredatalesscenter
Associate III
June 22, 2020

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
Principal III
June 22, 2020

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
Principal III
June 22, 2020

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.

moredatalesscenter
Associate III
June 22, 2020

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

moredatalesscenter
Associate III
June 24, 2020

Could you help with other issues our UI engineer has found:-

  1. Cannot export screens as PNG files.
  2. Can simulator rebuild time be optimised?
  3. Can’t add or select already installed font Noto Sans for text typography.
  4. Clickable items have to be buttons. Want to be able to click on text that doesn’t have a border.
Romain DIELEMAN
ST Employee
June 25, 2020

Hi,

What do you mean by export screens as PNG files? What are you aiming to do? Like a screenshot?

For the font issue, what did you try? Where did you "install it"? The documentation might help you handle fonts and textArea widgets..

Anything drawn can be clickable. Have a look at how handleClickEvent works, or at the ClickListener mixin class.

/Romain

moredatalesscenter
Associate III
June 25, 2020

Hi Romain,

1. Yes, for a screenshot of each screen design

3. New OTF fonts installed and useable in other Windows applications. It looks like you only support TTF fonts, which is a showstopper for me.

4. Thanks, will try that