Blender crashes, if using P to run the .blend #26775

Closed
opened 2011-04-04 10:58:23 +02:00 by Peter K.H. Gragert · 14 comments

Duplicates: #27475 #27029

%%%Hallo,
I got the .blend from http://www.funkboxing.com/wordpress/?p=267
Running self compiled trunc SVN 35924 (about) W32 (Vista)
The following happens:
sometimes the GE does its work after pressing P (just loading and pressing P)
If a working GE is stopped by ESC and then P it crashes
NO ERROMESSAGE in a command box given after a crash (very sorry = bad)

What MOSTLY works: Right clicking the Ring in the front left lower window then a left click around the middel of the screen
the object starts walking ...

And another example behaves nearly the same coming from: http://blenderartists.org/forum/showthread.php?199191-BRIK-ragdolls-Now-an-addon-with-video-tracker-and-wiki-page.&p=1823829#post1823829 : Rag_Test_35900_example.blend%%%

**Duplicates**: #27475 #27029 %%%Hallo, I got the .blend from http://www.funkboxing.com/wordpress/?p=267 Running self compiled trunc SVN 35924 (about) W32 (Vista) The following happens: sometimes the GE does its work after pressing P (just loading and pressing P) If a working GE is stopped by ESC and then P it crashes NO ERROMESSAGE in a command box given after a crash (very sorry = bad) What MOSTLY works: Right clicking the Ring in the front left lower window then a left click around the middel of the screen the object starts walking ... And another example behaves nearly the same coming from: http://blenderartists.org/forum/showthread.php?199191-BRIK-ragdolls-Now-an-addon-with-video-tracker-and-wiki-page.&p=1823829#post1823829 : Rag_Test_35900_example.blend%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%Confirmed, crash in Bullet:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000020efd6930
0x0000000100ab6d55 in btUnionFind::find (this=0x1153dbdc8, x=-1) at btUnionFind.h:113
113 m_elements- [x].m_id = elementPtr->m_id;
(gdb) bt

  • 0 0x0000000100ab6d55 in btUnionFind::find (this=0x1153dbdc8, x=-1) at btUnionFind.h:113
  • 1 0x0000000100ab6da1 in btUnionFind::unite (this=0x1153dbdc8, p=-1, q=-1) at btUnionFind.h:83
  • 2 0x0000000100ab41af in btDiscreteDynamicsWorld::calculateSimulationIslands (this=0x1153dbb80) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp:731
  • 3 0x0000000100ab51bd in btDiscreteDynamicsWorld::internalSingleStepSimulation (this=0x1153dbb80, timeStep=0.00833333377) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp:320
  • 4 0x0000000100aef685 in btSoftRigidDynamicsWorld::internalSingleStepSimulation (this=0x1153dbb80, timeStep=0.00833333377) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp:94
  • 5 0x0000000100ab57ed in btDiscreteDynamicsWorld::stepSimulation (this=0x1153dbb80, timeStep=0.0166666675, maxSubSteps=25, fixedTimeStep=0.00833333377) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp:281
  • 6 0x00000001008ca8e9 in CcdPhysicsEnvironment::proceedDeltaTime (this=0x1153c9a00, curTime=0.20079662005106608, timeStep=0.0166666675, interval=0.0166666675) at /Users/brecht/dev/blender-2.5/blender/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:594
  • 7 0x000000010096cfe7 in KX_KetsjiEngine::NextFrame (this=0x118105900) at /Users/brecht/dev/blender-2.5/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp:665
  • 8 0x00000001008795f7 in StartKetsjiShell (C=0x102a11bb8, ar=0x118237808, cam_frame=0x7fff5fbff090, always_use_expand_framing=1) at /Users/brecht/dev/blender-2.5/blender/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp:432
  • 9 0x000000010011cc9f in game_engine_exec (C=0x102a11bb8, op=0x118034738) at /Users/brecht/dev/blender-2.5/blender/source/blender/editors/space_view3d/view3d_view.c:1837
  • 10 0x00000001000203ae in wm_operator_invoke (C=0x102a11bb8, ot=0x115334d08, event=0x118034698, properties=0x1182080f8, reports=0x0, poll_only=0) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:695
  • 11 0x0000000100021737 in wm_handler_operator_call (C=0x102a11bb8, handlers=0x118237910, handler=0x118354a58, event=0x118034698, properties=0x1182080f8) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:1247
  • 12 0x0000000100021e54 in wm_handlers_do (C=0x102a11bb8, event=0x118034698, handlers=0x118237910) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:1476
  • 13 0x0000000100022b1f in wm_event_do_handlers (C=0x102a11bb8) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:1806
  • 14 0x000000010001b873 in WM_main (C=0x102a11bb8) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm.c:347
  • 15 0x000000010001b068 in main (argc=2, argv=0x7fff5fbff3f0) at /Users/brecht/dev/blender-2.5/blender/source/creator/creator.c:1296
    %%%
%%%Confirmed, crash in Bullet: Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x000000020efd6930 0x0000000100ab6d55 in btUnionFind::find (this=0x1153dbdc8, x=-1) at btUnionFind.h:113 113 m_elements- [x].m_id = elementPtr->m_id; (gdb) bt - 0 0x0000000100ab6d55 in btUnionFind::find (this=0x1153dbdc8, x=-1) at btUnionFind.h:113 - 1 0x0000000100ab6da1 in btUnionFind::unite (this=0x1153dbdc8, p=-1, q=-1) at btUnionFind.h:83 - 2 0x0000000100ab41af in btDiscreteDynamicsWorld::calculateSimulationIslands (this=0x1153dbb80) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp:731 - 3 0x0000000100ab51bd in btDiscreteDynamicsWorld::internalSingleStepSimulation (this=0x1153dbb80, timeStep=0.00833333377) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp:320 - 4 0x0000000100aef685 in btSoftRigidDynamicsWorld::internalSingleStepSimulation (this=0x1153dbb80, timeStep=0.00833333377) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletSoftBody/btSoftRigidDynamicsWorld.cpp:94 - 5 0x0000000100ab57ed in btDiscreteDynamicsWorld::stepSimulation (this=0x1153dbb80, timeStep=0.0166666675, maxSubSteps=25, fixedTimeStep=0.00833333377) at /Users/brecht/dev/blender-2.5/blender/extern/bullet2/src/BulletDynamics/Dynamics/btDiscreteDynamicsWorld.cpp:281 - 6 0x00000001008ca8e9 in CcdPhysicsEnvironment::proceedDeltaTime (this=0x1153c9a00, curTime=0.20079662005106608, timeStep=0.0166666675, interval=0.0166666675) at /Users/brecht/dev/blender-2.5/blender/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp:594 - 7 0x000000010096cfe7 in KX_KetsjiEngine::NextFrame (this=0x118105900) at /Users/brecht/dev/blender-2.5/blender/source/gameengine/Ketsji/KX_KetsjiEngine.cpp:665 - 8 0x00000001008795f7 in StartKetsjiShell (C=0x102a11bb8, ar=0x118237808, cam_frame=0x7fff5fbff090, always_use_expand_framing=1) at /Users/brecht/dev/blender-2.5/blender/source/gameengine/BlenderRoutines/BL_KetsjiEmbedStart.cpp:432 - 9 0x000000010011cc9f in game_engine_exec (C=0x102a11bb8, op=0x118034738) at /Users/brecht/dev/blender-2.5/blender/source/blender/editors/space_view3d/view3d_view.c:1837 - 10 0x00000001000203ae in wm_operator_invoke (C=0x102a11bb8, ot=0x115334d08, event=0x118034698, properties=0x1182080f8, reports=0x0, poll_only=0) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:695 - 11 0x0000000100021737 in wm_handler_operator_call (C=0x102a11bb8, handlers=0x118237910, handler=0x118354a58, event=0x118034698, properties=0x1182080f8) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:1247 - 12 0x0000000100021e54 in wm_handlers_do (C=0x102a11bb8, event=0x118034698, handlers=0x118237910) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:1476 - 13 0x0000000100022b1f in wm_event_do_handlers (C=0x102a11bb8) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm_event_system.c:1806 - 14 0x000000010001b873 in WM_main (C=0x102a11bb8) at /Users/brecht/dev/blender-2.5/blender/source/blender/windowmanager/intern/wm.c:347 - 15 0x000000010001b068 in main (argc=2, argv=0x7fff5fbff3f0) at /Users/brecht/dev/blender-2.5/blender/source/creator/creator.c:1296 %%%

%%%If this helps: valgrind output.

17615== Conditional jump or move depends on uninitialised value(s)

17615== at 0x10886C4: void btSetMax(float&, float const&) (btMinMax.h:52)

17615== by 0x108850B: btVector3::setMax(btVector3 const&) (btVector3.h:311)

17615== by 0x10A37CE: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:62)

17615== by 0x10A3B54: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:186)

17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217)

17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242)

17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299)

17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070)

17615== Uninitialised value was created by a stack allocation

17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182)

17615

17615== Conditional jump or move depends on uninitialised value(s)

17615== at 0x10886F8: void btSetMin(float&, float const&) (btMinMax.h:43)

17615== by 0x1088585: btVector3::setMin(btVector3 const&) (btVector3.h:321)

17615== by 0x10A37E1: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:63)

17615== by 0x10A3B54: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:186)

17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217)

17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242)

17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299)

17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070)

17615== Uninitialised value was created by a stack allocation

17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182)

17615

17615== Conditional jump or move depends on uninitialised value(s)

17615== at 0x10886C4: void btSetMax(float&, float const&) (btMinMax.h:52)

17615== by 0x108850B: btVector3::setMax(btVector3 const&) (btVector3.h:311)

17615== by 0x10A37CE: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:62)

17615== by 0x10A3BA1: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:192)

17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217)

17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242)

17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299)

17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070)

17615== Uninitialised value was created by a stack allocation

17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182)

17615

17615== Conditional jump or move depends on uninitialised value(s)

17615== at 0x10886F8: void btSetMin(float&, float const&) (btMinMax.h:43)

17615== by 0x1088585: btVector3::setMin(btVector3 const&) (btVector3.h:321)

17615== by 0x10A37E1: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:63)

17615== by 0x10A3BA1: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:192)

17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217)

17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242)

17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299)

17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921)

17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125)

17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070)

17615== Uninitialised value was created by a stack allocation

17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182)

17615

Blender Game Engine Started

17615== Invalid read of size 4

17615== at 0x10CC80B: btUnionFind::find(int) (btUnionFind.h:113)

17615== by 0x10CC74B: btUnionFind::unite(int, int) (btUnionFind.h:83)

17615== by 0x10C9CC7: btDiscreteDynamicsWorld::calculateSimulationIslands() (btDiscreteDynamicsWorld.cpp:731)

17615== by 0x10C87B1: btDiscreteDynamicsWorld::internalSingleStepSimulation(float) (btDiscreteDynamicsWorld.cpp:320)

17615== by 0x1101AD5: btSoftRigidDynamicsWorld::internalSingleStepSimulation(float) (btSoftRigidDynamicsWorld.cpp:94)

17615== by 0x10C8639: btDiscreteDynamicsWorld::stepSimulation(float, int, float) (btDiscreteDynamicsWorld.cpp:281)

17615== by 0xF283AB: CcdPhysicsEnvironment::proceedDeltaTime(double, float, float) (CcdPhysicsEnvironment.cpp:594)

17615== by 0xF9F7C0: KX_KetsjiEngine::NextFrame() (KX_KetsjiEngine.cpp:665)

17615== by 0xED3853: StartKetsjiShell (BL_KetsjiEmbedStart.cpp:432)

17615== by 0x8CC824: game_engine_exec (view3d_view.c:1837)

17615== by 0x7F0D13: wm_operator_invoke (wm_event_system.c:695)

17615== by 0x7F20D0: wm_handler_operator_call (wm_event_system.c:1247)

17615== Address 0xa4598bb0 is not stack'd, malloc'd or (recently) free'd

17615

17615

17615== Process terminating with default action of signal 11 (SIGSEGV)

17615== Access not within mapped region at address 0xA4598BB0

17615== at 0x10CC80B: btUnionFind::find(int) (btUnionFind.h:113)

17615== by 0x10CC74B: btUnionFind::unite(int, int) (btUnionFind.h:83)

17615== by 0x10C9CC7: btDiscreteDynamicsWorld::calculateSimulationIslands() (btDiscreteDynamicsWorld.cpp:731)

17615== by 0x10C87B1: btDiscreteDynamicsWorld::internalSingleStepSimulation(float) (btDiscreteDynamicsWorld.cpp:320)

17615== by 0x1101AD5: btSoftRigidDynamicsWorld::internalSingleStepSimulation(float) (btSoftRigidDynamicsWorld.cpp:94)

17615== by 0x10C8639: btDiscreteDynamicsWorld::stepSimulation(float, int, float) (btDiscreteDynamicsWorld.cpp:281)

17615== by 0xF283AB: CcdPhysicsEnvironment::proceedDeltaTime(double, float, float) (CcdPhysicsEnvironment.cpp:594)

17615== by 0xF9F7C0: KX_KetsjiEngine::NextFrame() (KX_KetsjiEngine.cpp:665)

17615== by 0xED3853: StartKetsjiShell (BL_KetsjiEmbedStart.cpp:432)

17615== by 0x8CC824: game_engine_exec (view3d_view.c:1837)

17615== by 0x7F0D13: wm_operator_invoke (wm_event_system.c:695)

17615== by 0x7F20D0: wm_handler_operator_call (wm_event_system.c:1247)

17615== If you believe this happened as a result of a stack

17615== overflow in your program's main thread (unlikely but

17615== possible), you can try to increase the size of the

17615== main thread stack using the --main-stacksize= flag.

17615== The main thread stack size used in this run was 8388608.

17615

17615== HEAP SUMMARY:

17615== in use at exit: 63,424,141 bytes in 164,234 blocks

17615== total heap usage: 562,922 allocs, 398,688 frees, 119,256,011 bytes allocated

17615

17615== LEAK SUMMARY:

17615== definitely lost: 196 bytes in 2 blocks

17615== indirectly lost: 0 bytes in 0 blocks

17615== possibly lost: 45,763,411 bytes in 52,116 blocks

17615== still reachable: 17,660,534 bytes in 112,116 blocks

17615== suppressed: 0 bytes in 0 blocks

17615== Rerun with --leak-check=full to see details of leaked memory

17615

17615== For counts of detected and suppressed errors, rerun with: -v

17615== ERROR SUMMARY: 45346 errors from 6 contexts (suppressed: 36 from 11)

%%%

%%%If this helps: valgrind output. ## 17615== Conditional jump or move depends on uninitialised value(s) ## 17615== at 0x10886C4: void btSetMax<float>(float&, float const&) (btMinMax.h:52) ## 17615== by 0x108850B: btVector3::setMax(btVector3 const&) (btVector3.h:311) ## 17615== by 0x10A37CE: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:62) ## 17615== by 0x10A3B54: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:186) ## 17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217) ## 17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242) ## 17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299) ## 17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070) ## 17615== Uninitialised value was created by a stack allocation ## 17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182) ## 17615 ## 17615== Conditional jump or move depends on uninitialised value(s) ## 17615== at 0x10886F8: void btSetMin<float>(float&, float const&) (btMinMax.h:43) ## 17615== by 0x1088585: btVector3::setMin(btVector3 const&) (btVector3.h:321) ## 17615== by 0x10A37E1: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:63) ## 17615== by 0x10A3B54: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:186) ## 17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217) ## 17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242) ## 17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299) ## 17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070) ## 17615== Uninitialised value was created by a stack allocation ## 17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182) ## 17615 ## 17615== Conditional jump or move depends on uninitialised value(s) ## 17615== at 0x10886C4: void btSetMax<float>(float&, float const&) (btMinMax.h:52) ## 17615== by 0x108850B: btVector3::setMax(btVector3 const&) (btVector3.h:311) ## 17615== by 0x10A37CE: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:62) ## 17615== by 0x10A3BA1: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:192) ## 17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217) ## 17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242) ## 17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299) ## 17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070) ## 17615== Uninitialised value was created by a stack allocation ## 17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182) ## 17615 ## 17615== Conditional jump or move depends on uninitialised value(s) ## 17615== at 0x10886F8: void btSetMin<float>(float&, float const&) (btMinMax.h:43) ## 17615== by 0x1088585: btVector3::setMin(btVector3 const&) (btVector3.h:321) ## 17615== by 0x10A37E1: bt_quantize_clamp(unsigned short*, btVector3 const&, btVector3 const&, btVector3 const&, btVector3 const&) (btQuantization.h:63) ## 17615== by 0x10A3BA1: btQuantizedBvhTree::setNodeBound(int, btAABB const&) (btGImpactQuantizedBvh.h:192) ## 17615== by 0x10A1A4A: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:217) ## 17615== by 0x10A1B3F: btQuantizedBvhTree::build_tree(GIM_BVH_DATA_ARRAY&) (btGImpactQuantizedBvh.cpp:242) ## 17615== by 0x10A1D90: btGImpactQuantizedBvh::buildSet() (btGImpactQuantizedBvh.cpp:299) ## 17615== by 0xF4E45D: btGImpactShapeInterface::calcLocalAABB() (btGImpactShape.h:93) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0x10A5D8F: btGImpactMeshShape::calcLocalAABB() (btGImpactShape.h:921) ## 17615== by 0xF4E5E5: btGImpactShapeInterface::updateBound() (btGImpactShape.h:125) ## 17615== by 0xF4B4EA: CcdShapeConstructionInfo::CreateBulletShape(float, bool, bool) (CcdPhysicsController.cpp:2070) ## 17615== Uninitialised value was created by a stack allocation ## 17615== at 0x10A18D8: btQuantizedBvhTree::_build_sub_tree(GIM_BVH_DATA_ARRAY&, int, int) (btGImpactQuantizedBvh.cpp:182) ## 17615 Blender Game Engine Started ## 17615== Invalid read of size 4 ## 17615== at 0x10CC80B: btUnionFind::find(int) (btUnionFind.h:113) ## 17615== by 0x10CC74B: btUnionFind::unite(int, int) (btUnionFind.h:83) ## 17615== by 0x10C9CC7: btDiscreteDynamicsWorld::calculateSimulationIslands() (btDiscreteDynamicsWorld.cpp:731) ## 17615== by 0x10C87B1: btDiscreteDynamicsWorld::internalSingleStepSimulation(float) (btDiscreteDynamicsWorld.cpp:320) ## 17615== by 0x1101AD5: btSoftRigidDynamicsWorld::internalSingleStepSimulation(float) (btSoftRigidDynamicsWorld.cpp:94) ## 17615== by 0x10C8639: btDiscreteDynamicsWorld::stepSimulation(float, int, float) (btDiscreteDynamicsWorld.cpp:281) ## 17615== by 0xF283AB: CcdPhysicsEnvironment::proceedDeltaTime(double, float, float) (CcdPhysicsEnvironment.cpp:594) ## 17615== by 0xF9F7C0: KX_KetsjiEngine::NextFrame() (KX_KetsjiEngine.cpp:665) ## 17615== by 0xED3853: StartKetsjiShell (BL_KetsjiEmbedStart.cpp:432) ## 17615== by 0x8CC824: game_engine_exec (view3d_view.c:1837) ## 17615== by 0x7F0D13: wm_operator_invoke (wm_event_system.c:695) ## 17615== by 0x7F20D0: wm_handler_operator_call (wm_event_system.c:1247) ## 17615== Address 0xa4598bb0 is not stack'd, malloc'd or (recently) free'd ## 17615 ## 17615 ## 17615== Process terminating with default action of signal 11 (SIGSEGV) ## 17615== Access not within mapped region at address 0xA4598BB0 ## 17615== at 0x10CC80B: btUnionFind::find(int) (btUnionFind.h:113) ## 17615== by 0x10CC74B: btUnionFind::unite(int, int) (btUnionFind.h:83) ## 17615== by 0x10C9CC7: btDiscreteDynamicsWorld::calculateSimulationIslands() (btDiscreteDynamicsWorld.cpp:731) ## 17615== by 0x10C87B1: btDiscreteDynamicsWorld::internalSingleStepSimulation(float) (btDiscreteDynamicsWorld.cpp:320) ## 17615== by 0x1101AD5: btSoftRigidDynamicsWorld::internalSingleStepSimulation(float) (btSoftRigidDynamicsWorld.cpp:94) ## 17615== by 0x10C8639: btDiscreteDynamicsWorld::stepSimulation(float, int, float) (btDiscreteDynamicsWorld.cpp:281) ## 17615== by 0xF283AB: CcdPhysicsEnvironment::proceedDeltaTime(double, float, float) (CcdPhysicsEnvironment.cpp:594) ## 17615== by 0xF9F7C0: KX_KetsjiEngine::NextFrame() (KX_KetsjiEngine.cpp:665) ## 17615== by 0xED3853: StartKetsjiShell (BL_KetsjiEmbedStart.cpp:432) ## 17615== by 0x8CC824: game_engine_exec (view3d_view.c:1837) ## 17615== by 0x7F0D13: wm_operator_invoke (wm_event_system.c:695) ## 17615== by 0x7F20D0: wm_handler_operator_call (wm_event_system.c:1247) ## 17615== If you believe this happened as a result of a stack ## 17615== overflow in your program's main thread (unlikely but ## 17615== possible), you can try to increase the size of the ## 17615== main thread stack using the --main-stacksize= flag. ## 17615== The main thread stack size used in this run was 8388608. ## 17615 ## 17615== HEAP SUMMARY: ## 17615== in use at exit: 63,424,141 bytes in 164,234 blocks ## 17615== total heap usage: 562,922 allocs, 398,688 frees, 119,256,011 bytes allocated ## 17615 ## 17615== LEAK SUMMARY: ## 17615== definitely lost: 196 bytes in 2 blocks ## 17615== indirectly lost: 0 bytes in 0 blocks ## 17615== possibly lost: 45,763,411 bytes in 52,116 blocks ## 17615== still reachable: 17,660,534 bytes in 112,116 blocks ## 17615== suppressed: 0 bytes in 0 blocks ## 17615== Rerun with --leak-check=full to see details of leaked memory ## 17615 ## 17615== For counts of detected and suppressed errors, rerun with: -v ## 17615== ERROR SUMMARY: 45346 errors from 6 contexts (suppressed: 36 from 11) %%%

%%%Looks like it crashes on an "active" rigidbody constraint that's on a background layer, selecting all
(such) layers before starting the game should work I think.

Attached simple_rb_constraint.blend where layer 2 has rigidbody cubes connected with constraint.
As long as layer 2 is selected when starting game I get no problems, similar crash when not selected.

As for fixing this, I haven't a clue atm. :)

%%%

%%%Looks like it crashes on an "active" rigidbody constraint that's on a background layer, selecting all (such) layers before starting the game should work I think. Attached simple_rb_constraint.blend where layer 2 has rigidbody cubes connected with constraint. As long as layer 2 is selected when starting game I get no problems, similar crash when not selected. As for fixing this, I haven't a clue atm. :) %%%

%%%Not sure if it'll be helpful, but here's quick patch which prevents crash (see attachments).%%%

%%%Not sure if it'll be helpful, but here's quick patch which prevents crash (see attachments).%%%
Author
Member

%%%Works ! Sharybin thanks a lot!%%%

%%%Works ! Sharybin thanks a lot!%%%
Author
Member

%%%Hallo, compiled this morning 2.57 but blender\extern\bullet2\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp seems NOT
to be changed in the trunk

And the problem stated does not occure, so Sergeys Sharybin's proposal looks good?!

@erwin, shouldn't you put that change into the trunk?
Greetings

     Peter%%%
%%%Hallo, compiled this morning 2.57 but blender\extern\bullet2\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp seems NOT to be changed in the trunk And the problem stated does not occure, so Sergeys Sharybin's proposal looks good?! @erwin, shouldn't you put that change into the trunk? Greetings ``` Peter%%%

%%%Closing duplicate [#27029].%%%

%%%Closing duplicate [#27029].%%%

%%%Closed duplicated report: http://projects.blender.org/tracker/index.php?func=detail&aid=27473&group_id=9&atid=498

Have somebody checked patch i've provided and maybe it's correct fix and could be moved to trunk?%%%

%%%Closed duplicated report: http://projects.blender.org/tracker/index.php?func=detail&aid=27473&group_id=9&atid=498 Have somebody checked patch i've provided and maybe it's correct fix and could be moved to trunk?%%%

%%%
The main problem is that constraints are added to Bullet, while the rigid bodies that are attached to that constraint are NOT added to Bullet.

This is not supported, and there should be an assert fired, instead of adding work-arounds.

Would it be possible to add a check inside Blender that avoids adding/creating constraints when any of the attached rigid bodies is in an inactive layer?%%%

%%% The main problem is that constraints are added to Bullet, while the rigid bodies that are attached to that constraint are NOT added to Bullet. This is not supported, and there should be an assert fired, instead of adding work-arounds. Would it be possible to add a check inside Blender that avoids adding/creating constraints when any of the attached rigid bodies is in an inactive layer?%%%

%%%Hi, Erwin.
Yep, we've discussed this a bit in irc last night. Not sure who maintains that area from Blender side, but i could try to implement this.%%%

%%%Hi, Erwin. Yep, we've discussed this a bit in irc last night. Not sure who maintains that area from Blender side, but i could try to implement this.%%%

%%%I've tried to implement this in game_fix.patch. Will also discuss with other develoeprs who are familiar with the gameengine.%%%

%%%I've tried to implement this in game_fix.patch. Will also discuss with other develoeprs who are familiar with the gameengine.%%%
Member

%%%Thanks for the patch, I applied the modified patch that also ignores contstraint when the main object is not in the active layer.
Fixed the order of check on gotar.
Patch applied in SVN revsion 37026%%%

%%%Thanks for the patch, I applied the modified patch that also ignores contstraint when the main object is not in the active layer. Fixed the order of check on gotar. Patch applied in SVN revsion 37026%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#26775
No description provided.