Skin Modifier Resize Crash #52353

Closed
opened 2017-08-11 14:33:20 +02:00 by Brandon Griffin · 8 comments

System Information
Processor: 8x Intel(R) Core(TM) i7-3770 CPU@3.40GHz
Memory: 16363MB
Operation System: Linux Mint 18.1 Serena
Video: EVGA GeForce GTX 1050 Ti SSC GAMING ACX 3.0, 04G-P4-6255-KR, 4GB GDDR5, DX12 OSD Support (PXOC)

Blender Version
Broken: 2.78.5 16eca8f
Broken: 2.8 a3d9ef2ea5

Short description of error
The attached file contains an object created from a skin modifier and a mirror modifier (base.body), and several objects laid over the base.body that are using a shrinkwrap modifier (base.clothing.pants, base.clothing.shirt). While attempting to resize one of the skin vertices in base.body, Blender will raise a Segmentation Fault. I posit that the crash is caused by the skin modifier intersecting an object that is shrinkwrapped over the skin itself.

Sometimes, though less commonly, simply entering edit mode on base.body is sufficient to cause a crash.

Hiding the shrinkwrapped objects is not sufficient to prevent the crash. Disabling the shrinkwrap modifier on those objects does prevent the crash.

Exact steps for others to reproduce the error

  1. Select the object base.body and tab into edit mode. (Sometimes this will trigger a crash.)
  2. Select the vertex second from the bottom of the leg.
  3. Resize the vertex (Ctrl-A). Crash will occur as the vertex is expanded.

After restart, disable the shrinkwrap modifiers on base.clothing.pants and base.clothing.shirt and try again. Crash will not occur.try.female.2.blend

Crash Report

Blender 2.78 (sub 5), Commit date: 2017-06-28 11:21, Hash 16eca8f

bpy.ops.object.editmode_toggle() # Operator
bpy.ops.transform.skin_resize(value=(1.47227, 1.47227, 1.47227), constraint_axis=(False, False, False), constraint_orientation='LOCAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=0.092296) # Operator

backtrace

./build_linux/bin/blender(BLI_system_backtrace+0x30) [0x13f1010]
./build_linux/bin/blender() [0xa228c1]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7faf7b2d24b0]
./build_linux/bin/blender() [0x10c03af]
./build_linux/bin/blender() [0x13abf6a]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender() [0x13abffc]
./build_linux/bin/blender(BLI_bvhtree_find_nearest+0x17b) [0x13acf7b]
./build_linux/bin/blender() [0x11e7b65]
./build_linux/bin/blender() [0x13f209a]
./build_linux/bin/blender(BLI_task_parallel_range_ex+0x1c) [0x13f274c]
./build_linux/bin/blender(shrinkwrapModifier_deform+0x355) [0x11e88d5]
./build_linux/bin/blender() [0x10a2362]
./build_linux/bin/blender() [0x10a2d4c]
./build_linux/bin/blender(makeDerivedMesh+0x8d) [0x10a2e6d]
./build_linux/bin/blender(BKE_object_handle_data_update+0x4a5) [0x11982c5]
./build_linux/bin/blender(BKE_object_handle_update_ex+0x200) [0x1192530]
./build_linux/bin/blender() [0x11cf7f6]
./build_linux/bin/blender() [0x13f12d0]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7faf810e16ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7faf7b3a382d]

**System Information** Processor: 8x Intel(R) Core(TM) i7-3770 CPU@3.40GHz Memory: 16363MB Operation System: Linux Mint 18.1 Serena Video: EVGA GeForce GTX 1050 Ti SSC GAMING ACX 3.0, 04G-[P4](https://archive.blender.org/developer/P4.txt)-6255-KR, 4GB GDDR5, DX12 OSD Support (PXOC) **Blender Version** Broken: 2.78.5 16eca8f Broken: 2.8 a3d9ef2ea5 **Short description of error** The attached file contains an object created from a skin modifier and a mirror modifier (base.body), and several objects laid over the base.body that are using a shrinkwrap modifier (base.clothing.pants, base.clothing.shirt). While attempting to resize one of the skin vertices in base.body, Blender will raise a Segmentation Fault. I posit that the crash is caused by the skin modifier intersecting an object that is shrinkwrapped over the skin itself. Sometimes, though less commonly, simply entering edit mode on base.body is sufficient to cause a crash. Hiding the shrinkwrapped objects is not sufficient to prevent the crash. Disabling the shrinkwrap modifier on those objects does prevent the crash. **Exact steps for others to reproduce the error** 1) Select the object base.body and tab into edit mode. (Sometimes this will trigger a crash.) 2) Select the vertex second from the bottom of the leg. 3) Resize the vertex (Ctrl-A). Crash will occur as the vertex is expanded. After restart, disable the shrinkwrap modifiers on base.clothing.pants and base.clothing.shirt and try again. Crash will not occur.[try.female.2.blend](https://archive.blender.org/developer/F706644/try.female.2.blend) **Crash Report** # Blender 2.78 (sub 5), Commit date: 2017-06-28 11:21, Hash 16eca8f bpy.ops.object.editmode_toggle() # Operator bpy.ops.transform.skin_resize(value=(1.47227, 1.47227, 1.47227), constraint_axis=(False, False, False), constraint_orientation='LOCAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=0.092296) # Operator # backtrace ./build_linux/bin/blender(BLI_system_backtrace+0x30) [0x13f1010] ./build_linux/bin/blender() [0xa228c1] /lib/x86_64-linux-gnu/libc.so.6(+0x354b0) [0x7faf7b2d24b0] ./build_linux/bin/blender() [0x10c03af] ./build_linux/bin/blender() [0x13abf6a] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender() [0x13abffc] ./build_linux/bin/blender(BLI_bvhtree_find_nearest+0x17b) [0x13acf7b] ./build_linux/bin/blender() [0x11e7b65] ./build_linux/bin/blender() [0x13f209a] ./build_linux/bin/blender(BLI_task_parallel_range_ex+0x1c) [0x13f274c] ./build_linux/bin/blender(shrinkwrapModifier_deform+0x355) [0x11e88d5] ./build_linux/bin/blender() [0x10a2362] ./build_linux/bin/blender() [0x10a2d4c] ./build_linux/bin/blender(makeDerivedMesh+0x8d) [0x10a2e6d] ./build_linux/bin/blender(BKE_object_handle_data_update+0x4a5) [0x11982c5] ./build_linux/bin/blender(BKE_object_handle_update_ex+0x200) [0x1192530] ./build_linux/bin/blender() [0x11cf7f6] ./build_linux/bin/blender() [0x13f12d0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba) [0x7faf810e16ba] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7faf7b3a382d]

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @BrandonGriffin

Added subscriber: @BrandonGriffin

Added subscriber: @mont29

Added subscriber: @mont29

This actually same issue as in #52149, will merge.

This actually same issue as in #52149, will merge.

Closed as duplicate of #52149

Closed as duplicate of #52149

#52149 doesn't seem to cover step 3: Resize the vertex (Ctrl-A). Crash will occur as the vertex is expanded.

The crash bug reported in Step 3 is after successfully entering edit mode, and is 100% repeatable (unlike the race condition reported in #52149).

#52149 doesn't seem to cover step 3: Resize the vertex (Ctrl-A). Crash will occur as the vertex is expanded. The crash bug reported in Step 3 is after successfully entering edit mode, and is 100% repeatable (unlike the race condition reported in #52149).

For me, crash was 100% happening just by entering Edit mode, so can’t certify 100% the one from scaling vert was the same - but it does not happens fro me now with fixed code, so would assume it was as well. Technically, scaling the vertex was merely re-running same crashing code as when entering Edit mode, over and over - so obviously crash was more likely to happen there (since in a release build, invalid memory access do not always crash…).

For me, crash was 100% happening just by entering Edit mode, so can’t certify 100% the one from scaling vert was the same - but it does not happens fro me now with fixed code, so would assume it was as well. Technically, scaling the vertex was merely re-running same crashing code as when entering Edit mode, over and over - so obviously crash was more likely to happen there (since in a release build, invalid memory access do not *always* crash…).

Thank you Bastien.

I just built a4bcdf5 (2.79 release candidate) and verified that the bug is fixed in that version. It's cool to watch the shrink-wrapped object grow with the skin modifier.

The Blender team is awesome!

Thank you Bastien. I just built a4bcdf5 (2.79 release candidate) and verified that the bug is fixed in that version. It's cool to watch the shrink-wrapped object grow with the skin modifier. The Blender team is awesome!
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
2 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#52353
No description provided.