Windows Application Error - Template Project fails to run

88 views
Skip to first unread message

Nate Roiger

unread,
Sep 29, 2021, 9:33:35 PM9/29/21
to ProjectChrono
Using the precompiled windows binaries for Project Chrono 6.0.0 and following the brief install tutorial (https://api.projectchrono.org/tutorial_install_project.html) using the template_project, cmake, and release build - running myexe.exe results in an Application Error "The application was unable to start correctly (0xc0000142). Click OK to close the application."

Anyone aware of any on going issues, or how I can debug this further?

Nate Roiger

unread,
Sep 29, 2021, 11:09:39 PM9/29/21
to ProjectChrono
Built from source and the same error occurs for all demo projects. I'm clearly missing something.

Windows logs the fault in ChronoEngine.dll

Faulting application name: demo_CH_buildsystem.exe, version: 0.0.0.0, time stamp: 0x61551faf
Faulting module name: ChronoEngine.dll, version: 0.0.0.0, time stamp: 0x61551f9b
Exception code: 0xc000001d
Fault offset: 0x000000000000f012
Faulting process id: 0x388c
Faulting application start time: 0x01d7b5a7698d920c
Faulting application path: C:\workspace\chrono-build\bin\Release\demo_CH_buildsystem.exe
Faulting module path: C:\workspace\chrono-build\bin\Release\ChronoEngine.dll


Radu Serban

unread,
Sep 30, 2021, 3:15:48 AM9/30/21
to nro...@gmail.com, ProjectChrono

Hi Nate,

 

This does not look like a Chrono issue.  A Goggle search shows several potential causes.

 

Maybe #7 (incorrect registry setting for LoadAppInit_DLLs) here:

https://www.repairwin.com/fix-application-was-unable-to-start-correctly-0xc0000142-solved/

 

Or maybe a problem with heap size, as mentioned here:

http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/9102531c-cf60-4682-b014-c11a190b00f1?prof=required

 

--Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/3fcd1d7e-37f4-4b1e-a3d3-6ca3e5c91240n%40googlegroups.com.

Nate Roiger

unread,
Sep 30, 2021, 4:19:15 PM9/30/21
to ProjectChrono
Radu - Thanks for the links - unfortunately neither solution resolved the issue.

I see the exception in the stdlib Hash implementation - the Chrono Engine was configured for AVX2, but that is not supported by my CPU. After changing this to AVX and rebuilding, I'm now able to run the demos. So maybe there's a problem in cmake in identifying the supported processor enhanced instruction set.

For others who encounter this problem - change the AVX2 to AVX in the Chrono Engine Properties / Configuration Properties / C/C++ / Code Generation / Enable Enhanced Instruction Set 

Radu Serban

unread,
Oct 4, 2021, 3:48:35 AM10/4/21
to nro...@gmail.com, ProjectChrono

Nate,

 

This may very well be an issue in our CMake configuration scripts (the tests for supported SIMD level).  Could you please provide more information about your processor as well as the CMake output files (CMakeCache, CMakeOutput, and CMakeError)?

 

Thanks,
Radu

Reply all
Reply to author
Forward
0 new messages