Page MenuHome

Debug Assert when attempting to subdivide a Multires modifier when in sculpt mode
Closed, ResolvedPublic


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


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



Event Timeline

Bastien Montagne (mont29) triaged this task as Normal priority.

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

Message seems to point to drawing code, maybe @Clément Foucault (fclem) knows more about it?

Dalai Felinto (dfelinto) closed this task as Resolved.Dec 14 2018, 10:52 PM

Fixed by 49287b34a2e.