Use after free: Baking Rigid Body physics causes instant crash #88113
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#88113
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?
System Information
Operating system: macOS 10.15.7
Graphics card: AMD Radeon Pro 5500M 4 GB / Intel UHD Graphics 630 1536 MB
Blender Version
Broken: 2.92.0, branch: master, commit date: 2021-02-24 16:25, 2.93.0 Beta, branch: master, commit date: 2021-04-28 22:25,
broken:
f7b22fc3d2
Worked:
Baking the Rigid Body world physics causes Blender to crash either instantly, or after baking less than 100 frames (it varies). Interestingly, a friend with the PC version of 2.92 says the project works fine, no crashes whatsoever.
Exact steps for others to reproduce the error
Open the project. Make sure Allow Negative Frames is on under Preferences/Animation. Go to the Rigid Body World and hit bake.
physics test b.blend
Asan report: T88113_asan_report.txt
Added subscriber: @mbelinkie
Here's the log of the crashed thread:
After restarting and trying again, the simplified project file linked to in the ticket now works, but my main project file still insta-crashes. Subsequent attempts to bake give me a different crash message. See below.
Here's another confusing experiment. I deleted the physics objects from my main project file completely until there was nothing in the rigid body world, then deleted and created a new rigid body world. Then I imported the collection of physics object from another project and tried to bake those. Instant crash. SO it seems like there's something in the project file that is not a physics object but still causes rigid body world to crash. I feel like I need to know how to interpret the error messages to say more.
And here's another error from a rigid body baking insta-crash, a little different this time:
One more update, then I'll stop for a while. I tried to import all the collections into a new project and set up new physics. And now that new project won't even open. It crashes instantly on 2.92 and 2.93 beta.
I am putting this new, cursed file here.
01_SJP_5-8c.blend
Here is the error log of this new crash on opening the file.
Baking Rigid Body physics causes instant crash, but only on the Mac versionto Use after free: Baking Rigid Body physics causes instant crashChanged status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @ankitm
I'm confirming the description as of now: allowing negative frames, and hitting bake. Added the asan report too. macOS 10.14,
f7b22fc3d2
following crashes like in appending etc look like symptoms and might be investigated after the use after free is fixed.
Added subscribers: @sreich, @dfelinto
Thanks for the report. Marking this as known issue since it depends on the rigid body system which at the moment has no active developer. I'm tagging Sergej here anyways in case he wants to tackle any of those. Anyone wlse interested on that can also join the geometry nodes meetings to get onboarded.