Error reported when run Chrono::VEHICLE demo: "demo_VEH_SCMTerrain_WheeledVehicle"

114 views
Skip to first unread message

ychen_441

unread,
Aug 30, 2024, 8:07:27 AM8/30/24
to ProjectChrono

Lovely colleagues,

I met the following error reported after I tried to run "demo_VEH_SCMTerrain_WheeledVehicle" provided in "/bin" folder:

--------------------------------------------------------------------------------------------------------------------------------------

Copyright (c) 2017 projectchrono.org
Chrono version: 9.0.1
demo_VEH_SCMTerrain_WheeledVehicle: /home/chen/chrono/src/chrono_thirdparty/HACDv2/dgVector.h:345: dgBigVector::dgBigVector(hacd::HaF64, hacd::HaF64, hacd::HaF64, hacd::HaF64): Assertion `((isfinite((*this)[0]) && !isnan((*this)[0])) && (isfinite((*this)[1]) && !isnan((*this)[1])) && (isfinite((*this)[2]) && !isnan((*this)[2])) && (isfinite((*this)[3]) && !isnan((*this)[3])))' failed.
Aborted (core dumped)

--------------------------------------------------------------------------------------------------------------------------------------

Nothing weird happened when I ran SCM demos of rigid wheel and tracked vehicle.
Any solution to this issue? Thx :D

Chen

Radu Serban

unread,
Aug 30, 2024, 11:19:18 AM8/30/24
to ProjectChrono

Hi Chen,

 

I am unable to reproduce this issue (on Windows or on Linux).

 

You have to provide more details and information, especially for this type of issues:

  • What OS are you using? What compiler and compiler version?
  • What Chrono modules did you enable during CMake configuration?
  • Do you get any errors/warnings during CMake configuration? Anything during build?
  • Please provide the CMakeCache.txt and the output from CMake during configuration.

 

--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/17d0c864-e73e-4fb6-9b4a-2c124ca53e27n%40googlegroups.com.

Message has been deleted

Deniz Tanyildiz

unread,
Sep 2, 2024, 2:07:07 AM9/2/24
to ProjectChrono
Hi Radu,

I face the same issue on a Linux machine in Debug configuration. When I compile the code in Release, the issue doesn't exist.
Kind regards,
Deniz

ychen_441

unread,
Sep 2, 2024, 6:40:07 AM9/2/24
to ProjectChrono
Updates:

Thanks for Deniz's message, I switch the "CMAKE_BUILD_TYPE " in ccmake from the default to "Release", and everything is going smooth now!

That's indeed something I ignored when I did the configuration, my bad :P

Appreciates to Radu and Deniz, wish you the best cuppa morning coffee when you see this.

Best,
Chen

ychen_441

unread,
Sep 2, 2024, 6:43:37 AM9/2/24
to ProjectChrono
BTW I just found that the message is posted only if I ticked "reply to all", and I sent the first message which answered Radu's questions by "reply to the author".

I think that's why I can't see it here! Sorry for messing up your mailbox Radu.

Chen

Radu Serban

unread,
Sep 3, 2024, 5:12:18 AM9/3/24
to ProjectChrono

Hi Chen and Deniz,

 

I should have noticed that this was a debug assertion failing and test a Debug build. Thanks for pointing this out, Deniz! I can confirm that I get the same behavior.

 

Having said that, this is something that should be further investigated and fixed. The problem occurs in the third-party library HACDv2 (for convex decomposition). Stepping through the code with a debugger should help identify the underlying issue. I will look into this when I have some time; but that may not be for a while, so if you want to take a crack at it, that would be greatly appreciated.

Reply all
Reply to author
Forward
0 new messages