Page 1 of 1

model.exe has encountered a problem and needs to close

Posted: Thu Sep 26, 2013 11:31 am
by soroosh
Hello
I have a problem. I can compile TugOfWar_Complete without any problem(VS 2008). But when I run exe file, rise a problem "exampleMain.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
I can make a simple model whit a ground and block but when I try to Initialize the system, encounter whit this problem.
what should I do??
:?:
Thank you

Re: model.exe has encountered a problem and needs to close

Posted: Sat Oct 05, 2013 7:06 am
by soroosh
I cuold not solve my problem, yet. help!
The opensim example compiled by VS2008 but I can not run it
Image
Thanks

Re: model.exe has encountered a problem and needs to close

Posted: Mon Oct 07, 2013 2:32 pm
by aymanh
Hi,

If you have one installation of OpenSim on your machine, and it was built with the same compiler/VisualStudio version you're using (VisualStudio is very picky and libraries built using one version do not run when linked/invoked using a different version) then the next possible culprit would be failing to locate the dlls on the PATH or failing to locate the .obj file for contact. Can you put a break point at the first line of the program and run/debug to see if the expected dlls are loaded (you'll see their full paths in the output tab of VisualStudio)? If you make it to the first line then it's likely the contact .obj file, if not then it's the PATH or VisualStudio version.

Please let us know how it goes.
-Ayman

Re: model.exe has encountered a problem and needs to close

Posted: Wed Oct 09, 2013 10:33 pm
by soroosh
Thank you Mr.Habib
it seem that there is no problem in dll path.

Code: Select all

		// Initialize the system
		SimTK::State& si = osimModel.initSystem();

		// Define non-zero (defaults are 0) states for the free joint
		CoordinateSet& modelCoordinateSet = osimModel.updCoordinateSet();
  
		// set x-translation value
		modelCoordinateSet[3].setValue(si, blockSideLength);
at this line " modelCoordinateSet[3].setValue(si, blockSideLength);" I have an error and is showed this message
"Unhandled exception at 0x100337b6 in exampleMain.exe: 0xC0000005: Access violation reading location 0x00000014."

Please guide me! thank you
Soroush

Re: model.exe has encountered a problem and needs to close

Posted: Mon Oct 21, 2013 10:50 pm
by soroosh
Hi
I could not figure out my problem. what should i do :?: :!:
Thank's
Soroush

Re: model.exe has encountered a problem and needs to close

Posted: Wed Mar 23, 2016 7:27 pm
by stunnar
Hi,Mr.Habib

I have the same question like Soroosh,

"Unhandled exception at 0x00007ffbd2754dba in exampleMain.exe: 0xC0000005: Access violation reading location 0x0000000000000018."

How to fix it?

Any help would be appreciative!

Re: model.exe has encountered a problem and needs to close

Posted: Thu Mar 24, 2016 1:22 am
by mitkof6
Hi,

I think you are trying to access a coordinate that is out of bound. Check the dimension of the modelCoordinateSet.

Regards