Crash when using Cycles preview or render - custom data layer / auto smooth #89455

Closed
opened 2021-06-26 17:33:40 +02:00 by Amy Moo · 27 comments

System Information
Operating system: Windows 10
Graphics card: Quadro FX 880M

Blender Version
Broken: blender-3.0.0-alpha+master.5759bbe9f9e8-windows.amd64-release
Bisecting identified commit 5f9677fe0c
Worked: blender-3.0.0-alpha+master.7b524d9b710f-windows.amd64-release

Short description of error
Blender crashes when using Cycles preview or render on the file attached. It works with Eevee. I don't think it is a general issue for all blends. I have another blend file that works without issues.

Exact steps for others to reproduce the error

  1. Load the untitled.blend contained in the attached zip file
  2. Ensure that Cycles is used as render engine (is already the case in the saved file)
  3. Change viewport shading to Rendered (Z 8)
    TestBlend.zip
## 26394==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fffa4810800 at pc 0x00001c134add bp 0x7fffc87b97b0 sp 0x7fffc87b97a0
READ of size 8 at 0x7fffa4810800 thread #10
    - 0 0x1c134adc in MEM_lockfree_allocN_len /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:96
    - 1 0x1c134bb7 in MEM_lockfree_freeN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:109
    - 2 0x50adc03 in customData_free_layer__internal /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2218
    - 3 0x50adee1 in CustomData_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2240
    - 4 0x3aed8c3 in mesh_clear_geometry /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:807
    - 5 0x3ae1486 in mesh_free_data /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:159
    - 6 0x3a341c8 in BKE_libblock_free_datablock /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:81
    - 7 0x3a347a2 in BKE_id_free_ex /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:164
    - 8 0x3a3495b in BKE_id_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:208
    - 9 0x3cbedd9 in BKE_object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/object.c:5682
    - 10 0x7f7d2e9 in rna_Object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/makesrna/intern/rna_object_api.c:404
    - 11 0x7f9cf2d in Object_to_mesh_clear_func /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/rna_object_gen.c:3454
    - 12 0xee30269 in BL::Object::to_mesh_clear() /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/RNA_blender_cpp.h:58399
    - 13 0xef0aba9 in free_object_to_mesh /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_util.h:116
    - 14 0xef370f2 in ccl::BlenderSync::sync_mesh(BL::Depsgraph, BL::Object, ccl::Mesh*) /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_mesh.cpp:1175
    - 15 0xeeeb559 in operator() /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_geometry.cpp:168
    - 16 0xeeef8a6 in _M_invoke /usr/include/c++/9/bits/std_function.h:300
    - 17 0x8774d85 in std::function<void ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688
    - 18 0x16cef1f5 in tbb::internal::function_task<std::function<void ()> >::execute() /home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1059
    - 19 0x55c5874 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5874)
    - 20 0x55c5b2a in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5b2a)
    - 21 0x55b4726 in tbb::internal::arena::process(tbb::internal::generic_scheduler&) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55b4726)
    - 22 0x55bf55f in tbb::internal::market::process(rml::job&) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55bf55f)
    - 23 0x55c159b in tbb::internal::rml::private_worker::run() (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c159b)
    - 24 0x55c1798 in tbb::internal::rml::private_worker::thread_routine(void*) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c1798)
    - 25 0x7ffff7564608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477
    #26 0x7ffff6f44292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292)

0x7fffa4810800 is located 0 bytes inside of 12264848-byte region [0x7fffa4810800,0x7fffa53c2d90)
freed by thread #10 here:
    - 0 0x7ffff76907cf in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.5+0x10d7cf)
    - 1 0x1c134f42 in MEM_lockfree_freeN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:130
    - 2 0x50adc03 in customData_free_layer__internal /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2218
    - 3 0x50adee1 in CustomData_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2240
    - 4 0x3aed8c3 in mesh_clear_geometry /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:807
    - 5 0x3ae1486 in mesh_free_data /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:159
    - 6 0x3a341c8 in BKE_libblock_free_datablock /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:81
    - 7 0x3a347a2 in BKE_id_free_ex /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:164
    - 8 0x3a3495b in BKE_id_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:208
    - 9 0x3cbedd9 in BKE_object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/object.c:5682
    - 10 0x7f7d2e9 in rna_Object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/makesrna/intern/rna_object_api.c:404
    - 11 0x7f9cf2d in Object_to_mesh_clear_func /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/rna_object_gen.c:3454
    - 12 0xee30269 in BL::Object::to_mesh_clear() /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/RNA_blender_cpp.h:58399
    - 13 0xef0aba9 in free_object_to_mesh /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_util.h:116
    - 14 0xef370f2 in ccl::BlenderSync::sync_mesh(BL::Depsgraph, BL::Object, ccl::Mesh*) /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_mesh.cpp:1175
    - 15 0xeeeb559 in operator() /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_geometry.cpp:168
    - 16 0xeeef8a6 in _M_invoke /usr/include/c++/9/bits/std_function.h:300
    - 17 0x8774d85 in std::function<void ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688
    - 18 0x16cef1f5 in tbb::internal::function_task<std::function<void ()> >::execute() /home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1059
    - 19 0x55c5874 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5874)

previously allocated by thread #10 here:
    - 0 0x7ffff7690bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
    - 1 0x1c1359a2 in MEM_lockfree_mallocN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:277
    - 2 0x1c135d49 in MEM_lockfree_malloc_arrayN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:313
    - 3 0x50b2712 in customData_add_layer__internal /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2535
    - 4 0x50ace61 in CustomData_merge /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2158
    - 5 0x50ad851 in CustomData_copy /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2203
    - 6 0x3ae0c75 in mesh_copy_data /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:131
    - 7 0x3a22945 in BKE_id_copy_ex /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id.c:602
    - 8 0x53e117a in mesh_new_from_mesh /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh_convert.c:1206
    - 9 0x53e1b4a in mesh_new_from_mesh_object /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh_convert.c:1257
    - 10 0x53e1c4b in BKE_mesh_new_from_object /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh_convert.c:1276
    - 11 0x3cbec55 in BKE_object_to_mesh /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/object.c:5672
    - 12 0x7f7d2cb in rna_Object_to_mesh /home/dev/01-data/01-git/blender-git/blender/source/blender/makesrna/intern/rna_object_api.c:399
    - 13 0x7f9ccd2 in Object_to_mesh_func /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/rna_object_gen.c:3429
    - 14 0xee3013a in BL::Object::to_mesh(bool, BL::Depsgraph&) /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/RNA_blender_cpp.h:58393
    - 15 0xef0a7b0 in object_to_mesh /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_util.h:82
    - 16 0xef36af7 in ccl::BlenderSync::sync_mesh(BL::Depsgraph, BL::Object, ccl::Mesh*) /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_mesh.cpp:1160
    - 17 0xeeeb559 in operator() /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_geometry.cpp:168
    - 18 0xeeef8a6 in _M_invoke /usr/include/c++/9/bits/std_function.h:300
    - 19 0x8774d85 in std::function<void ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688
    - 20 0x16cef1f5 in tbb::internal::function_task<std::function<void ()> >::execute() /home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1059
    - 21 0x55c5874 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5874)

Thread #10 created by T0 here:
    - 0 0x7ffff75bd805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
    - 1 0x55c1488 in tbb::internal::rml::private_server::wake_some(int) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c1488)
    #2 0x60c00005ae7f  (<unknown module>)

SUMMARY: AddressSanitizer: heap-use-after-free /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:96 in MEM_lockfree_allocN_len
Shadow bytes around the buggy address:
  0x1000748fa0b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1000748fa0c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1000748fa0d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1000748fa0e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x1000748fa0f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
# >0x1000748fa100:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1000748fa110: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1000748fa120: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1000748fa130: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1000748fa140: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x1000748fa150: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):

Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc

**System Information** Operating system: Windows 10 Graphics card: Quadro FX 880M **Blender Version** Broken: blender-3.0.0-alpha+master.5759bbe9f9e8-windows.amd64-release Bisecting identified commit 5f9677fe0c Worked: blender-3.0.0-alpha+master.7b524d9b710f-windows.amd64-release **Short description of error** Blender crashes when using Cycles preview or render on the file attached. It works with Eevee. I don't think it is a general issue for all blends. I have another blend file that works without issues. **Exact steps for others to reproduce the error** 1. Load the untitled.blend contained in the attached zip file 2. Ensure that Cycles is used as render engine (is already the case in the saved file) 3. Change viewport shading to Rendered (Z 8) [TestBlend.zip](https://archive.blender.org/developer/F10203042/TestBlend.zip) ```lines ## 26394==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fffa4810800 at pc 0x00001c134add bp 0x7fffc87b97b0 sp 0x7fffc87b97a0 READ of size 8 at 0x7fffa4810800 thread #10 - 0 0x1c134adc in MEM_lockfree_allocN_len /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:96 - 1 0x1c134bb7 in MEM_lockfree_freeN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:109 - 2 0x50adc03 in customData_free_layer__internal /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2218 - 3 0x50adee1 in CustomData_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2240 - 4 0x3aed8c3 in mesh_clear_geometry /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:807 - 5 0x3ae1486 in mesh_free_data /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:159 - 6 0x3a341c8 in BKE_libblock_free_datablock /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:81 - 7 0x3a347a2 in BKE_id_free_ex /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:164 - 8 0x3a3495b in BKE_id_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:208 - 9 0x3cbedd9 in BKE_object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/object.c:5682 - 10 0x7f7d2e9 in rna_Object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/makesrna/intern/rna_object_api.c:404 - 11 0x7f9cf2d in Object_to_mesh_clear_func /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/rna_object_gen.c:3454 - 12 0xee30269 in BL::Object::to_mesh_clear() /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/RNA_blender_cpp.h:58399 - 13 0xef0aba9 in free_object_to_mesh /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_util.h:116 - 14 0xef370f2 in ccl::BlenderSync::sync_mesh(BL::Depsgraph, BL::Object, ccl::Mesh*) /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_mesh.cpp:1175 - 15 0xeeeb559 in operator() /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_geometry.cpp:168 - 16 0xeeef8a6 in _M_invoke /usr/include/c++/9/bits/std_function.h:300 - 17 0x8774d85 in std::function<void ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688 - 18 0x16cef1f5 in tbb::internal::function_task<std::function<void ()> >::execute() /home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1059 - 19 0x55c5874 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5874) - 20 0x55c5b2a in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5b2a) - 21 0x55b4726 in tbb::internal::arena::process(tbb::internal::generic_scheduler&) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55b4726) - 22 0x55bf55f in tbb::internal::market::process(rml::job&) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55bf55f) - 23 0x55c159b in tbb::internal::rml::private_worker::run() (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c159b) - 24 0x55c1798 in tbb::internal::rml::private_worker::thread_routine(void*) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c1798) - 25 0x7ffff7564608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477 #26 0x7ffff6f44292 in __clone (/lib/x86_64-linux-gnu/libc.so.6+0x122292) 0x7fffa4810800 is located 0 bytes inside of 12264848-byte region [0x7fffa4810800,0x7fffa53c2d90) freed by thread #10 here: - 0 0x7ffff76907cf in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.5+0x10d7cf) - 1 0x1c134f42 in MEM_lockfree_freeN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:130 - 2 0x50adc03 in customData_free_layer__internal /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2218 - 3 0x50adee1 in CustomData_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2240 - 4 0x3aed8c3 in mesh_clear_geometry /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:807 - 5 0x3ae1486 in mesh_free_data /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:159 - 6 0x3a341c8 in BKE_libblock_free_datablock /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:81 - 7 0x3a347a2 in BKE_id_free_ex /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:164 - 8 0x3a3495b in BKE_id_free /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id_delete.c:208 - 9 0x3cbedd9 in BKE_object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/object.c:5682 - 10 0x7f7d2e9 in rna_Object_to_mesh_clear /home/dev/01-data/01-git/blender-git/blender/source/blender/makesrna/intern/rna_object_api.c:404 - 11 0x7f9cf2d in Object_to_mesh_clear_func /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/rna_object_gen.c:3454 - 12 0xee30269 in BL::Object::to_mesh_clear() /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/RNA_blender_cpp.h:58399 - 13 0xef0aba9 in free_object_to_mesh /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_util.h:116 - 14 0xef370f2 in ccl::BlenderSync::sync_mesh(BL::Depsgraph, BL::Object, ccl::Mesh*) /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_mesh.cpp:1175 - 15 0xeeeb559 in operator() /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_geometry.cpp:168 - 16 0xeeef8a6 in _M_invoke /usr/include/c++/9/bits/std_function.h:300 - 17 0x8774d85 in std::function<void ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688 - 18 0x16cef1f5 in tbb::internal::function_task<std::function<void ()> >::execute() /home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1059 - 19 0x55c5874 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5874) previously allocated by thread #10 here: - 0 0x7ffff7690bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8) - 1 0x1c1359a2 in MEM_lockfree_mallocN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:277 - 2 0x1c135d49 in MEM_lockfree_malloc_arrayN /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:313 - 3 0x50b2712 in customData_add_layer__internal /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2535 - 4 0x50ace61 in CustomData_merge /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2158 - 5 0x50ad851 in CustomData_copy /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/customdata.c:2203 - 6 0x3ae0c75 in mesh_copy_data /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh.c:131 - 7 0x3a22945 in BKE_id_copy_ex /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/lib_id.c:602 - 8 0x53e117a in mesh_new_from_mesh /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh_convert.c:1206 - 9 0x53e1b4a in mesh_new_from_mesh_object /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh_convert.c:1257 - 10 0x53e1c4b in BKE_mesh_new_from_object /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/mesh_convert.c:1276 - 11 0x3cbec55 in BKE_object_to_mesh /home/dev/01-data/01-git/blender-git/blender/source/blender/blenkernel/intern/object.c:5672 - 12 0x7f7d2cb in rna_Object_to_mesh /home/dev/01-data/01-git/blender-git/blender/source/blender/makesrna/intern/rna_object_api.c:399 - 13 0x7f9ccd2 in Object_to_mesh_func /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/rna_object_gen.c:3429 - 14 0xee3013a in BL::Object::to_mesh(bool, BL::Depsgraph&) /home/dev/01-data/01-git/blender-git/build_linux_debug_full/source/blender/makesrna/intern/RNA_blender_cpp.h:58393 - 15 0xef0a7b0 in object_to_mesh /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_util.h:82 - 16 0xef36af7 in ccl::BlenderSync::sync_mesh(BL::Depsgraph, BL::Object, ccl::Mesh*) /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_mesh.cpp:1160 - 17 0xeeeb559 in operator() /home/dev/01-data/01-git/blender-git/blender/intern/cycles/blender/blender_geometry.cpp:168 - 18 0xeeef8a6 in _M_invoke /usr/include/c++/9/bits/std_function.h:300 - 19 0x8774d85 in std::function<void ()>::operator()() const /usr/include/c++/9/bits/std_function.h:688 - 20 0x16cef1f5 in tbb::internal::function_task<std::function<void ()> >::execute() /home/dev/01-data/01-git/blender-git/lib/linux_centos7_x86_64/tbb/include/tbb/task.h:1059 - 21 0x55c5874 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c5874) Thread #10 created by T0 here: - 0 0x7ffff75bd805 in pthread_create (/lib/x86_64-linux-gnu/libasan.so.5+0x3a805) - 1 0x55c1488 in tbb::internal::rml::private_server::wake_some(int) (/home/dev/01-data/01-git/blender-git/build_linux_debug_full/bin/blender+0x55c1488) #2 0x60c00005ae7f (<unknown module>) SUMMARY: AddressSanitizer: heap-use-after-free /home/dev/01-data/01-git/blender-git/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:96 in MEM_lockfree_allocN_len Shadow bytes around the buggy address: 0x1000748fa0b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1000748fa0c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1000748fa0d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1000748fa0e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x1000748fa0f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa # >0x1000748fa100:[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1000748fa110: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1000748fa120: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1000748fa130: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1000748fa140: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x1000748fa150: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): ``` Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ```
Author

Added subscriber: @amy_aimei

Added subscriber: @amy_aimei

#89490 was marked as duplicate of this issue

#89490 was marked as duplicate of this issue

#89492 was marked as duplicate of this issue

#89492 was marked as duplicate of this issue

#89469 was marked as duplicate of this issue

#89469 was marked as duplicate of this issue

#89477 was marked as duplicate of this issue

#89477 was marked as duplicate of this issue

Added subscriber: @rjg

Added subscriber: @rjg

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Could you please check if Blender wrote a crash log in C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt (or simply type %TEMP% into the path bar of the Windows Explorer)? If yes, please upload that file as well.

Could you please check if Blender wrote a crash log in `C:\Users\[your username]\AppData\Local\Temp\[project name].crash.txt` (or simply type `%TEMP%` into the path bar of the Windows Explorer)? If yes, please upload that file as well.
Author

I don't see any crash log file. Maybe, it is not a crash. Blender just terminated. There is no issue if Blender is started with --debug in the command-line. I checked Windows event log, no event related to it.

I don't see any crash log file. Maybe, it is not a crash. Blender just terminated. There is no issue if Blender is started with --debug in the command-line. I checked Windows event log, no event related to it.
Author

In fact, my productive system is Linux. Windows is used for testing. I tried the same with the same build of Linux. Blender frozen/hung in this case. I had to perform kill -9 to end the process. Therefore, I suspected the case in Windows is not really a crash. Again, if Blender is started with --debug, it works. If you find it is easier to check on Linux, please provide the steps to obtain the logs for the case when program freezes/hangs without using --debug in the command-line. I may have the technical skill to help to locate the bug. I suspected the issue is introduced by the changes in Cycles: add view layer option to disable motion blur, in the Filter panel 23042a3fb1 because it affects Cycles only. If I switch the render engine to Eevee, it works too.

In fact, my productive system is Linux. Windows is used for testing. I tried the same with the same build of Linux. Blender frozen/hung in this case. I had to perform kill -9 to end the process. Therefore, I suspected the case in Windows is not really a crash. Again, if Blender is started with --debug, it works. If you find it is easier to check on Linux, please provide the steps to obtain the logs for the case when program freezes/hangs without using --debug in the command-line. I may have the technical skill to help to locate the bug. I suspected the issue is introduced by the changes in Cycles: add view layer option to disable motion blur, in the Filter panel 23042a3fb189 because it affects Cycles only. If I switch the render engine to Eevee, it works too.

Added subscriber: @RC12

Added subscriber: @RC12

I have the same issue on one of my files, blender crashes as soon as I go to rendered view. I got this after running blender.exe -d
Flower_GeometryNodes.crash.txt

I tried it on other files and they dont crash, but they output this in the console
image.png

I have the same issue on one of my files, blender crashes as soon as I go to rendered view. I got this after running ` blender.exe -d ` [Flower_GeometryNodes.crash.txt](https://archive.blender.org/developer/F10203516/Flower_GeometryNodes.crash.txt) I tried it on other files and they dont crash, but they output this in the console ![image.png](https://archive.blender.org/developer/F10203523/image.png)

I can reproduce the crash and will try to bisect. It's a use-after-free.

I can reproduce the crash and will try to bisect. It's a use-after-free.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

I can reproduce the crash

With release build I can also reproduce. (7223a0348f, commit date: 2021-06-27)

>I can reproduce the crash With release build I can also reproduce. (`7223a0348f`, commit date: 2021-06-27)
Robert Guetzkow changed title from Blender crashes when using Cycles Preview or Render to Crash when using Cycles preview or render - custom data layer 2021-06-27 14:15:31 +02:00

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich

@kevindietrich This is likely for you. I've identified that 5f9677fe0c is the first commit where this use-after-free issue becomes apparent.

@kevindietrich This is likely for you. I've identified that 5f9677fe0c is the first commit where this use-after-free issue becomes apparent.

Added subscriber: @SteffenD

Added subscriber: @SteffenD
Philipp Oeser changed title from Crash when using Cycles preview or render - custom data layer to Crash when using Cycles preview or render - custom data layer / auto smooth 2021-06-28 11:35:57 +02:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Added subscribers: @kursadk, @Alaska

Added subscribers: @kursadk, @Alaska

Added subscriber: @kur8cobain

Added subscriber: @kur8cobain

This issue was referenced by 81e12cd9b1

This issue was referenced by 81e12cd9b1233014f18c527fbcea39ad6e9bb414

This issue was referenced by 2dbb492268

This issue was referenced by 2dbb492268c192f617b812b1cec569eae8a1aed3

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Kévin Dietrich self-assigned this 2021-06-28 13:15:40 +02:00

Added subscriber: @Michurre

Added subscriber: @Michurre
Author

It works. Thank you.

It works. Thank you.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
8 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#89455
No description provided.