Page MenuHome

Crash. Vertex painting. Picking vertex color with S crashes Blender.
Closed, ResolvedPublicBUG

Description

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 473.04

Blender Version
Broken: version: 3.2.0 Alpha, branch: master, commit date: 2022-04-23 13:09, hash: rBc486da0238bd

Short description of error
Some more tests done.
If there is a newly created attribute with type «Face corner + Byte color»,
pressing S in sculpt mode crashes Blender

So i suppose, the issue is initial data in this type of attribute.
Because if I paint a little, bug will not appear.

upd: the same with color. So, perhaps the issue with Face corner fresh attribute.

Bug:

More tests:


Steps to reproduce

  1. Open new General template
  2. Go to Object Data Properties > Attributes
  3. Add new attribute, Face Corner domain, Byte Color type
  4. Switch to sculpt mode
  5. Press S key

Blender will crash

Event Timeline

Richard Antalik (ISS) changed the task status from Needs Triage to Confirmed.Apr 26 2022, 2:59 AM
Richard Antalik (ISS) triaged this task as High priority.
Richard Antalik (ISS) updated the task description. (Show Details)

Trace:

>	blender.exe!blender::bke::pbvh_vertex_color_get<MLoopCol>(const PBVH & pbvh, int vertex, float * r_color) Line 96	C++
 	blender.exe!<lambda_747ce9b58397f68c271b241db5f93105>::operator()<MLoopCol>(MLoopCol dummy) Line 152	C++
 	blender.exe!blender::bke::to_static_color_type<<lambda_747ce9b58397f68c271b241db5f93105>>(const CustomDataType type, const BKE_pbvh_vertex_color_get::__l2::<lambda_747ce9b58397f68c271b241db5f93105> & func) Line 55	C++
 	blender.exe!BKE_pbvh_vertex_color_get(const PBVH * pbvh, int vertex, float * r_color) Line 153	C++
 	blender.exe!SCULPT_vertex_color_get(const SculptSession * ss, int index, float * r_color) Line 164	C
 	blender.exe!sculpt_sample_color_invoke(bContext * C, wmOperator * op, const wmEvent * UNUSED_e) Line 781	C
 	blender.exe!wm_operator_invoke(bContext * C, wmOperatorType * ot, const wmEvent * event, PointerRNA * properties, ReportList * reports, const bool poll_only, bool use_last_properties) Line 1386	C
 	blender.exe!wm_handler_operator_call(bContext * C, ListBase * handlers, wmEventHandler * handler_base, wmEvent * event, PointerRNA * properties, const unsigned char * kmi_idname) Line 2400	C
 	blender.exe!wm_handlers_do_keymap_with_keymap_handler(bContext * C, wmEvent * event, ListBase * handlers, wmEventHandler_Keymap * handler, wmKeyMap * keymap, const bool do_debug_handler) Line 2770	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmWindow * win, wmEvent * event, ListBase * handlers) Line 3095	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 3235	C
 	blender.exe!wm_event_do_region_handlers(bContext * C, wmEvent * event, ARegion * region) Line 3653	C
 	blender.exe!wm_event_do_handlers_area_regions(bContext * C, wmEvent * event, ScrArea * area) Line 3683	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3879	C
 	blender.exe!WM_main(bContext * C) Line 626	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 551	C
 	[External Code]
Julien Kaspar (JulienKaspar) changed the subtype of this task from "Report" to "Bug".Apr 26 2022, 12:38 PM