Page MenuHome

GPencil: Normalize command crashes blender In weight paint mode
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows 10 Home 1909
Graphics card: Intel UHD 630

Blender Version
Broken version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: f1aa4d18d49d, type: Release
build date: 2019-12-04, 14:30:40
platform: Windows

Short description of error
normalize command in weight paint mode crashes blender

Exact steps for others to reproduce the error

  1. Open Blender 2.81a with 2DAnimation mode
  2. Draw a rectangle (large enough to cover a single bone)
  3. Switch to object mode and add an armatüre->single bone
  4. place the bone inside the rectangle
  5. select rectangle, shift select armatüre object, ctrl+P, select with automatic weights
  6. select only rectangle and switch to draw mode
  7. draw a circle outside of the rectangle
  8. switch to weight paint mode
  9. apply "normalize" command and blender crashes

watch the video: click me

Based on the default startup or an attached .blend file (as simple as possible).
click to download blend file

Event Timeline

Germano Cavalcante (mano-wii) lowered the priority of this task from 90 to High.Dec 17 2019, 2:57 PM

I can confirm:
gps->dvert is NULL

Backtrace:

>	blender.exe!defvert_find_index(const MDeformVert * dvert, const int defgroup) Line 680	C
	blender.exe!gpencil_vertex_group_normalize_exec(bContext * C, wmOperator * op) Line 1966	C
	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1453	C
	blender.exe!wm_operator_call_internal(bContext * C, wmOperatorType * ot, PointerRNA * properties, ReportList * reports, const short context, const bool poll_only, wmEvent * event) Line 1688	C
	blender.exe!WM_operator_name_call_ptr(bContext * C, wmOperatorType * ot, short context, PointerRNA * properties) Line 1703	C
	blender.exe!operator_call_cb(bContext * C, void * UNUSED_arg1, void * arg2) Line 6511	C
	blender.exe!ui_apply_but_funcs_after(bContext * C) Line 896	C
	blender.exe!ui_popup_handler(bContext * C, const wmEvent * event, void * userdata) Line 10747	C
	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 624	C
	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2756	C
	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3002	C
	blender.exe!wm_event_do_handlers(bContext * C) Line 3381	C
	blender.exe!WM_main(bContext * C) Line 420	C
	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C
Antonio Vazquez (antoniov) renamed this task from In weight paint mode(Grease pencil object), normalize command crashes blender to GPencil: Normalize command crashes blender In weight paint mode.Dec 17 2019, 7:54 PM