Page MenuHome

CRASH: Double Control clicking on PolyLine will crash Blender
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: rB0f45cab862b8
Worked: (newest version of Blender that worked as expected)

Short description of error
[Please fill out a short description of the error here]

When trying to add control points on a polyline curve (not bezier), while still in EDIT MODE with no vertices selected, BLENDER will crash.

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

  1. Delete everything from scene.
  2. SHFT A - Create CURVE > BEZIER
  3. TAB enter edit mode, A to select all, and select CURVE > SET SPLIONE TYPE > POLY to convert from Bezier to poly curve
  4. Left click on canvas anywhere to unselect all verts -- and while still in EDIT MODE double click the RIGHT MOUSE KEY while pressing CONTROL (which should add control verts to the line), and blender will crash.

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Dec 27 2020, 8:41 PM

Can confirm, in debug assert was triggered assert(builder->index_len < builder->max_index_len);

>	blender.exe!GPU_indexbuf_add_generic_vert(GPUIndexBufBuilder * builder, unsigned int v) Line 73	C++
 	blender.exe!GPU_indexbuf_add_line_verts(GPUIndexBufBuilder * builder, unsigned int v1, unsigned int v2) Line 103	C++
 	blender.exe!curve_create_edit_data_and_handles(CurveRenderData * rdata, GPUVertBuf * vbo_pos, GPUVertBuf * vbo_data, GPUIndexBuf * ibo_edit_verts_points, GPUIndexBuf * ibo_edit_lines) Line 822	C
 	blender.exe!DRW_curve_batch_cache_create_requested(Object * ob) Line 1089	C
 	blender.exe!drw_batch_cache_generate_requested(Object * ob) Line 3599	C
 	blender.exe!drw_engines_cache_populate(Object * ob) Line 1108	C
 	blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * region, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1604	C
 	blender.exe!DRW_draw_view(const bContext * C) Line 1512	C
 	blender.exe!view3d_draw_view(const bContext * C, ARegion * region) Line 1596	C
 	blender.exe!view3d_main_region_draw(const bContext * C, ARegion * region) Line 1619	C
 	blender.exe!ED_region_do_draw(bContext * C, ARegion * region) Line 551	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 732	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 875	C
 	blender.exe!wm_draw_update(bContext * C) Line 1074	C
 	blender.exe!WM_main(bContext * C) Line 642	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 526	C
 	[External Code]

Adding modeling here as well in case it helps. I can confirm the issue too.

@christian lichtner (BlackBox) , can you check if crash is still reproducible with recent 2.93.0 or 3.0.0 build ??

I can repro with 2.92.0, with one random 2.93.0 build (Hash: rBde06cb85593b, commit date: `2021-03-17) but not with recent 2.93.0, 3.0.0 builds.

I assume the issue is fixed but will keep open until someone's reply :)

@Pratik Borhade (PratikPB2123) -- It seems to have been fixed in 2.93.0 -- I would mark it as resolved.

It seems to have been fixed in 2.93.0

Thanks for checking. Marking this as resolved. Thanks again for the report :)