assertion error when running demos

unclepauly

07-09-2006 16:42:04

hello,

can someone please tell me why i get an assertion when i try to run the demos? they all build fine. i get 2 different errors dpending on which build i run. i am running the exe from explorer, from my ogresdk directory.

the error from the debug version is:

Assertion Failed!
Program: C:\OgreSDK\bin\debug\OgreOdeDemo_Landscape.exe
File: d:\ogredev\dagon\ogremain\src\ogrelogmanager.cpp
Line: 40
Expression: ms_Singleton

the error from the release version is:

The exception unknown software exception (0xc000000d) occured in the application at location 0x78138890


i appreciate any help here...

thanks!

tuan kuranes

23-09-2006 13:09:32

seems you do not have correct exe-dll linkage. rebuild you exe against the dll you currently use.
(if you installed ogre SDK 1.2.3 lately, for instance, you have to rebuild ogreode.)

krc1793

06-02-2007 05:33:28

I've been attempting to compile the demos for a little over a week. I started with a licensed copy of VC7.1, then moved to CodeBlocks, and finally, last night, decided to plunge into VC8 C++ 2005 Express.

Tonight, I was able to apply the lessons provided [url=http://msdn.microsoft.com/vstudio/expre http://msdn.microsoft.com/vstudio/expre ... usingpsdk/] here to successfully batch compile the version of OgreODE installed from Tuan's site using OgreOde_SourceSDK_Setup.exe. Then, when I tried to run the three demo programs, I encountered the assertion errors described by unclepauly. After fumbling around for several hours trying to delete and recompile piece-wise portions of the programs,

I decided to start from scratch following this sequence:
  1. I deleted OgreSDK and OgreODE from my hard disk[/list:u]
    1. I reinstalled and batch built OgreSDK from OgreSDKSetup1.2.5_VC80.exe using the supplied Samples_vc8.sln script. Completed without incident. Successfully ran OgreSDK demos.[/list:u]
      1. I reinstalled and batch built OgreODE from OgreOde_SourceSDK_Setup.exe using the supplied OgreOde_Source.sln script. Completed without incident. [/list:u]

        While I am not receiving any compile/link errors or, in fact, the assertion errors that originally bothered me, the OgreODE demos still will not run. They attempt to start, but fail -- most frequently with the error "argument not a space c:\ogreode\ode\ode\src\collision.cpp:689"

        This "not a space" error occurred while trying to open the "Simple Scenes" and "Landscape" demos. The "GranTurismOgre" demo fails in a different manner -- the car floats down from above, as usual, only it "wafts" like a hovercraft; once in position, the car is unaffected by the keyboard input while the direction arrows still cause the camera to sway in/out and back/forth.

        Has anyone else noticed this odd behavior? I'm glad to say that I am finally able to compile the OgreODE demos, but what else is going on? Have I forgotten a simple step along the way?

gugus

06-02-2007 09:00:29

I had this probleme.To solve it,i downloaded the last Ogre version and i redownloaded and recompiled OgreOde.

krc1793

06-02-2007 23:54:07

@gugus, can you verify for me? Which problem was fixed -- the assertion errors or the "argument not a space" errors?

I'm willing to recompile, but I'm unclear how this would help. After downloading the most recent copy of OgreSDK and OgreODE last night, I built them within one half-hour of each other. Are you suggesting I download them again and build once more using the same process as before? If I follow the same process, shouldn't I expect the same result?

@tuan, when you mention the exe-dll linkage, I do not understand. Is it my ogreode_d.dll ? A Windows .exe? Can you clarify? When you say "rebuild the exe against the dll you currently use", what I'm hearing you say is that I need to batch build again the demos I build last night, only against a new dll -- but I haven't changed dll's since last night when I compiled them in the first place. Yes?

krc1793

08-02-2007 02:07:25

Trying to rush through a compile after a night's rest (Clean and Rebuild) now to the point where receiving the MSVCRT.lib error.

Went to each project file where this error occurred and under "Properties -- Linker -- Input -- Ignore Specific Library" entered "msvcrt.lib".

Started batch build. Returned from work to find all build successful. Noted that even though ODE had been rebuilt as part of OgreODE project, the library and runtime files in OgreSDK had not received the fresh (2/7/2007) copies but were still using copies compiled earlier (2/5/2007).

Removed the ode.dll from OgreSDK\bin\debug and OgreSDK\bin\release and replaced them with the fresh copies from OgreODE\ode\lib\debugdll\ and OgreODE\ode\lib\releasedll\

Removed the ode.lib from OgreSDK\lib\ and replaced it with the fresher copy from OgreODE\ode\lib\releaselib\ -- cleaned and rebuilt the OgreODE samples. Both debug and release samples of OgreODE demos work.

Question 1 -- Can someone elaborate on whether this last step was required? I'm wondering whether my problems would have been fixed at the point I put a newly compiled ode.dll into the runtime debug and release directories?

Question 2 -- the demo samples for the debug versions seem to be running on molasses even though the frame rate is between 50-100 fps. Is this normal? Release versions run at full speed and frame rates up to 200 fps.