Blender crashes when in the Multresolution modifier we increase the number of subdivisions #80039

Closed
opened 2020-08-23 13:12:52 +02:00 by nazir · 7 comments

System Information
Operating system: Windows-10-10.0.14393-SP0 64 Bits
Graphics card: GeForce GTX 1050 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14

Blender Version
Broken:
version: 2.83.5, branch: master, commit date: 2020-08-19 06:07, hash: c2b144df39
version: 2.91.0 Alpha, branch: master, commit date: 2020-08-13 18:18, hash: 275f1039d2
Worked:
version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: 26bd5ebd42
version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: 375c7dc4ca

Short description of error

Create three connected vertices in the object and add the Multiresolution modifier. By increasing the number of subdivisions, Blender falls. If we extrude polygons and add a subdivision everything works correctly.

Exact steps for others to reproduce the error

  1. Create an object from three connected vertices
  2. Add the Multiresolution modifier to the object
  3. I increase the number of subdivisions (although I checked in Blender 2.82 this action is blocked and Blender does not crash).
  4. Blender crashes without error message.

The problem is solved in prohibiting the increase of the unit if the object does not have solid polygons.
There is no such error in Blender 2.82.

**System Information** Operating system: Windows-10-10.0.14393-SP0 64 Bits Graphics card: GeForce GTX 1050 with Max-Q Design/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14 **Blender Version** Broken: version: 2.83.5, branch: master, commit date: 2020-08-19 06:07, hash: `c2b144df39` version: 2.91.0 Alpha, branch: master, commit date: 2020-08-13 18:18, hash: `275f1039d2` Worked: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: `26bd5ebd42` version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: `375c7dc4ca` **Short description of error** Create three connected vertices in the object and add the Multiresolution modifier. By increasing the number of subdivisions, Blender falls. If we extrude polygons and add a subdivision everything works correctly. **Exact steps for others to reproduce the error** 1. Create an object from three connected vertices 2. Add the Multiresolution modifier to the object 3. I increase the number of subdivisions (although I checked in Blender 2.82 this action is blocked and Blender does not crash). 4. Blender crashes without error message. The problem is solved in prohibiting the increase of the unit if the object does not have solid polygons. There is no such error in Blender 2.82.
Author

Added subscriber: @aicedor

Added subscriber: @aicedor

Added subscriber: @rjg

Added subscriber: @rjg

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

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

The crash happens when adding the second subdivision. reshape_context->subdiv is NULL which triggers the assert in context_init_commoon (multires_reshape_util.c ).

BTW the function name has a typo, it should be context_init_common.

context_init_commoon(MultiresReshapeContext * reshape_context) Line 128	C
multires_reshape_context_create_from_subdivide(MultiresReshapeContext * reshape_context, Object * object, MultiresModifierData * mmd, int top_level) Line 269	C
multiresModifier_subdivide_to_level(Object * object, MultiresModifierData * mmd, const int top_level, const eMultiresSubdivideModeType mode) Line 222	C
multiresModifier_subdivide(Object * object, MultiresModifierData * mmd, const eMultiresSubdivideModeType mode) Line 180	C
multires_subdivide_exec(bContext * C, wmOperator * op) Line 1694	C
wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1312	C
wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1547	C
WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1562	C
ui_apply_but_funcs_after(bContext * C) Line 907	C
ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10843	C
wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 638	C
wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2754	C
wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2865	C
wm_event_do_handlers(bContext * C) Line 3289	C
WM_main(bContext * C) Line 479	C
main(int argc, const unsigned char * * UNUSED_argv_c) Line 548	C
The crash happens when adding the second subdivision. `reshape_context->subdiv` is `NULL` which triggers the assert in `context_init_commoon` ([multires_reshape_util.c ](https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/multires_reshape_util.c)). BTW the function name has a typo, it should be `context_init_common`. ``` context_init_commoon(MultiresReshapeContext * reshape_context) Line 128 C multires_reshape_context_create_from_subdivide(MultiresReshapeContext * reshape_context, Object * object, MultiresModifierData * mmd, int top_level) Line 269 C multiresModifier_subdivide_to_level(Object * object, MultiresModifierData * mmd, const int top_level, const eMultiresSubdivideModeType mode) Line 222 C multiresModifier_subdivide(Object * object, MultiresModifierData * mmd, const eMultiresSubdivideModeType mode) Line 180 C multires_subdivide_exec(bContext * C, wmOperator * op) Line 1694 C wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1312 C wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1547 C WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1562 C ui_apply_but_funcs_after(bContext * C) Line 907 C ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10843 C wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 638 C wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2754 C wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2865 C wm_event_do_handlers(bContext * C) Line 3289 C WM_main(bContext * C) Line 479 C main(int argc, const unsigned char * * UNUSED_argv_c) Line 548 C ```

This issue was referenced by dc61f7c171

This issue was referenced by dc61f7c17178372e1c52d0e2e3ee8297d36d91b9

This issue was referenced by 1bced5884c

This issue was referenced by 1bced5884c3dd80c74dfdcf621eae3b90d32a662
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Pablo Dobarro self-assigned this 2020-08-24 18:28:56 +02:00
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
4 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#80039
No description provided.