Solidify modifier - Only Rim crash in Complex mode #75840

Closed
opened 2020-04-17 18:44:22 +02:00 by Marcin Twarowski · 12 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 750 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87

Blender Version
Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-16 15:38, hash: 8cb10c124e

Short description of error
Selecting Only Rim in Solidify modifier causes crash to desktop. Modifier has to be in Complex mode. It doesn't crash with a simple plane, so it depends on geometry.
image.png
solidify_crash.blend

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 750 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 445.87 **Blender Version** Broken: version: 2.83 (sub 13), branch: master, commit date: 2020-04-16 15:38, hash: `8cb10c124e` **Short description of error** Selecting **Only Rim** in **Solidify** modifier causes crash to desktop. Modifier has to be in **Complex** mode. It doesn't crash with a simple plane, so it depends on geometry. ![image.png](https://archive.blender.org/developer/F8479258/image.png) [solidify_crash.blend](https://archive.blender.org/developer/F8479264/solidify_crash.blend)

Added subscriber: @MarcinTwarowski

Added subscriber: @MarcinTwarowski

Added subscriber: @VincentBlankfield

Added subscriber: @VincentBlankfield

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

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

Can confirm. Introduced in 35b1cc806f.

Can confirm. Introduced in 35b1cc806f76.

Added subscriber: @HDMaster84

Added subscriber: @HDMaster84

Added subscriber: @brecht

Added subscriber: @brecht

@VincentBlankfield, for a task to be marked confirmed it needs to have appropriate tags, subscriber, priority, etc. Otherwise it can slip through.

When unsure about those, best to leave the status to Needs Triage and only leave a comment.

@VincentBlankfield, for a task to be marked confirmed it needs to have appropriate tags, subscriber, priority, etc. Otherwise it can slip through. When unsure about those, best to leave the status to Needs Triage and only leave a comment.

Added subscriber: @rjg

Added subscriber: @rjg
MOD_solidify_nonmanifold_applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh) Line 2015	C
applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh) Line 80	C
modwrap_applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me) Line 961	C
mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, int useDeform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const int index, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final) Line 1179	C
mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1785	C
makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, const CustomData_MeshMasks * dataMask) Line 1902	C
BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 194	C
BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 385	C
[External Code]	
DEG::`anonymous namespace'::evaluate_node(const DEG::`anonymous-namespace'::DepsgraphEvalState * state, DEG::OperationNode * operation_node) Line 117	C++
DEG::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata, int thread_id) Line 129	C++
handle_local_queue(TaskThreadLocalStorage * tls, const int thread_id) Line 423	C++
task_scheduler_thread_run(void * thread_p) Line 462	C++
[External Code]

Crash happens at char bweight = medge[g->edges- [x]->new_edge].bweight;, where medge is accessed out of bounds. In my test new_edge was set to 2^32-1.

``` MOD_solidify_nonmanifold_applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh) Line 2015 C applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * mesh) Line 80 C modwrap_applyModifier(ModifierData * md, const ModifierEvalContext * ctx, Mesh * me) Line 961 C mesh_calc_modifiers(Depsgraph * depsgraph, Scene * scene, Object * ob, int useDeform, const bool need_mapping, const CustomData_MeshMasks * dataMask, const int index, const bool use_cache, const bool allow_shared_mesh, Mesh * * r_deform, Mesh * * r_final) Line 1179 C mesh_build_data(Depsgraph * depsgraph, Scene * scene, Object * ob, const CustomData_MeshMasks * dataMask, const bool need_mapping) Line 1785 C makeDerivedMesh(Depsgraph * depsgraph, Scene * scene, Object * ob, BMEditMesh * em, const CustomData_MeshMasks * dataMask) Line 1902 C BKE_object_handle_data_update(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 194 C BKE_object_eval_uber_data(Depsgraph * depsgraph, Scene * scene, Object * ob) Line 385 C [External Code] DEG::`anonymous namespace'::evaluate_node(const DEG::`anonymous-namespace'::DepsgraphEvalState * state, DEG::OperationNode * operation_node) Line 117 C++ DEG::`anonymous namespace'::deg_task_run_func(TaskPool * pool, void * taskdata, int thread_id) Line 129 C++ handle_local_queue(TaskThreadLocalStorage * tls, const int thread_id) Line 423 C++ task_scheduler_thread_run(void * thread_p) Line 462 C++ [External Code] ``` Crash happens at `char bweight = medge[g->edges- [x]->new_edge].bweight;`, where `medge` is accessed out of bounds. In my test `new_edge` was set to 2^32-1.
Henrik D. self-assigned this 2020-04-17 21:49:09 +02:00
Member

ok I am pretty sure I know what is happening, should be easy to fix, will do.

ok I am pretty sure I know what is happening, should be easy to fix, will do.

This issue was referenced by 7865185d98

This issue was referenced by 7865185d986558b5fd40e669c91f86f1967f0304

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
7 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#75840
No description provided.