Debug Assert when attempting to subdivide a Multires modifier when in sculpt mode #58067

Closed
opened 2018-11-26 20:58:33 +01:00 by Roger B · 6 comments

System Information
Windows 10 - nVidia Quadro 600

Blender Version
Broken: 2.8 d5778b5bc1
Worked: (optional)

Short description of error
Attempting to press the "Subdivide" button on a multires modifier, applied to a cube, will yield a Debug assert at:

void GPU_indexbuf_add_generic_vert(...)

assert(v <= builder->max_allowed_index);

v == 3435973836
builder->max_allowed_index == 2147483646

Exact steps for others to reproduce the error

  • Load attached .blend
  • Hit 'subdivide' on the multires modifier settings

Stacktrace:

...
blender.exe!_wassert(const wchar_t * expression, const wchar_t * file_name, unsigned int line_number) Line 444	C++

blender.exe!GPU_indexbuf_add_generic_vert(GPUIndexBufBuilder * builder, unsigned int v) Line 112	C
blender.exe!gpu_pbvh_grid_fill_fast_buffer(GPU_PBVH_Buffers * buffers, int totgrid, int gridsize) Line 378	C
blender.exe!GPU_pbvh_grid_buffers_update(GPU_PBVH_Buffers * buffers, CCGElem * * grids, const DMFlagMat * grid_flag_mats, int * grid_indices, int totgrid, const CCGKey * key, const int update_flags) Line 427	C
blender.exe!pbvh_update_draw_buffers(PBVH * bvh, PBVHNode * * nodes, int totnode) Line 1156	C
blender.exe!BKE_pbvh_draw_cb(PBVH * bvh, float[4] * planes, float[3] * fnors, bool fast, bool only_mask, void(*)(void *, GPUBatch *) draw_fn, void * user_data) Line 2096	C

blender.exe!sculpt_draw_cb(DRWShadingGroup * shgroup, void(*)(DRWShadingGroup *, GPUBatch *) draw_fn, void * user_data) Line 581	C
blender.exe!draw_shgroup(DRWShadingGroup * shgroup, <unnamed-enum-DRW_STATE_WRITE_DEPTH> pass_state) Line 1227	C
blender.exe!drw_draw_pass_ex(DRWPass * pass, DRWShadingGroup * start_group, DRWShadingGroup * end_group) Line 1292	C
blender.exe!DRW_draw_pass(DRWPass * pass) Line 1324	C
blender.exe!workbench_deferred_draw_scene(WORKBENCH_Data * vedata) Line 896	C

assert.blend

**System Information** Windows 10 - nVidia Quadro 600 **Blender Version** Broken: 2.8 d5778b5bc16 Worked: (optional) **Short description of error** Attempting to press the "Subdivide" button on a multires modifier, applied to a cube, will yield a Debug assert at: ``` void GPU_indexbuf_add_generic_vert(...) assert(v <= builder->max_allowed_index); ``` v == 3435973836 builder->max_allowed_index == 2147483646 **Exact steps for others to reproduce the error** - Load attached .blend - Hit 'subdivide' on the multires modifier settings Stacktrace: ``` ... blender.exe!_wassert(const wchar_t * expression, const wchar_t * file_name, unsigned int line_number) Line 444 C++ blender.exe!GPU_indexbuf_add_generic_vert(GPUIndexBufBuilder * builder, unsigned int v) Line 112 C blender.exe!gpu_pbvh_grid_fill_fast_buffer(GPU_PBVH_Buffers * buffers, int totgrid, int gridsize) Line 378 C blender.exe!GPU_pbvh_grid_buffers_update(GPU_PBVH_Buffers * buffers, CCGElem * * grids, const DMFlagMat * grid_flag_mats, int * grid_indices, int totgrid, const CCGKey * key, const int update_flags) Line 427 C blender.exe!pbvh_update_draw_buffers(PBVH * bvh, PBVHNode * * nodes, int totnode) Line 1156 C blender.exe!BKE_pbvh_draw_cb(PBVH * bvh, float[4] * planes, float[3] * fnors, bool fast, bool only_mask, void(*)(void *, GPUBatch *) draw_fn, void * user_data) Line 2096 C blender.exe!sculpt_draw_cb(DRWShadingGroup * shgroup, void(*)(DRWShadingGroup *, GPUBatch *) draw_fn, void * user_data) Line 581 C blender.exe!draw_shgroup(DRWShadingGroup * shgroup, <unnamed-enum-DRW_STATE_WRITE_DEPTH> pass_state) Line 1227 C blender.exe!drw_draw_pass_ex(DRWPass * pass, DRWShadingGroup * start_group, DRWShadingGroup * end_group) Line 1292 C blender.exe!DRW_draw_pass(DRWPass * pass) Line 1324 C blender.exe!workbench_deferred_draw_scene(WORKBENCH_Data * vedata) Line 896 C ``` [assert.blend](https://archive.blender.org/developer/F5727945/assert.blend)
Author

Added subscriber: @rboxman

Added subscriber: @rboxman

Added subscribers: @fclem, @mont29

Added subscribers: @fclem, @mont29
Clément Foucault was assigned by Bastien Montagne 2018-11-29 10:59:55 +01:00

Went up to the ninth level of subdivision without any issue…

Message seems to point to drawing code, maybe @fclem knows more about it?

Went up to the ninth level of subdivision without any issue… Message seems to point to drawing code, maybe @fclem knows more about it?

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Fixed by 49287b34a2.

Fixed by 49287b34a2e.
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
3 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#58067
No description provided.