2025-04-10 6:30 PM
touchgfx simulator error
After installing touchgfx 4.24.0 - 4.25.0 version, the example file is loaded and compiled, but the simulator does not work and an error occurs.
The OS environment is Windows 10.
I even formatted my PC to solve the problem.
I also reinstalled Microsoft Visual C++ 2022 Redistributable.
Below is the error logging list.
Run Simulator
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Compile
make -f simulator/gcc/Makefile -j8
Reading ./application.config
Reading ./target.config
Compiling gui/src/main_screen/MainPresenter.cpp
Compiling gui/src/main_screen/MainView.cpp
Compiling gui/src/model/Model.cpp
Compiling gui/src/common/FrontendApplication.cpp
Compiling generated/gui_generated/src/main_screen/MainViewBase.cpp
Compiling generated/gui_generated/src/common/FrontendApplicationBase.cpp
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
Compiling generated/simulator/src/video/SoftwareMJPEGDecoder.cpp
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/main_screen/MainPresenter.o' failed
make[2]: *** [build/MINGW32_NT-6.2/gui/src/main_screen/MainPresenter.o] Error 1
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/main_screen/MainView.o' failed
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [build/MINGW32_NT-6.2/gui/src/main_screen/MainView.o] Error 1
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
Compiling generated/simulator/src/mainBase.cpp
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/model/Model.o' failed
make[2]: *** [build/MINGW32_NT-6.2/gui/src/model/Model.o] Error 1
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
make[2]: *** [build/MINGW32_NT-6.2/gui/src/common/FrontendApplication.o] Error 1
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/gui/src/common/FrontendApplication.o' failed
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/generated/gui_generated/src/main_screen/MainViewBase.o' failed
make[2]: *** [build/MINGW32_NT-6.2/generated/gui_generated/src/main_screen/MainViewBase.o] Error 1
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/generated/gui_generated/src/common/FrontendApplicationBase.o' failed
make[2]: *** [build/MINGW32_NT-6.2/generated/gui_generated/src/common/FrontendApplicationBase.o] Error 1
make[2]: *** [build/MINGW32_NT-6.2/generated/simulator/src/video/SoftwareMJPEGDecoder.o] Error 1
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/generated/simulator/src/video/SoftwareMJPEGDecoder.o' failed
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
C:\TouchGFX\4.25.0\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
generated/simulator/gcc/Makefile:196: recipe for target 'build/MINGW32_NT-6.2/generated/simulator/src/mainBase.o' failed
make[2]: *** [build/MINGW32_NT-6.2/generated/simulator/src/mainBase.o] Error 1
make[1]: *** [generate_assets] Error 2
generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
make: *** [all] Error 2
simulator/gcc/Makefile:32: recipe for target 'all' failed
Failed
Failed
I don't think I'm the only one having this problem. Can someone tell me the cause?
2025-04-11 12:08 AM
Hello @djkim,
First could you please format the error message by inserting it as code sample so it's readable ?
BR,
2025-04-11 4:00 AM - edited 2025-04-11 4:26 AM
@djkim it seems a memory issue on your machine.
Try running it as administrator or, if you have some specific antivirus software that block memory allocation, try disabling them.
I would also try to compile with fewer parallel jobs (change -j8 to -j4 or -j2) in Config -> Build
2025-04-12 4:57 AM
The same thing happens when I run touchgfx 4.25.0 on my personal laptop and home PC. It compiles, but errors occur when I run the simulator, run, and target. The same thing happens when I test multiple boards. The log file below is a simple example file that I loaded and ran as a simulator.
2025-04-12 5:03 AM
Touchgfx 4.25.0 is the same when I run it on my personal laptop and home PC. It compiles, but errors occur in the simulator, run, and target. It's the same even when I test multiple boards. The log file below is the result of a simple example file that I loaded and failed in the simulator.
1) Run with administrator rights.
2) If you have antivirus software, try disabling it.
3) Change -j8 to -j4 or -j2 in Config -> Build.
It's the same.