Crash when trying to delete particle system or undo CTRL+Z #74786
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#74786
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?
Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash:
375c7dc4ca
Worked: 2.79
Short description of error
After updating from 2.79 to 2.8 this file file crashes when I try to delete the Plane. When I go to Edit mode, trying to rotate, grab or do anything it crashes. Plane has a particle system on it. When i try to delete it crashes too. Basically if i touch the Plane in any way it will crash and there is no way to get rid off it. Cannot delete the particle system either. Also, when i try to undo the last step CTRL it also makes it crash.
Exact steps for others to reproduce the error
Crash.
T74786_2-83.blend
Added subscriber: @kokotek
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Needs User Info'
Something is wrong with the attached file.
Please submit again.
Added subscriber: @ankitm
https://developer.blender.org/file/edit/8408189
change the file view permissions
crash plane.blend
I chaned in 'Get info' read and write to 'Everyone'. Is that what you meant? Sorry, this is the first time I'm submitting
Changed status from 'Needs User Info' to: 'Confirmed'
I copied the contents in a 2.83 empty file & even things like changing visibility of plane crashes it. T74786_2-83.blend
Added subscriber: @JacquesLucke
Ok, so the issue here is that the particles have hair data, even though though they are not hair particles.
When the COW copy is made by the depsgraph, it will make a shallow copy of the
particle_data->hair
pointer. If the particle system type would beHair
, it would make deep copies of the hair data for every particle. Now, when the particle system is removed, it will remove the hair data on the original object and on the cow object. Since both are pointing to the same hair data, there is a double free.Possible solutions:
psys_copy_particles
so that it either always copies the hair data, or sets the hair data tonull
on every particle.readfile.c
. Doing that is a bit tricky, because the particle type is not known during direct linking afaik. So, it would have to be done during/after library linking.I couldn't figure out where this incorrect particle state comes from, yet. I was not able to reproduce it from scratch in a new file.
@kokotek @ankitm, is one of you able to reproduce the issue in a new file, without copying anything from another file?
If it's just adding a plane and applying a particle modifier to it, then no. I can move it around, change its visibility, get nice bubbles out of it, make it hair, back to emitter etc.
Also, the original file will crash if you open it, click in viewport, attempt to close it and pick "don't save" . Though that can be the undo step as said in the report.
Same thing here, in a new file everything works fine, lets me add particle system , emitter, hair...works ok.
when I append the problematic Plane from Crash plane file i will crash straight away.