Array modifier crash #47644
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#47644
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
Arch Linux, Quadro K5000M
Blender Version
Broken: Master (as of hash
50500a4
)Short description of error
In a specific file (attached) a with a chain of array modifiers, applying the second modifier causes a hard crash. The following is a GDB backtrace of the crash:
Exact steps for others to reproduce the error
If Blender doesn't crash at 2, it should certainly crash at 3.
array_crash.blend
Changed status to: 'Open'
Added subscriber: @JasonvanGumster
#47678 was marked as duplicate of this issue
Added subscriber: @kevindietrich
According to asan, this is caused by
7a74738914
. Issue seems to be that the mesh's boundbox is freed inDM_to_mesh
, but it could be that the mesh already had a boundbox allocated, in which case we shouldn't free it since we're doing a local copy of the mesh and later on memcpy back (and thus mempcy an invalid pointer). Hopefully, my explanation makes sense :) Here's a quick patch, maybe the function needs a refactor:And for completeness, here the asan ouput: http://www.pasteall.org/65567
Added subscriber: @LazyDodo
It's a use after free bug,
https://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/HEAD:/source/blender/blenkernel/intern/DerivedMesh.c#l817
me->bb gets freed here, but not set to null , later bits in the code check for null and access the fields
Same might apply to me->mselect at line 814?
kevindietrich beat me by a good minute :)
Added subscriber: @mont29
Hmmm… odd, with current master here, cannot reproduce the crash (linux64, using debug build with asan enabled), can apply the three modifiers with no problem.
Following up, kevindietrich's patch works for me. No crash after applying it.
This issue was referenced by
b47137ae46
Changed status from 'Open' to: 'Resolved'
Added subscriber: @szymi