Crash while using several rigid bodies and some force fields. #69188

Open
opened 2019-08-26 22:05:00 +02:00 by Jose Fernandez De Leon · 9 comments

System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon R9 M370X OpenGL Engine ATI Technologies Inc. 4.1 ATI-2.11.20

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
Worked: (optional)

Short description of error
The scene is pretty simple, a house with some elements used as rigid bodies and some force field, vortex and wind force are applied.

When I play the animation, it starts and around frame 140-200 it crashes.

Exact steps for others to reproduce the error
Attached blend file. The only thing to do is to play the animation and wait for the crash.
Attached crash report.Blender_2019-08-26-215345_MacBook-Pro-de-Kote.crash

casaFalla.blend

**System Information** Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon R9 M370X OpenGL Engine ATI Technologies Inc. 4.1 ATI-2.11.20 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` Worked: (optional) **Short description of error** The scene is pretty simple, a house with some elements used as rigid bodies and some force field, vortex and wind force are applied. When I play the animation, it starts and around frame 140-200 it crashes. **Exact steps for others to reproduce the error** Attached blend file. The only thing to do is to play the animation and wait for the crash. Attached crash report.[Blender_2019-08-26-215345_MacBook-Pro-de-Kote.crash](https://archive.blender.org/developer/F7705075/Blender_2019-08-26-215345_MacBook-Pro-de-Kote.crash) [casaFalla.blend](https://archive.blender.org/developer/F7705076/casaFalla.blend)

Added subscriber: @koteinside

Added subscriber: @koteinside

Added subscriber: @dark999

Added subscriber: @dark999

here test file work fine on linux Blender 2.80 f6cb5f5449 (Stable) AMD FX8350, 16GB DDR3, GTX690 2+2 GB VRam- Nvidia drivers 435.17, with Factory Setting applied, LoadUI enabled and Trusted Source disabled in file browser

i wait for 15-20 animation loop, no crash

here test file work fine on linux Blender 2.80 f6cb5f54494e (Stable) AMD FX8350, 16GB DDR3, GTX690 2+2 GB VRam- Nvidia drivers 435.17, with Factory Setting applied, LoadUI enabled and Trusted Source disabled in file browser i wait for 15-20 animation loop, no crash

I tested it also on Blender 2.81 and I have the same crash.

I tested it also on Blender 2.81 and I have the same crash.

Could it be related to the OS? I will try with a windows environment tomorrow, to see if it works there.

Could it be related to the OS? I will try with a windows environment tomorrow, to see if it works there.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Can confirm, crashes in bullet because there are NaNs in a specific vector seperatingAxisInA.
Would need some further investigation, will confirm for now...

backtrace (localDirOrg has NaNs here -- due to NaNs mentioned above...)

1   raise                                                                                                              0x7ffff1aece75 
2   abort                                                                                                              0x7ffff1ad7895 
3   __assert_fail_base.cold                                                                                            0x7ffff1ad7769 
4   __assert_fail                                                                                                      0x7ffff1ae5566 
5   convexHullSupport                                                                 btConvexShape.cpp           123  0x756b1eb      
6   btConvexShape::localGetSupportVertexWithoutMarginNonVirtual                       btConvexShape.cpp           292  0x756c0ec      
7   btGjkPairDetector::getClosestPointsNonVirtual                                     btGjkPairDetector.cpp       141  0x7585ac2      
8   btGjkPairDetector::getClosestPoints                                               btGjkPairDetector.cpp       77   0x75856da      
9   btConvexConvexAlgorithm::processCollision                                         btConvexConvexAlgorithm.cpp 589  0x75e2e56      
10  btCollisionDispatcher::defaultNearCallback                                        btCollisionDispatcher.cpp   279  0x7553ff1      
11  btCollisionPairCallback::processOverlap                                           btCollisionDispatcher.cpp   230  0x75549c1      
12  btHashedOverlappingPairCache::processAllOverlappingPairs                          btOverlappingPairCache.cpp  386  0x7551f30      
13  btCollisionDispatcher::dispatchAllCollisionPairs                                  btCollisionDispatcher.cpp   244  0x7553de1      
14  btCollisionWorld::performDiscreteCollisionDetection                               btCollisionWorld.cpp        228  0x7556221      
15  btDiscreteDynamicsWorld::internalSingleStepSimulation                             btDiscreteDynamicsWorld.cpp 496  0x75b2fd7      
16  btDiscreteDynamicsWorld::stepSimulation                                           btDiscreteDynamicsWorld.cpp 456  0x75b2e6b      
17  RB_dworld_step_simulation                                                         rb_bullet_api.cpp           212  0x41cc37c      
18  BKE_rigidbody_do_simulation                                                       rigidbody.c                 2011 0x2b098c3      
19  BKE_rigidbody_eval_simulation                                                     rigidbody.c                 2153 0x2b09a24  
Can confirm, crashes in bullet because there are NaNs in a specific vector `seperatingAxisInA`. Would need some further investigation, will confirm for now... backtrace (`localDirOrg` has NaNs here -- due to NaNs mentioned above...) ``` 1 raise 0x7ffff1aece75 2 abort 0x7ffff1ad7895 3 __assert_fail_base.cold 0x7ffff1ad7769 4 __assert_fail 0x7ffff1ae5566 5 convexHullSupport btConvexShape.cpp 123 0x756b1eb 6 btConvexShape::localGetSupportVertexWithoutMarginNonVirtual btConvexShape.cpp 292 0x756c0ec 7 btGjkPairDetector::getClosestPointsNonVirtual btGjkPairDetector.cpp 141 0x7585ac2 8 btGjkPairDetector::getClosestPoints btGjkPairDetector.cpp 77 0x75856da 9 btConvexConvexAlgorithm::processCollision btConvexConvexAlgorithm.cpp 589 0x75e2e56 10 btCollisionDispatcher::defaultNearCallback btCollisionDispatcher.cpp 279 0x7553ff1 11 btCollisionPairCallback::processOverlap btCollisionDispatcher.cpp 230 0x75549c1 12 btHashedOverlappingPairCache::processAllOverlappingPairs btOverlappingPairCache.cpp 386 0x7551f30 13 btCollisionDispatcher::dispatchAllCollisionPairs btCollisionDispatcher.cpp 244 0x7553de1 14 btCollisionWorld::performDiscreteCollisionDetection btCollisionWorld.cpp 228 0x7556221 15 btDiscreteDynamicsWorld::internalSingleStepSimulation btDiscreteDynamicsWorld.cpp 496 0x75b2fd7 16 btDiscreteDynamicsWorld::stepSimulation btDiscreteDynamicsWorld.cpp 456 0x75b2e6b 17 RB_dworld_step_simulation rb_bullet_api.cpp 212 0x41cc37c 18 BKE_rigidbody_do_simulation rigidbody.c 2011 0x2b098c3 19 BKE_rigidbody_eval_simulation rigidbody.c 2153 0x2b09a24 ```

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Running the animation in a debug build of Blender shows me:

/home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:221:16: runtime error: left shift of 458755 by 15 places cannot be represented in type 'int'
/home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:221:7: runtime error: signed integer overflow: 458755 + 2147385343 cannot be represented in type 'int'
/home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:223:16: runtime error: left shift of 2145747298 by 3 places cannot be represented in type 'int'
/home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:225:16: runtime error: left shift of 2129513027 by 11 places cannot be represented in type 'int'
/home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:225:7: runtime error: signed integer overflow: 2129739638 + 1979994111 cannot be represented in type 'int'
blenderdebug: /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexShape.cpp:123: btVector3 convexHullSupport(const btVector3&, const btVector3*, int, const btVector3&): Assertion `ptIndex >= 0' failed.
Running the animation in a debug build of Blender shows me: ``` /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:221:16: runtime error: left shift of 458755 by 15 places cannot be represented in type 'int' /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:221:7: runtime error: signed integer overflow: 458755 + 2147385343 cannot be represented in type 'int' /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:223:16: runtime error: left shift of 2145747298 by 3 places cannot be represented in type 'int' /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:225:16: runtime error: left shift of 2129513027 by 11 places cannot be represented in type 'int' /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/BroadphaseCollision/btOverlappingPairCache.h:225:7: runtime error: signed integer overflow: 2129739638 + 1979994111 cannot be represented in type 'int' blenderdebug: /home/sybren/workspace/blender-git/blender/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexShape.cpp:123: btVector3 convexHullSupport(const btVector3&, const btVector3*, int, const btVector3&): Assertion `ptIndex >= 0' failed. ```
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:47:53 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
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
4 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#69188
No description provided.