- This topic has 2 replies, 3 voices, and was last updated 5 years, 10 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › There is an exception error to execute SofaPhysicsAP! Why?
Tagged: 64_bits, SOFA_1706, vs2015, Windows_10
When I executed the ‘main’ function of the SofaPhysicsAPI module, I got the following exception error:
Unhandled exception at 0x00007FFBDFA87788 in SofaPhysicsAPI_d.exe: Microsoft C ++ exception: std :: bad_alloc at memory location 0x00000085DF2FD070.
Exceptional places are as follows:
==================================
SofaPhysicsSimulation :: SofaPhysicsSimulation (bool useGUI_, int GUIFramerate_)
: useGUI (useGUI_)
, GUIFramerate (GUIFramerate_)
{
sofa :: helper :: init ();
static bool first = true;
...
sofa :: core :: ObjectFactory :: AddAlias ("VisualModel", "OglModel", true,
& classVisualModel); // Exceptional error here? do not know why?
...
}
Can anyone tell me why? Thanks!
int main(int argc, char *argv[])
{
const char* defaultScene="xml/newEye.scn";
...
mainSimulation = new SofaPhysicsSimulation;
...
glutMainLoop();
return 0;
}
Hi,
I am sorry I am no expert from the SofaPhysicsAPI module.
The error clearly comes from wrong memory access. Are you deleting at a point the mainSimulation ?
Sorry for not being helpful on this.
Best
Hugo
Hi BennyYan,
Same as Hugo, I have never used the SofaPhysicsAPI.
As this seems related to c++ coding maybe opening a bug issue in the
github bugtracker is the way to go as more SOFA developers are consulting it
(compared to the forum)
https://github.com/sofa-framework/sofa/issues
Regards,
Damien
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.