Blender crashes, if using P to run the .blend #26775
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#26775
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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%%%
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
%%%
%%%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)
%%%
%%%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).%%%
%%%Works ! Sharybin thanks a lot!%%%
%%%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
%%%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?%%%
%%%
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.%%%
%%%I've tried to implement this in game_fix.patch. Will also discuss with other develoeprs who are familiar with the gameengine.%%%
%%%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'