Page MenuHome

Texture paint: crash when painting with clone brush
Closed, ResolvedPublicBUG


System Information
Operating system: Linux-5.11.0-40-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.106.00

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-15 21:08, hash: rB7e42ae7c1af0
Broken: version: 2.93.4, branch: master, commit date: 2021-08-31 09:23, hash: rBb7205031cec4
Worked: (newest version of Blender that worked as expected)

Short description of error
Trying to clone from paint slots using "Mode= material" "instead "Mode=image" its bugged and potentially crashes

Exact steps for others to reproduce the error

  • Disconnecting the uv from the bottom texture
  • Switch textures four times
  • Paint a long stroke
  • Undo once
  • Undo again, nothing should happend but its required this second undo to trigger the bug
  • Try painting

Test File:

blender.exe         :0x00007FF739615C70  CustomData_get_named_layer_index C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\blenkernel\intern\customdata.c:2335
blender.exe         :0x00007FF739615B70  CustomData_get_layer_named C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\blenkernel\intern\customdata.c:3270
blender.exe         :0x00007FF739DE8F40  project_paint_prepare_all_faces C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_image_proj.c:4341
blender.exe         :0x00007FF739DE6A20  project_paint_begin C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_image_proj.c:4547
blender.exe         :0x00007FF739DE19C0  paint_proj_new_stroke C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_image_proj.c:5978
blender.exe         :0x00007FF739DDD8D0  texture_paint_init C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_image.c:505
blender.exe         :0x00007FF739DDD0D0  paint_stroke_test_start C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_image.c:687
blender.exe         :0x00007FF739E1EE30  paint_stroke_modal C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_stroke.c:1481
blender.exe         :0x00007FF739DDCA10  paint_invoke C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\editors\sculpt_paint\paint_image.c:709
blender.exe         :0x00007FF739523C40  wm_operator_invoke C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm_event_system.c:1354
blender.exe         :0x00007FF739521850  wm_handler_operator_call C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm_event_system.c:2359
blender.exe         :0x00007FF739523050  wm_handlers_do_keymap_with_keymap_handler C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm_event_system.c:2712
blender.exe         :0x00007FF739522820  wm_handlers_do_intern C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm_event_system.c:3039
blender.exe         :0x00007FF739521E70  wm_handlers_do C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm_event_system.c:3176
blender.exe         :0x00007FF73951EFB0  wm_event_do_handlers C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm_event_system.c:3739
blender.exe         :0x00007FF7395097D0  WM_main C:\Users\Pratik\Desktop\BlenderOSP\blender\source\blender\windowmanager\intern\wm.c:650
blender.exe         :0x00007FF739504FD0  main C:\Users\Pratik\Desktop\BlenderOSP\blender\source\creator\creator.c:563
blender.exe         :0x00007FF73A2CCCF8  __scrt_common_main_seh d:\A01\_work\12\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
KERNEL32.DLL        :0x00007FF8D9FD7020  BaseThreadInitThunk
ntdll.dll           :0x00007FF8DABE2630  RtlUserThreadStart

Event Timeline

Hi, thanks for the report. Can confirm the behavior but no crash here on master: 7e42ae7c1af0

(I can also reproduce this on previous versions, may be a known issue?)

Could you please attach crash logs?:

hi @Pratik Borhade (PratikPB2123) i admit getting to it crashing was harder this time than yesterdays, in this case i have to play a bit more disconnecting uvs from the grid texture and switching uvs in the data click back and forward, basically all i did in the video but it was quite random hope there is a pattern in the logs

Try 1


Try 3

sorry @pratik cirkleinc (pratik) Borhade (PratikPB2123) i tag you by mistake and im not sure how unsuscribe you from this task

Hi, still unable to reproduce the crash. Could you please check again with factory prefs?: EditPreferencesSave & LoadLoad Factory Preferences

i tag you by mistake and im not sure how unsuscribe you from this task

No problem, I will remove other person :)
(To tag a person, use the name written in bracket after @)

@Pratik Borhade (PratikPB2123) im testing it under ubuntu, ill try to test it under windows later, maybe random or may be the OS, im not sure i wasn't able to pinpoint the secuence to trigger the bug, but the undo was a variable in all crashes

this is the test loading factory settings

After a few more tries i did pinpoint a bit more the way to trigger the crash
Open this blend file, its basically the same as before but prepared to paint directly (one less step)

-disconnecting the uv from the bottom texture
-switch textures four times
-paint a long stroke
-undo once
-undo again, nothing should happend but its required this second undo to trigger the bug
-try painting

@Pratik Borhade (PratikPB2123) i just tested the release candidate and it crashes consistently with the instructions in the last message

Hi, thanks. I can now reproduce the crash with instructions provided in last message
(Will also see if similar crash report exists or not on tracker)

I will create separate report for other issue as this report currently has two separate reports)

Pratik Borhade (PratikPB2123) renamed this task from Clone brush, cloning from painting slot, material mode, delays and crashes to Texture paint: crash when paining with clone brush.Nov 26 2021, 8:05 AM
Pratik Borhade (PratikPB2123) renamed this task from Texture paint: crash when paining with clone brush to Texture paint: crash when painting with clone brush.
Pratik Borhade (PratikPB2123) changed the task status from Needs Triage to Confirmed.
Pratik Borhade (PratikPB2123) updated the task description. (Show Details)
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Bug".Nov 26 2021, 10:16 AM