Rigid Body Animation segmentation fault after canceled move of passive rigid body #104007

Open
opened 2023-01-19 16:22:46 +01:00 by Ryan Russo · 15 comments

System Information
Operating system:
"Ubuntu 20.04.5 LTS" XFCE window manager
32 GB RAM

Graphics card:
NVidia GTX1080 (Zotac Mini) -- Driver Version: 390.157

Blender Version
Broken: 3.4.1
Worked: 3.5

Short description of error
Forcing change to rigid body physics simulation by grabbing passive rigid body object (conveyor belt ) and then canceling results in segmentation fault on play of animation.

Exact steps for others to reproduce the error

  • Open attached Blend file
  • In 3D viewport, select belt mesh
  • NEW MISSED STEP Play Animation without touching anything (note crazy physics)
  • g, drag, escape the "Belt" object to force physics cache to update.

Play animation. Segmentation fault should occur.

convetor.belt09.blend

**System Information** Operating system: "Ubuntu 20.04.5 LTS" XFCE window manager 32 GB RAM Graphics card: NVidia GTX1080 (Zotac Mini) -- Driver Version: 390.157 **Blender Version** Broken: 3.4.1 Worked: 3.5 **Short description of error** Forcing change to rigid body physics simulation by grabbing passive rigid body object (conveyor belt ) and then canceling results in segmentation fault on play of animation. **Exact steps for others to reproduce the error** - Open attached Blend file - In 3D viewport, select belt mesh - **NEW MISSED STEP** Play Animation without touching anything (note crazy physics) - g, drag, escape the "Belt" object to force physics cache to update. # Play animation. Segmentation fault should occur. [convetor.belt09.blend](https://archive.blender.org/developer/F14176451/convetor.belt09.blend)
Author

Added subscriber: @loopdloop

Added subscriber: @loopdloop

Added subscriber: @iss

Added subscriber: @iss

Can't reproduce crash here. Please upload file /tmp/convetor.belt09.crash.txt after crash

Can't reproduce crash here. Please upload file /tmp/convetor.belt09.crash.txt after crash

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Author

In #104007#1476906, @iss wrote:
Can't reproduce crash here. Please upload file /tmp/convetor.belt09.crash.txt after crash

Hi Richard, Thanks for taking a look at this. Please note the edit to the reproduce steps.

Also, I'm new to debugging Blender. The crash file was basically empty convetor.belt09.crash.txt

so I tried with
blender -d
But, same result. I see a whole slew of debug options. Can you suggest some?

If not, no worries, I'll do some more reading.

> In #104007#1476906, @iss wrote: > Can't reproduce crash here. Please upload file /tmp/convetor.belt09.crash.txt after crash Hi Richard, Thanks for taking a look at this. Please note the edit to the reproduce steps. Also, I'm new to debugging Blender. The crash file was basically empty [convetor.belt09.crash.txt](https://archive.blender.org/developer/F14177253/convetor.belt09.crash.txt) so I tried with blender -d But, same result. I see a whole slew of debug options. Can you suggest some? If not, no worries, I'll do some more reading.
Author

Starting Blender with:

blender --debug-all --debug-value 99 --debug-python

and reproducing the crash. File now contains convetor.belt09.crash.txt

Also note earlier edit where I could not duplicate in 3.5.0 alpha.

Can duplicate pretty consistently in 3.4.1

This may be more useful. Command line capture to file:

blender --debug-all --debug-value 99 --debug-python > blender_stderr_stdout.txt 2>&1
blender_stderr_stdout.txt

Starting Blender with: blender --debug-all --debug-value 99 --debug-python and reproducing the crash. File now contains [convetor.belt09.crash.txt](https://archive.blender.org/developer/F14177297/convetor.belt09.crash.txt) Also note earlier edit where I could not duplicate in 3.5.0 alpha. Can duplicate pretty consistently in 3.4.1 This may be more useful. Command line capture to file: blender --debug-all --debug-value 99 --debug-python > blender_stderr_stdout.txt 2>&1 [blender_stderr_stdout.txt](https://archive.blender.org/developer/F14177313/blender_stderr_stdout.txt)

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk

Thanks for updating steps, unfortunately I am still not able to reproduce the issue. Could be linux related though. @lichtwerk, can you check?

Thanks for updating steps, unfortunately I am still not able to reproduce the issue. Could be linux related though. @lichtwerk, can you check?
Author

Just to rule out the video card/drivers I tested on an older Linux PC using two versions of Blender.

Results:

$ lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 6770]

$ grep PRETTY /etc/os-release 
PRETTY_NAME="Ubuntu 18.04.6 LTS"

$ ls /data/bin/blender-3.* -d
/data/bin/blender-3.1.0-linux-x64        # Cannot duplicate
/data/bin/blender-3.4.1-linux-x64        # Can duplicate -- same version as initially reported

Just to rule out the video card/drivers I tested on an older Linux PC using two versions of Blender. Results: ``` $ lspci | grep VGA 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 6770] $ grep PRETTY /etc/os-release PRETTY_NAME="Ubuntu 18.04.6 LTS" $ ls /data/bin/blender-3.* -d /data/bin/blender-3.1.0-linux-x64 # Cannot duplicate /data/bin/blender-3.4.1-linux-x64 # Can duplicate -- same version as initially reported ```
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Hi, I can confirm on Windows. Crash seems to be fixed after 3.4 release. I'll find the exact commit shortly.

Stack trace:
blender.exe         :0x00007FF7E83B1D40  btConvexShape::localGetSupportVertexWithoutMarginNonVirtual
blender.exe         :0x00007FF7E8417120  btComputeSupport
blender.exe         :0x00007FF7E8418A40  btGjkPairDetector::getClosestPointsNonVirtual
blender.exe         :0x00007FF7E8400490  btConvexConvexAlgorithm::processCollision
blender.exe         :0x00007FF7E83A9460  btCollisionDispatcher::defaultNearCallback
blender.exe         :0x00007FF7E83A9A20  btCollisionPairCallback::processOverlap
blender.exe         :0x00007FF7E840DD30  btHashedOverlappingPairCache::processAllOverlappingPairs
blender.exe         :0x00007FF7E840DDD0  btHashedOverlappingPairCache::processAllOverlappingPairs
blender.exe         :0x00007FF7E83A95C0  btCollisionDispatcher::dispatchAllCollisionPairs
blender.exe         :0x00007FF7E83AEC00  btCollisionWorld::performDiscreteCollisionDetection
blender.exe         :0x00007FF7E83C1A80  btDiscreteDynamicsWorld::internalSingleStepSimulation
blender.exe         :0x00007FF7E83C2E10  btDiscreteDynamicsWorld::stepSimulation
blender.exe         :0x00007FF7E30C6340  BKE_rigidbody_do_simulation
blender.exe         :0x00007FF7E30C69B0  BKE_rigidbody_eval_simulation
blender.exe         :0x00007FF7E339A920  blender::deg::`anonymous namespace'::evaluate_node
blender.exe         :0x00007FF7E339A6C0  blender::deg::`anonymous namespace'::deg_task_run_func
blender.exe         :0x00007FF7E8C92780  tbb::internal::function_task<Task>::execute
tbb.dll             :0x00007FFC2F1FF220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FFC2F1FF220  tbb::recursive_mutex::scoped_lock::internal_try_acquire
tbb.dll             :0x00007FFC2F1F4FD0  tbb::interface7::internal::isolate_within_arena
tbb.dll             :0x00007FFC2F1FA120  tbb::task_scheduler_init::terminate
tbb.dll             :0x00007FFC2F1FD800  tbb::thread_bound_filter::try_process_item
tbb.dll             :0x00007FFC2F1FD800  tbb::thread_bound_filter::try_process_item
ucrtbase.dll        :0x00007FFC5B7B6BB0  recalloc
KERNEL32.DLL        :0x00007FFC5DE85590  BaseThreadInitThunk
ntdll.dll           :0x00007FFC5E104830  RtlUserThreadStart```
Hi, I can confirm on Windows. Crash seems to be fixed after 3.4 release. I'll find the exact commit shortly. ```lines=10 Stack trace: blender.exe :0x00007FF7E83B1D40 btConvexShape::localGetSupportVertexWithoutMarginNonVirtual blender.exe :0x00007FF7E8417120 btComputeSupport blender.exe :0x00007FF7E8418A40 btGjkPairDetector::getClosestPointsNonVirtual blender.exe :0x00007FF7E8400490 btConvexConvexAlgorithm::processCollision blender.exe :0x00007FF7E83A9460 btCollisionDispatcher::defaultNearCallback blender.exe :0x00007FF7E83A9A20 btCollisionPairCallback::processOverlap blender.exe :0x00007FF7E840DD30 btHashedOverlappingPairCache::processAllOverlappingPairs blender.exe :0x00007FF7E840DDD0 btHashedOverlappingPairCache::processAllOverlappingPairs blender.exe :0x00007FF7E83A95C0 btCollisionDispatcher::dispatchAllCollisionPairs blender.exe :0x00007FF7E83AEC00 btCollisionWorld::performDiscreteCollisionDetection blender.exe :0x00007FF7E83C1A80 btDiscreteDynamicsWorld::internalSingleStepSimulation blender.exe :0x00007FF7E83C2E10 btDiscreteDynamicsWorld::stepSimulation blender.exe :0x00007FF7E30C6340 BKE_rigidbody_do_simulation blender.exe :0x00007FF7E30C69B0 BKE_rigidbody_eval_simulation blender.exe :0x00007FF7E339A920 blender::deg::`anonymous namespace'::evaluate_node blender.exe :0x00007FF7E339A6C0 blender::deg::`anonymous namespace'::deg_task_run_func blender.exe :0x00007FF7E8C92780 tbb::internal::function_task<Task>::execute tbb.dll :0x00007FFC2F1FF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FFC2F1FF220 tbb::recursive_mutex::scoped_lock::internal_try_acquire tbb.dll :0x00007FFC2F1F4FD0 tbb::interface7::internal::isolate_within_arena tbb.dll :0x00007FFC2F1FA120 tbb::task_scheduler_init::terminate tbb.dll :0x00007FFC2F1FD800 tbb::thread_bound_filter::try_process_item tbb.dll :0x00007FFC2F1FD800 tbb::thread_bound_filter::try_process_item ucrtbase.dll :0x00007FFC5B7B6BB0 recalloc KERNEL32.DLL :0x00007FFC5DE85590 BaseThreadInitThunk ntdll.dll :0x00007FFC5E104830 RtlUserThreadStart```
Thomas Dinges added this to the 3.3 LTS milestone 2023-02-08 15:37:17 +01:00
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:12 +01:00
Member

@PratikPB2123 : did you ever find a commit to backport for 3.3 LTS?

@PratikPB2123 : did you ever find a commit to backport for 3.3 LTS?
Member

Missed this. I'll check again. Thanks for the reminder 🙂

Missed this. I'll check again. Thanks for the reminder 🙂
Pratik Borhade self-assigned this 2024-02-22 05:21:18 +01:00
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
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#104007
No description provided.