How to debug irrlicht.dll?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

How to debug irrlicht.dll?

Post by pera »

I have a nasty crash that I can not resolve.

debugging throws error in crtexe.c function __tmainCRTStartup

First-chance exception at 0xfeeefeee in GameExample.exe: 0xC0000005: Access violation reading location 0xfeeefeee.

callstack indicated some irrlicht.dll functions has been called.

Crash happens when player kills the monster, and the node is deleted.
I suppose someone tries to use the node after that, but not directly from my code. Maybe some collision animator or something like that.

So how do I debug irrlicht.dll, do I have to build it from source? Can it be done in VS2010?

Thanks.
CuteAlien
Admin
Posts: 10012
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Yes, you have to build it from source selecting the debug build. Usually it's easy as all you have to do is opening the project file and just compile it. But we have not VS2010 project file so far, maybe importing the older project files will work, but I haven't found time yet to test it myself.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

Cannot open include file: 'd3dx9shader.h': No such file or directory
Cannot open include file: 'd3dx9tex.h': No such file or directory
Cannot open include file: 'd3d8.h': No such file or directory
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

I don't see download link on that german page, and i tried downloading several direct sdks, but something is always missing. Which one is good one? Tutorial page for irrlicht compiling has broken links. If anyone can point me to lib and header zip that would be nifty.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

pera wrote:I don't see download link on that german page
there is the link on the left side, right below the downloads count...
it says "GRATIS DOWNLOAD" and below that is a link to "Server 1"... ;)
ATM I'm not sure if DX8 is included to that sdk, but I think so...
anyways it's probably a good idea to disable DX8 in Irrlicht as it's obsolete if you have DX9... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

And success!

debug irrlicht.dll lead me to exact spot of my big bad crash.

IAnimatedSceneNode.cpp:
LoopCallBack->OnAnimationEnd(this);

called on removed node.

Thanks everyone.
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

when I use irrlicht debug dll (1.6) I get memory leak in visual studio on close.

when I use release irrlicht, no.

does that mean memory leak is in irrlicht code?
CuteAlien
Admin
Posts: 10012
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

We don't know about memory-leak, although that certainly doesn't mean we have none. But without code to reproduce it we can't tell.

I think you will get a memory-leak if you close the console window instead of the application window so maybe you did that?
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

No. But since its 1.6 I think it doesn't matter anymore.
I'll check it once again when I move to latest irrlicht version.
And I can try with hello world example when I get home.
Post Reply