Run error - debug assertion failed!
File : f:\dd\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp
Line: 52
Expression: _BLOCK_TYPE_IS_INVALID(pHead->nBlockUse)
I compiled ok when I modified the sconstruct script to not use /WX for compiling and now this error when running cafu.exe. Then this next error if I ignore the first error:
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1322
Expression: _CrtIsValidHeapPointer(pUserData)
And then a very similar to the first error if I ignore again but a different file. Then one more ignore and crash. Any ideas?
Line: 52
Expression: _BLOCK_TYPE_IS_INVALID(pHead->nBlockUse)
I compiled ok when I modified the sconstruct script to not use /WX for compiling and now this error when running cafu.exe. Then this next error if I ignore the first error:
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line: 1322
Expression: _CrtIsValidHeapPointer(pUserData)
And then a very similar to the first error if I ignore again but a different file. Then one more ignore and crash. Any ideas?
Re: Run error - debug assertion failed!
Hi,
welcome to the Cafu forums!
welcome to the Cafu forums!
- Which compiler do you use?
- Which OS? 32 bit or 64 bit?
- Which version of Cafu do you use (svn? r210?)
- Why did you remove /WX ?
- When and where do these errors occur? (e.g. right after program start, when loading a map, ...)
Best regards,
Carsten
Carsten
Re: Run error - debug assertion failed!
Ok, Hi! Thanks for the welcome!
32-bit win xp sp3
r210
I took out the/WX because it stopped compilation.
vstudio 10.0 (non-express) vc10.0
error occurs right at start of program
32-bit win xp sp3
r210
I took out the/WX because it stopped compilation.
vstudio 10.0 (non-express) vc10.0
error occurs right at start of program
Re: Run error - debug assertion failed!
Ok, thanks for providing the info.
All Cafu code is written to compile with no warnings. The fact that you get one seems to indicate that something is wrong, which in turn might be the cause of the problems at runtime.
Can you please provide the related details?drwbns wrote:I took out the/WX because it stopped compilation.
All Cafu code is written to compile with no warnings. The fact that you get one seems to indicate that something is wrong, which in turn might be the cause of the problems at runtime.
Best regards,
Carsten
Carsten
Re: Run error - debug assertion failed!
Ok, for r210 I'll rebuild with /WX and get back to you. since then, I've tried to build the new dev trunk release and got this error, maybe you can help with that too.
Loader_fbx.cpp(742) error C2511 : LoaderFbxT::LoaderFbxT(const std::string &) : overloaded member function not found in 'LoaderFbxT'
Loader_fbx.cpp(742) error C2511 : LoaderFbxT::LoaderFbxT(const std::string &) : overloaded member function not found in 'LoaderFbxT'
Re: Run error - debug assertion failed!
The error for r210 is in vc\include\xstring on line 1448. Error is c2220 warning treated as error. No object file generated.
xtring(1448)Warning c4715: 'std::basic_string<char,std::char_traits<char>,std::allocator<char> > ::operator[]' not all control paths return a value
xtring(1448)Warning c4715: 'std::basic_string<char,std::char_traits<char>,std::allocator<char> > ::operator[]' not all control paths return a value
Re: Run error - debug assertion failed!
Sorry, I think I modified the xstring file for a different project that was producing compile errors. I'm verifying it now. Thanks for the help so far.
Re: Run error - debug assertion failed!
I think scons isn't building any renderer dll or sound dll like the binary release of cafu has. Did I miss something in the setup, or is that normal that scons doesn't build them? What should I do?
Re: Run error - debug assertion failed!
Here's my log after copying the renderer dlls from the r240 binary release.
Cafu Engine, Mar 20 2011
cannot open config.lua: No such file or directory
Warning: Failed to open ZIP archive Games/DeathMatch/Textures/TechDemo.zip
Warning: Failed to open ZIP archive Games/DeathMatch/Textures/SkyDomes.zip
Scanning cwd for all available renderers...
./RendererARBprogs.dll ... SUCCESS - first supported renderer (Pref# 2200).
./RendererCgARB1.dll ... SUCCESS - but no higher preference (Pref# 2100).
./RendererCgNV2X.dll ... FAILED - renderer says it's not supported.
./RendererNull.dll ... SUCCESS - but excluded from auto-selection (Pref# 1).
./RendererOpenGL12.dll ... SUCCESS - but no higher preference (Pref# 1000).
Reloading previously auto-selected renderer ./RendererARBprogs.dll ...
Scanning cwd for all available sound systems...
./SoundSysFMOD3.dll ... SUCCESS - first supported sound system (Pref# 1000).
./SoundSysNull.dll ... SUCCESS - but excluded from auto-selection (Pref# 1).
./SoundSysOpenAL.dll ... SUCCESS - higher preference sound system (Pref# 1500).
Reloading previously auto-selected sound system ./SoundSysOpenAL.dll ...
and then a crash at startup. "an error has occurent in cafu.exe and needs to close"
What now?
Cafu Engine, Mar 20 2011
cannot open config.lua: No such file or directory
Warning: Failed to open ZIP archive Games/DeathMatch/Textures/TechDemo.zip
Warning: Failed to open ZIP archive Games/DeathMatch/Textures/SkyDomes.zip
Scanning cwd for all available renderers...
./RendererARBprogs.dll ... SUCCESS - first supported renderer (Pref# 2200).
./RendererCgARB1.dll ... SUCCESS - but no higher preference (Pref# 2100).
./RendererCgNV2X.dll ... FAILED - renderer says it's not supported.
./RendererNull.dll ... SUCCESS - but excluded from auto-selection (Pref# 1).
./RendererOpenGL12.dll ... SUCCESS - but no higher preference (Pref# 1000).
Reloading previously auto-selected renderer ./RendererARBprogs.dll ...
Scanning cwd for all available sound systems...
./SoundSysFMOD3.dll ... SUCCESS - first supported sound system (Pref# 1000).
./SoundSysNull.dll ... SUCCESS - but excluded from auto-selection (Pref# 1).
./SoundSysOpenAL.dll ... SUCCESS - higher preference sound system (Pref# 1500).
Reloading previously auto-selected sound system ./SoundSysOpenAL.dll ...
and then a crash at startup. "an error has occurent in cafu.exe and needs to close"
What now?
Re: Run error - debug assertion failed!
Hi drwbns,
please don't copy renderers from one release to the next. It can work, but it might introduce problems that are hard to diagnose as well.
About the svn trunk, I'm sorry, the head revision was indeed broken at the time you initially checked out -- I've fixed them now, please run
As you said, the problem with r210 seemed to be related to your MS SDK header files -- if you revert them to vendor version, this should work as well. (Scons might not properly recognize changes in the system headers (MS SDK) properly though, and thus possibly not automatically rebuild files that need to be rebuild. If in doubt, to be sure, please restart from scratch.)
SCons does build the renderers by default, so in summary, you should now be able to build both r210 as well as svn head as documented.
please don't copy renderers from one release to the next. It can work, but it might introduce problems that are hard to diagnose as well.
About the svn trunk, I'm sorry, the head revision was indeed broken at the time you initially checked out -- I've fixed them now, please run
svn update
and re-start SCons.As you said, the problem with r210 seemed to be related to your MS SDK header files -- if you revert them to vendor version, this should work as well. (Scons might not properly recognize changes in the system headers (MS SDK) properly though, and thus possibly not automatically rebuild files that need to be rebuild. If in doubt, to be sure, please restart from scratch.)
SCons does build the renderers by default, so in summary, you should now be able to build both r210 as well as svn head as documented.
Best regards,
Carsten
Carsten
Re: Run error - debug assertion failed!
Hey, thanks for the reply! I indeed got scons to run properly without warnings or errors after reverting my edited MS xstring file (oops!) but then I reran scons and it finished building r210 but it didn't build the dlls (renderer, sound, etc). That's when I had tried to put the r240 dlls with it and then ended with the crash. So, anyways. I've now deleted everything but the r240 binary release and I'm going to try a fresh rebuild of both versions. I'm checking out the latest revision as I type and I'll get back to you with the build results. Thanks for the support!
Re: Run error - debug assertion failed!
No joy, I'm still getting the above error for latest trunk revision 283. I'm going to try the stable release again and post here.drwbns wrote:Ok, for r210 I'll rebuild with /WX and get back to you. since then, I've tried to build the new dev trunk release and got this error, maybe you can help with that too.
Loader_fbx.cpp(742) error C2511 : LoaderFbxT::LoaderFbxT(const std::string &) : overloaded member function not found in 'LoaderFbxT'
Picture of error:
http://img198.imageshack.us/img198/5192/62803331.jpg
Re: Run error - debug assertion failed!
Ok, so the dll files do indeed build (or get copied, e.g. OpenAL32, wrap_oal.dll, cg.dll, cgGL.dll). The copying of files was confusing me because they're modified dates are in the past. I also had to copy the cafu.exe to the top level folder(the one with the dlls) in order for it to start without complaining about the renderer not being found and such(dll files). Is it normal that I had to manually copy it to the correct directory? (It wasn't mentioned as a step from what I remember from the getting started guide, right?if not, maybe it should be added to it, or even a build step for scons to do after compiling).I then had to extract textures and worlds.zip to their respective directories and all is well for r210!
Although I have a few questions... is physics implemented in r210? I don't notice any physics while playing.And why are my FPS so low? (25fps) Is this normal? I also couldn't change the video mode for some reason. I hit apply and nothing happens. Also, what's the changelog from 210 to the current dev version? Any major differences?
Although I have a few questions... is physics implemented in r210? I don't notice any physics while playing.And why are my FPS so low? (25fps) Is this normal? I also couldn't change the video mode for some reason. I hit apply and nothing happens. Also, what's the changelog from 210 to the current dev version? Any major differences?
Re: Run error - debug assertion failed!
Please double-check your working copy -- the code mentioned in the error message is not contained in r283 (or later) any more, so I guess that something didn't update properly.drwbns wrote:I'm still getting the above error for latest trunk revision 283.
Please see http://www.cafu.de/wiki/cppdev:gettings ... w_programsdrwbns wrote:I also had to copy the cafu.exe to the top level folder(the one with the dlls) in order for it to start without complaining about the renderer not being found and such(dll files). Is it normal that I had to manually copy it to the correct directory? (It wasn't mentioned as a step from what I remember from the getting started guide, right?if not, maybe it should be added to it, or even a build step for scons to do after compiling).
Ok, thanks for letting me know.I then had to extract textures and worlds.zip to their respective directories and all is well for r210!
In limited form, yes. Please see the crate example in map Kidney.Although I have a few questions... is physics implemented in r210? I don't notice any physics while playing.
Depending on the details of your system hardware, yes.And why are my FPS so low? (25fps) Is this normal?
Also see http://www.cafu.de/wiki/general:faqs_us ... improve_it for additional information.
The new video mode is activated on program restart.I also couldn't change the video mode for some reason. I hit apply and nothing happens.
Please see http://trac.cafu.de/timeline and/or http://trac.cafu.de/log/cafu/trunkAlso, what's the changelog from 210 to the current dev version? Any major differences?
Best regards,
Carsten
Carsten
Re: Run error - debug assertion failed!
It looks like 283 is now building correctly.(fbx loader problem in a previous release- I think SDK was missing). I see you've updated again. Thanks for all your well documented install guides and the questions you answered!
Who is online
Users browsing this forum: No registered users and 6 guests