Promo
04-04-2008 15:52:40
Hello all,
I seem to be unable to load any TriangleMeshShape nor ConvexShape. I tried the easiest possible test, that is, adding the following line to the (previously functioning) Cake:
or also
No matter what I try, I always get a core dump with the following backtrace:
Has anyone ever been able to use a convex or trianglemesh shape in nxogre under linux?
I've got the following environment:
NxOgre (NxOgre 0.9-38.Debug) Started, working with:
- PhysX => 2.7.2
- Ogre => 1.4.3 'Eihort'
- Platform => Linux Debug
Thanks in advance for your input..
I seem to be unable to load any TriangleMeshShape nor ConvexShape. I tried the easiest possible test, that is, adding the following line to the (previously functioning) Cake:
mScene->createBody("testcyl.mesh", new ConvexShape("testcyl.mesh"), Vector3(6,2.5f,0), "mass: 10");
or also
mScene->createBody("testcyl.mesh", new TriangleMeshShape("testcyl.mesh"), Vector3(6,2.5f,0), "static: yes");
No matter what I try, I always get a core dump with the following backtrace:
Mesh: Loading testcyl.mesh.
*** glibc detected *** ./cakebox: double free or corruption (!prev): 0x084e8608 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7596d65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb759a800]
/lib/tls/i686/cmov/libc.so.6(fclose+0x134)[0xb75856f4]
/usr/lib/libNxOgre.so(_ZN10UserStreamD1Ev+0x39)[0xb78f914d]
/usr/lib/libNxOgre.so(_ZN6NxOgre32NxGenerateConvexMeshFromOgreMeshERKSsP7NxScene6NxVec3S1_+0x9eb)[0xb78b1b99]
/usr/lib/libNxOgre.so(_ZN6NxOgre11ConvexShape23_bindToActorDescriptionEPNS_5ActorEjR7NxArrayIP11NxShapeDesc18NxAllocatorDefaultE+0x286)[0xb78fded4]
/usr/lib/libNxOgre.so(_ZN6NxOgre5Actor12_createActorEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x34c)[0xb78c7452]
/usr/lib/libNxOgre.so(_ZN6NxOgre5ActorC2ERKSsPNS_5SceneEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0xa2c)[0xb78c92e2]
/usr/lib/libNxOgre.so(_ZN6NxOgre4BodyC1ERKSsPNS_5SceneEPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x5c)[0xb792483c]
/usr/lib/libNxOgre.so(_ZN6NxOgre5Scene10createBodyERKSsPNS_14ShapeBlueprintERKNS_4PoseENS_11ActorParamsE+0x7d)[0xb792afe1]
./cakebox[0x806c061]
./cakebox[0x8056f1f]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7543050]
./cakebox(__gxx_personality_v0+0x239)[0x804fbf1]
======= Memory map: ========
08048000-0807c000 r-xp 00000000 08:02 27885737 /home/promo/dev/nxogre/0.9/NxOgre/tutorials/cakebox
0807c000-0807d000 rw-p 00034000 08:02 27885737 /home/promo/dev/nxogre/0.9/NxOgre/tutorials/cakebox
0807d000-08589000 rw-p 0807d000 00:00 0 [heap]
b4900000-b4921000 rw-p b4900000 00:00 0
b4921000-b4a00000 ---p b4921000 00:00 0
b4a7d000-b4a7e000 ---p b4a7d000 00:00 0
b4a7e000-b527e000 rwxp b4a7e000 00:00 0
b527e000-b5509000 r-xp 00000000 08:02 21972474 /usr/lib/PhysX/v2.7.2/libPhysXCore.so.1
b5509000-b5514000 rw-p 0028b000 08:02 21972474 /usr/lib/PhysX/v2.7.2/libPhysXCore.so.1
b5514000-b5619000 rw-p b5514000 00:00 0
b5619000-b5819000 rw-s 0d1a0000 00:0e 18293 /dev/nvidia0
b599b000-b5a9c000 rw-p b599b000 00:00 0
b5a9c000-b5aa0000 r-xp 00000000 08:02 21480761 /usr/lib/libXfixes.so.3.1.0
b5aa0000-b5aa1000 rw-p 00003000 08:02 21480761 /usr/lib/libXfixes.so.3.1.0
b5aa1000-b5aa9000 r-xp 00000000 08:02 21480751 /usr/lib/libXcursor.so.1.0.2
b5aa9000-b5aaa000 rw-p 00007000 08:02 21480751 /usr/lib/libXcursor.so.1.0.2
b5abc000-b5bbd000 rw-p b5abc000 00:00 0
b5bbd000-b5bfe000 rw-s e368c000 00:0e 18293 /dev/nvidia0
b5bfe000-b5cfe000 rw-s 0e7f2000 00:0e 18293 /dev/nvidia0
b5cfe000-b5d03000 rw-s 19ba9000 00:0e 18293 /dev/nvidia0
b5d03000-b6385000 rw-s 246d7000 00:0e 18293 /dev/nvidia0
b6385000-b63a9000 rw-p b6385000 00:00 0
b63a9000-b63aa000 rw-s 00000000 00:09 10780719 /SYSV00000000 (deleted)
b63aa000-b63eb000 rw-p b63aa000 00:00 0
b63eb000-b6446000 rw-p 00000000 00:0e 2914 /dev/zero
b6447000-b6448000 rw-s 00000000 00:09 20086863 /SYSV00000000 (deleted)
b6448000-b646a000 rw-p b6448000 00:00 0
b646a000-b6488000 rw-s 00000000 00:09 0 /SYSV00000000 (deleted)
b6488000-b64d1000 r-xp 00000000 08:02 21629306 /usr/lib/OGRE/Plugin_OctreeSceneManager.so
b64d1000-b64d3000 rw-p 00049000 08:02 21629306 /usr/lib/OGRE/Plugin_OctreeSceneManager.so
b64d3000-b6510000 r-xp 00000000 08:02 21629307 /usr/lib/OGRE/Plugin_ParticleFX.so
b6510000-b6512000 rw-p 0003d000 08:02 21629307 /usr/lib/OGRE/Plugin_ParticleFX.so
b6512000-b656d000 rw-p b6512000 00:00 0
b656d000-b6574000 r-xp 00000000 08:02 21480781 /usr/lib/libXrender.so.1.3.0
b6574000-b6575000 rw-p 00006000 08:02 21480781 /usr/lib/libXrender.so.1.3.0
b6575000-b6576000 r-xp 00000000 08:02 21659753 /usr/lib/tls/libnvidia-tls.so.100.14.19
b6576000-b6577000 rw-p 00000000 08:02 21659753 /usr/lib/tls/libnvidia-tls.so.100.14.19
b6577000-b6ed3000 r-xp 00000000 08:02 21482585 /usr/lib/libGLcore.so.100.14.19
b6ed3000-b6f0b000 rwxp 0095c000 08:02 21482585 /usr/lib/libGLcore.so.100.14.19
b6f0b000-b6f0f000 rwxp b6f0b000 00:00 0
b6f0f000-b6f13000 r-xp 00000000 08:02 21480795 /usr/lib/libXxf86vm.so.1.0.0
b6f13000-b6f14000 rw-p 00003000 08:02 21480795 /usr/lib/libXxf86vm.so.1.0.0
b6f14000-b6f19000 r-xp 00000000 0Aborted (core dumped)
Has anyone ever been able to use a convex or trianglemesh shape in nxogre under linux?
I've got the following environment:
NxOgre (NxOgre 0.9-38.Debug) Started, working with:
- PhysX => 2.7.2
- Ogre => 1.4.3 'Eihort'
- Platform => Linux Debug
Thanks in advance for your input..