IrrBullet UNHANDLED exception !

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
zapada
Posts: 4
Joined: Mon Oct 29, 2012 10:09 am

IrrBullet UNHANDLED exception !

Post by zapada »

Hey there ! Today i just restart to use Irrlicht and Irrbullet together :P and i can't get over an error.

This is the code:

Code: Select all

 
#include <irrlicht.h>
#include <irrbullet.h>
 
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
int main(void)
{
 
IrrlichtDevice* device = createDevice(EDT_OPENGL,dimension2d<u32>(800,600),false,false,false,0);
ISceneManager* smgr = device->getSceneManager();
IVideoDriver* driver = device->getVideoDriver();
 
->>>>>>>>>>>>>>irrBulletWorld* world = createIrrBulletWorld(device,false,false);<-------------
 
while(device->run())
{
driver->beginScene(true,true,SColor(100,100,100,100));
 
driver->endScene();
}
}
 
everything is working excelent(using nodes, creating stuff with irrlicht) but when the compiler is touching the irrBulletWorld line it's getting me an unhandled exception.I have no errors when i compile (on debug or release), i have wrote the libraries in Linker in order.It's everything in order except this error:

Code: Select all

Unhandled exception at 0x101671c0 in IrrGame2.exe: 0xC0000005: Access violation reading location 0xffffffff.
I'm using Visual c++ 2008
Irrlicht 1.8
Irrbullet 0.1.8
zerochen
Posts: 273
Joined: Wed Jan 07, 2009 1:17 am
Location: Germany

Re: IrrBullet UNHANDLED exception !

Post by zerochen »

hard to say. have you tried to recompile irrBullet with irrlicht 1.8?
zapada
Posts: 4
Joined: Mon Oct 29, 2012 10:09 am

Re: IrrBullet UNHANDLED exception !

Post by zapada »

Recompile,clear,compile again with Irrlicht 1.8.I also tried with Irrlicht 1.7.3 and Irrbullet 0.1.71 (and nothing happend).I wrote that code on a laptop (dell Inspiron 2200) and my pc.
jaworekplay
Posts: 36
Joined: Mon Jan 23, 2012 11:14 pm
Location: Lancs, UK

Re: IrrBullet UNHANDLED exception !

Post by jaworekplay »

Seems to me that irrbullet is using some of the functions in irrlicht device that are not working. Try when debugging step into function and follow the compiler moves. Hope that helps.
Abraxas)
Posts: 227
Joined: Sun Oct 18, 2009 7:24 am

Re: IrrBullet UNHANDLED exception !

Post by Abraxas) »

Agreed the error sounds like a bad pointer trying to read memory that doesn't exist
jaworekplay
Posts: 36
Joined: Mon Jan 23, 2012 11:14 pm
Location: Lancs, UK

Re: IrrBullet UNHANDLED exception !

Post by jaworekplay »

A quick question could you post what are the constructor options for the irrBullet? Maybe you need to create the device with params ? As in

Code: Select all

SIrrlichtCreationParameters
?
Lloiso
Posts: 1
Joined: Fri May 17, 2013 7:12 am

Re: IrrBullet UNHANDLED exception !

Post by Lloiso »

There is no solution here, so I thought anyone having this error might want to know.
The problem here is Irrlicht 1.8, code is perfectly fine. See the Versioninfo.txt in irrBullet directory:
irrBullet Version: 0.1.71
Bullet Version: 2.75-2.77(2.77 included)
Irrlicht Version: 1.6.1, 1.7, 1.7.1, 1.7.2
Irrlicht 1.7.3 works as well (currently I did not have any errors with it. I didn't use irrBullet engine extensively so far, so I can't confirm everything will be just as nice in future).
Hope that helps.
Post Reply