Irrlicht Engine version 1.8.0
Microsoft Windows 7 Enterprise Edition Service Pack 1 (Build 7601)
Using renderer: OpenGL 2.1.0
Intel(R) Q45/Q43 Express Chipset: Intel
OpenGL driver version is 1.2 or better.
GLSL version: 1.2
Resizing window (800 600)
Debugger returns:
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 4768
Program received signal SIGSEGV, Segmentation fault.
At E:\Softwarez\CodeBlocksPortable\Projects\asd\main.cpp:16
Dissasembly:
Code: Select all
0040138C push %ebp
0040138D mov %esp,%ebp
0040138F push %ebx
00401390 and $0xfffffff0,%esp
00401393 sub $0xd0,%esp
00401399 call 0x401e74 <__main>
0040139E movl $0x258,0x34(%esp)
004013A6 movl $0x320,0x38(%esp)
004013AE lea 0x34(%esp),%eax
004013B2 mov %eax,0x8(%esp)
004013B6 lea 0x38(%esp),%eax
004013BA mov %eax,0x4(%esp)
004013BE lea 0x2c(%esp),%eax
004013C2 mov %eax,(%esp)
004013C5 call 0x40214c <irr::core::dimension2d<unsigned int>::dimension2d(unsigned int const&, unsigned int const&)>
004013CA movl $0x0,0x18(%esp)
004013D2 movl $0x0,0x14(%esp)
004013DA movl $0x0,0x10(%esp)
004013E2 movl $0x0,0xc(%esp)
004013EA movl $0x20,0x8(%esp)
004013F2 lea 0x2c(%esp),%eax
004013F6 mov %eax,0x4(%esp)
004013FA movl $0x5,(%esp)
00401401 mov 0x408118,%eax
00401406 call *%eax
00401408 mov %eax,0xcc(%esp)
0040140F mov 0xcc(%esp),%eax
00401416 mov (%eax),%eax
00401418 add $0x3c,%eax
0040141B mov (%eax),%edx
0040141D movl $0x404080,0x4(%esp)
00401425 mov 0xcc(%esp),%eax
0040142C mov %eax,(%esp)
0040142F call *%edx
00401431 mov 0xcc(%esp),%eax
00401438 mov (%eax),%eax
0040143A add $0xc,%eax
0040143D mov (%eax),%edx
0040143F mov 0xcc(%esp),%eax
00401446 mov %eax,(%esp)
00401449 call *%edx
0040144B mov %eax,0xc8(%esp)
00401452 mov 0xcc(%esp),%eax
00401459 mov (%eax),%eax
0040145B add $0x18,%eax
0040145E mov (%eax),%edx
00401460 mov 0xcc(%esp),%eax
00401467 mov %eax,(%esp)
0040146A call *%edx
0040146C mov %eax,0xc4(%esp)
00401473 mov 0xcc(%esp),%eax
0040147A mov (%eax),%eax
0040147C add $0x14,%eax
0040147F mov (%eax),%edx
00401481 mov 0xcc(%esp),%eax
00401488 mov %eax,(%esp)
0040148B call *%edx
0040148D mov %eax,0xc0(%esp)
00401494 mov 0xc0(%esp),%eax
0040149B mov (%eax),%eax
0040149D add $0x90,%eax
004014A2 mov (%eax),%ebx
004014A4 movl $0x37,0x10(%esp)
004014AC movl $0x12c,0xc(%esp)
004014B4 movl $0x28,0x8(%esp)
004014BC movl $0x28,0x4(%esp)
004014C4 lea 0x3c(%esp),%eax
004014C8 mov %eax,(%esp)
004014CB call 0x402230 <irr::core::rect<int>::rect(int, int, int, int)>
004014D0 movl $0x0,0x1c(%esp)
004014D8 movl $0xffffffff,0x18(%esp)
004014E0 movl $0x0,0x14(%esp)
004014E8 movl $0x1,0x10(%esp)
004014F0 movl $0x1,0xc(%esp)
004014F8 lea 0x3c(%esp),%eax
004014FC mov %eax,0x8(%esp)
00401500 movl $0x40409c,0x4(%esp)
00401508 mov 0xc0(%esp),%eax
0040150F mov %eax,(%esp)
00401512 call *%ebx
00401514 mov 0xc4(%esp),%eax
0040151B mov (%eax),%eax
0040151D mov (%eax),%ebx
0040151F movl $0x4040b6,0x4(%esp)
00401527 lea 0x4c(%esp),%eax
0040152B mov %eax,(%esp)
0040152E call 0x402270 <irr::core::string<char, irr::core::irrAllocator<char> >::string<char>(char const*)>
00401533 lea 0x4c(%esp),%eax
00401537 mov %eax,0x4(%esp)
0040153B mov 0xc4(%esp),%eax
00401542 mov %eax,(%esp)
00401545 call *%ebx
00401547 mov %eax,0xbc(%esp)
0040154E lea 0x4c(%esp),%eax
00401552 mov %eax,(%esp)
00401555 call 0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
0040155A mov 0xc4(%esp),%eax
00401561 mov (%eax),%eax
00401563 add $0x24,%eax
00401566 mov (%eax),%ebx
00401568 mov $0x3f800000,%eax
0040156D mov %eax,0xc(%esp)
00401571 mov $0x3f800000,%eax
00401576 mov %eax,0x8(%esp)
0040157A mov $0x3f800000,%eax
0040157F mov %eax,0x4(%esp)
00401583 lea 0x5c(%esp),%eax
00401587 mov %eax,(%esp)
0040158A call 0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
0040158F mov $0x0,%eax
00401594 mov %eax,0xc(%esp)
00401598 mov $0x0,%eax
0040159D mov %eax,0x8(%esp)
004015A1 mov $0x0,%eax
004015A6 mov %eax,0x4(%esp)
004015AA lea 0x68(%esp),%eax
004015AE mov %eax,(%esp)
004015B1 call 0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
004015B6 mov $0x0,%eax
004015BB mov %eax,0xc(%esp)
004015BF mov $0x0,%eax
004015C4 mov %eax,0x8(%esp)
004015C8 mov $0x0,%eax
004015CD mov %eax,0x4(%esp)
004015D1 lea 0x74(%esp),%eax
004015D5 mov %eax,(%esp)
004015D8 call 0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
004015DD movl $0x0,0x1c(%esp)
004015E5 lea 0x5c(%esp),%eax
004015E9 mov %eax,0x18(%esp)
004015ED lea 0x68(%esp),%eax
004015F1 mov %eax,0x14(%esp)
004015F5 lea 0x74(%esp),%eax
004015F9 mov %eax,0x10(%esp)
004015FD movl $0xffffffff,0xc(%esp)
00401605 movl $0x0,0x8(%esp)
0040160D mov 0xbc(%esp),%eax
00401614 mov %eax,0x4(%esp)
00401618 mov 0xc4(%esp),%eax
0040161F mov %eax,(%esp)
00401622 call *%ebx
00401624 mov %eax,0xb8(%esp)
0040162B cmpl $0x0,0xb8(%esp)
00401633 je 0x4016ec <main()+864>
00401639 mov 0xb8(%esp),%eax
00401640 movl $0x0,0x8(%esp)
00401648 movl $0x8,0x4(%esp)
00401650 mov %eax,(%esp)
00401653 call 0x402484 <irr::scene::ISceneNode::setMaterialFlag(irr::video::E_MATERIAL_FLAG, bool)>
00401658 mov 0xb8(%esp),%eax
0040165F mov (%eax),%eax
00401661 add $0xb0,%eax
00401666 mov (%eax),%edx
00401668 movl $0x136,0x8(%esp)
00401670 movl $0x0,0x4(%esp)
00401678 mov 0xb8(%esp),%eax
0040167F mov %eax,(%esp)
00401682 call *%edx
00401684 mov 0xc8(%esp),%eax
0040168B mov (%eax),%eax
0040168D add $0x34,%eax
00401690 mov (%eax),%ebx
00401692 movl $0x4040c7,0x4(%esp)
0040169A lea 0x80(%esp),%eax
004016A1 mov %eax,(%esp)
004016A4 call 0x402270 <irr::core::string<char, irr::core::irrAllocator<char> >::string<char>(char const*)>
004016A9 lea 0x80(%esp),%eax
004016B0 mov %eax,0x4(%esp)
004016B4 mov 0xc8(%esp),%eax
004016BB mov %eax,(%esp)
004016BE call *%ebx
004016C0 mov %eax,%edx
004016C2 mov 0xb8(%esp),%eax
004016C9 mov %edx,0x8(%esp)
004016CD movl $0x0,0x4(%esp)
004016D5 mov %eax,(%esp)
004016D8 call 0x4024f0 <irr::scene::ISceneNode::setMaterialTexture(unsigned int, irr::video::ITexture*)>
004016DD lea 0x80(%esp),%eax
004016E4 mov %eax,(%esp)
004016E7 call 0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
004016EC mov 0xc4(%esp),%eax
004016F3 mov (%eax),%eax
004016F5 add $0x38,%eax
004016F8 mov (%eax),%ebx
004016FA mov $0x0,%eax
004016FF mov %eax,0xc(%esp)
00401703 mov $0x40a00000,%eax
00401708 mov %eax,0x8(%esp)
0040170C mov $0x0,%eax
00401711 mov %eax,0x4(%esp)
00401715 lea 0x90(%esp),%eax
0040171C mov %eax,(%esp)
0040171F call 0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
00401724 mov $0xc2200000,%eax
00401729 mov %eax,0xc(%esp)
0040172D mov $0x41f00000,%eax
00401732 mov %eax,0x8(%esp)
00401736 mov $0x0,%eax
0040173B mov %eax,0x4(%esp)
0040173F lea 0x9c(%esp),%eax
00401746 mov %eax,(%esp)
00401749 call 0x402464 <irr::core::vector3d<float>::vector3d(float, float, float)>
0040174E movl $0x1,0x14(%esp)
00401756 movl $0xffffffff,0x10(%esp)
0040175E lea 0x90(%esp),%eax
00401765 mov %eax,0xc(%esp)
00401769 lea 0x9c(%esp),%eax
00401770 mov %eax,0x8(%esp)
00401774 movl $0x0,0x4(%esp)
0040177C mov 0xc4(%esp),%eax
00401783 mov %eax,(%esp)
00401786 call *%ebx
00401788 jmp 0x40185d <main()+1233>
0040178D mov 0xc8(%esp),%eax
00401794 mov (%eax),%eax
00401796 mov (%eax),%ebx
00401798 lea 0xa8(%esp),%eax
0040179F mov %eax,(%esp)
004017A2 call 0x402558 <irr::video::SExposedVideoData::SExposedVideoData()>
004017A7 movl $0x8c,0x10(%esp)
004017AF movl $0x0,0xc(%esp)
004017B7 movl $0x0,0x8(%esp)
004017BF movl $0xff,0x4(%esp)
004017C7 lea 0xb4(%esp),%eax
004017CE mov %eax,(%esp)
004017D1 call 0x40257c <irr::video::SColor::SColor(irr::u32, irr::u32, irr::u32, irr::u32)>
004017D6 movl $0x0,0x14(%esp)
004017DE lea 0xa8(%esp),%eax
004017E5 mov %eax,0x10(%esp)
004017E9 mov 0xb4(%esp),%eax
004017F0 mov %eax,0xc(%esp)
004017F4 movl $0x1,0x8(%esp)
004017FC movl $0x1,0x4(%esp)
00401804 mov 0xc8(%esp),%eax
0040180B mov %eax,(%esp)
0040180E call *%ebx
00401810 mov 0xc4(%esp),%eax
00401817 mov (%eax),%eax
00401819 add $0xb0,%eax
0040181E mov (%eax),%edx
00401820 mov 0xc4(%esp),%eax
00401827 mov %eax,(%esp)
0040182A call *%edx
0040182C mov 0xc0(%esp),%eax
00401833 mov (%eax),%eax
00401835 mov (%eax),%edx
00401837 mov 0xc0(%esp),%eax
0040183E mov %eax,(%esp)
00401841 call *%edx
00401843 mov 0xc8(%esp),%eax
0040184A mov (%eax),%eax
0040184C add $0x4,%eax
0040184F mov (%eax),%edx
00401851 mov 0xc8(%esp),%eax
00401858 mov %eax,(%esp)
0040185B call *%edx
0040185D mov 0xcc(%esp),%eax
00401864 mov (%eax),%eax
00401866 mov (%eax),%edx
00401868 mov 0xcc(%esp),%eax
0040186F mov %eax,(%esp)
00401872 call *%edx
00401874 test %al,%al
00401876 jne 0x40178d <main()+1025>
0040187C mov 0xcc(%esp),%eax
00401883 mov (%eax),%eax
00401885 sub $0xc,%eax
00401888 mov (%eax),%eax
0040188A add 0xcc(%esp),%eax
00401891 mov %eax,(%esp)
00401894 call 0x402a24 <irr::IReferenceCounted::drop() const>
00401899 mov $0x0,%eax
0040189E mov -0x4(%ebp),%ebx
004018A1 leave
004018A2 ret
004018A3 mov %eax,%ebx
004018A5 lea 0x4c(%esp),%eax
004018A9 mov %eax,(%esp)
004018AC call 0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
004018B1 mov %ebx,%eax
004018B3 mov %eax,(%esp)
004018B6 call 0x40208c <_Unwind_Resume>
004018BB mov %eax,%ebx
004018BD lea 0x80(%esp),%eax
004018C4 mov %eax,(%esp)
004018C7 call 0x4022d8 <irr::core::string<char, irr::core::irrAllocator<char> >::~string()>
004018CC mov %ebx,%eax
004018CE mov %eax,(%esp)
004018D1 call 0x40208c <_Unwind_Resume>
Code: Select all
#include "E:\Softwarez\CodeBlocksPortable\MinGW\include\Irrlicht\irrlicht.h"
using namespace irr;
//*
using namespace core;
using namespace gui;
using namespace video;
using namespace io;
using namespace scene; //*/
int main()
{
IrrlichtDevice *device = createDevice(EDT_OPENGL, dimension2d<u32>(800,600), 32, false, false, false, 0); //Some initialization c0de, creating a window with various options.
(*device).setWindowCaption(L"ZOMG! TITLEZ!"); //Equivalent to device->setWindowCaption... Just don't like the funking arrow operator.
IVideoDriver* driver = (*device).getVideoDriver();
ISceneManager* smgr = (*device).getSceneManager();
IGUIEnvironment* guienv = (*device).getGUIEnvironment();
(*guienv).addStaticText(L"OMFG! TEXTZ!", rect<s32>(40, 40, 300, 55), true);
IAnimatedMesh* mesh = (*smgr).getMesh("media/sydney.md2");
IAnimatedMeshSceneNode* node = (*smgr).addAnimatedMeshSceneNode( mesh );
if( node )
{
(*node).setMaterialFlag(EMF_LIGHTING, false);
(*node).setFrameLoop(0, 310);
(*node).setMaterialTexture(0, (*driver).getTexture("media/sydney.bmp"));
}
(*smgr).addCameraSceneNode(0, vector3df(0,30,-40),vector3df(0,5,0));
while((*device).run())
{
(*driver).beginScene(true,true,SColor(255,0,0,140));
(*smgr).drawAll();
(*guienv).drawAll();
(*driver).endScene();
}
(*device).drop();
return 0;
}
MinGW - GCC 4.6.2
Similar results on GCC 4.7.x under linux (kernel: 3.2.x, as well as 3.6.x i686, tried both)
This is observable with the other renderers as well.