Crash changing any object property in depsgraph_update_post (with the viewport compositing enabled) #107235

Open
opened 2023-04-22 10:54:04 +02:00 by Nikita Akimov · 3 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 680/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.27

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: 3.4

Short description of error
This error occurs only if the viewport compositor is enabled - rendered mode of the viewport and Compositor = Always.
When trying to change the viewport color of the object by script on depsgraph update event, this error occurs.

The short script example:

import bpy

def on_depsgraph_update_post(scene, depsgraph):
    if depsgraph.id_type_updated('SCENE'):
        for obj in depsgraph.updates:
            if isinstance(obj.id, bpy.types.Object):
                print('change object color')
                bpy.data.objects[obj.id.name].color = (1, 0, 0, 0)

bpy.app.handlers.depsgraph_update_post.append(
    on_depsgraph_update_post
)

After executing this script in the Text editor, switching to the "Rendered" mode of the 3D Viewport and enabling viewport compositing - when adding or copying the object - Blender throws an error.

This occurs only if the viewport compositing is enabled, if it is not used - code works as expected.

Error occurs on 3.5 and 3.6 alpha.

Exact steps for others to reproduce the error

  1. I attached .blend file with the example
  2. Open .blend file
  3. Switch the viewport to the "Rendered" mode (z - Rendered)
  4. Execute script in the Text editor
  5. Try to copy cube (shift + d)
  6. Error throws
**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 680/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.27 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: 3.4 **Short description of error** This error occurs only if the viewport compositor is enabled - rendered mode of the viewport and Compositor = Always. When trying to change the viewport color of the object by script on depsgraph update event, this error occurs. The short script example: ``` import bpy def on_depsgraph_update_post(scene, depsgraph): if depsgraph.id_type_updated('SCENE'): for obj in depsgraph.updates: if isinstance(obj.id, bpy.types.Object): print('change object color') bpy.data.objects[obj.id.name].color = (1, 0, 0, 0) bpy.app.handlers.depsgraph_update_post.append( on_depsgraph_update_post ) ``` After executing this script in the Text editor, switching to the "Rendered" mode of the 3D Viewport and enabling viewport compositing - when adding or copying the object - Blender throws an error. This occurs only if the viewport compositing is enabled, if it is not used - code works as expected. Error occurs on 3.5 and 3.6 alpha. **Exact steps for others to reproduce the error** 1. I attached .blend file with the example 2. Open .blend file 3. Switch the viewport to the "Rendered" mode (z - Rendered) 4. Execute script in the Text editor 5. Try to copy cube (shift + d) 6. Error throws
Nikita Akimov added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-04-22 10:54:05 +02:00
Member

In debug it also crashed at get_input("Image"); in CompositeOperation::execute(), likely to be a threading racing condition since it doesn't consistently crash at one place.

return *results_mapped_to_inputs_.lookup(identifier); throws an exception, so likely the .lookup("Deprecated_003") returns 0, indicating the composition hasn't finished at the time this function is called. ("Deprecated" as in RE_PASSNAME_DEPRECATED).

My guess is it might be duplication another DG update but current one is still being composited?

In debug it also crashed at `get_input("Image");` in `CompositeOperation::execute()`, likely to be a threading racing condition since it doesn't consistently crash at one place. `return *results_mapped_to_inputs_.lookup(identifier);` throws an exception, so likely the `.lookup("Deprecated_003")` returns 0, indicating the composition hasn't finished at the time this function is called. ("Deprecated" as in RE_PASSNAME_DEPRECATED). My guess is it might be duplication another DG update but current one is still being composited?
YimingWu added the
Interest
Dependency Graph
label 2023-04-23 07:52:33 +02:00
YimingWu added
Module
Core
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-04-23 08:44:48 +02:00
Member

This happens with changing any object property (not only viewport color) -- possibly changing other stuff too, but havent checked further.

Will raise priority here (since it is a crasher that is not too uncommon to run into)

==282875==ERROR: AddressSanitizer: heap-use-after-free on address 0x61300014ce58 at pc 0x000008ce9e74 bp 0x7fffffffd250 sp 0x7fffffffd248
READ of size 8 at 0x61300014ce58 thread T0
    #0 0x8ce9e73 in blender::nodes::node_composite_render_layer_cc::RenderLayerOperation::execute() /blender/source/blender/nodes/composite/nodes/node_composite_image.cc:694
    #1 0x85a8851 in blender::realtime_compositor::Operation::evaluate() /blender/source/blender/compositor/realtime_compositor/intern/operation.cc:35
    #2 0x8597e91 in blender::realtime_compositor::Evaluator::evaluate() /blender/source/blender/compositor/realtime_compositor/intern/evaluator.cc:40
    #3 0x56420cf in blender::draw::compositor::Engine::draw() /blender/source/blender/draw/engines/compositor/compositor_engine.cc:212
    #4 0x563d3d3 in compositor_engine_draw /blender/source/blender/draw/engines/compositor/compositor_engine.cc:288
    #5 0x54f2dd1 in drw_engines_draw_scene /blender/source/blender/draw/intern/draw_manager_c.cc:1116
    #6 0x54f87e7 in DRW_draw_render_loop_ex(Depsgraph*, RenderEngineType*, ARegion*, View3D*, GPUViewport*, bContext const*) /blender/source/blender/draw/intern/draw_manager_c.cc:1755
    #7 0x54f735c in DRW_draw_view(bContext const*) /blender/source/blender/draw/intern/draw_manager_c.cc:1627
    #8 0xc3911d9 in view3d_draw_view /blender/source/blender/editors/space_view3d/view3d_draw.cc:1569
    #9 0xc39155c in view3d_main_region_draw /blender/source/blender/editors/space_view3d/view3d_draw.cc:1604
    #10 0x7949f05 in ED_region_do_draw(bContext*, ARegion*) /blender/source/blender/editors/screen/area.cc:528
    #11 0x47e4b5c in wm_draw_window_offscreen /blender/source/blender/windowmanager/intern/wm_draw.cc:1006
    #12 0x47e6252 in wm_draw_window /blender/source/blender/windowmanager/intern/wm_draw.cc:1173
    #13 0x47e9360 in wm_draw_update(bContext*) /blender/source/blender/windowmanager/intern/wm_draw.cc:1571
    #14 0x47c8ad2 in WM_main(bContext*) /blender/source/blender/windowmanager/intern/wm.cc:625
    #15 0x7ff679 in main /blender/source/creator/creator.cc:574
    #16 0x7fffe6446149 in __libc_start_call_main (/lib64/libc.so.6+0x28149) (BuildId: 788cdd41a15985bf8e0a48d213a46e07d58822df)
    #17 0x7fffe644620a in __libc_start_main_impl (/lib64/libc.so.6+0x2820a) (BuildId: 788cdd41a15985bf8e0a48d213a46e07d58822df)
    #18 0x7fea24 in _start (/build_linux_debug/bin/blender+0x7fea24) (BuildId: 44f4c0a98937428ba7388a092c9e99bc0074cfd8)

0x61300014ce58 is located 216 bytes inside of 368-byte region [0x61300014cd80,0x61300014cef0)
freed by thread T46 here:
    #0 0x7ffff78d7fb8 in __interceptor_free.part.0 (/lib64/libasan.so.8+0xd7fb8) (BuildId: 7fcb7759bc17ef47f9682414b6d99732d6a6ab0c)
    #1 0x47b62d0 in MEM_lockfree_freeN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:110
    #2 0x10fe19c in blender::bke::node_free_node(bNodeTree*, bNode*) /blender/source/blender/blenkernel/intern/node.cc:3474
    #3 0x10d5faf in ntree_free_data /blender/source/blender/blenkernel/intern/node.cc:291
    #4 0xd9dce0 in BKE_libblock_free_datablock(ID*, int) /blender/source/blender/blenkernel/intern/lib_id_delete.cc:75
    #5 0x467571c in blender::deg::deg_free_copy_on_write_datablock(ID*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1017
    #6 0x4674e08 in blender::deg::deg_update_copy_on_write_datablock(blender::deg::Depsgraph const*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:896
    #7 0x4675c6a in blender::deg::deg_evaluate_copy_on_write(Depsgraph*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1032
    #8 0x46fa0c7 in operator() /blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:182
    #9 0x4751abc in __invoke_impl<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:61
    #10 0x474812d in __invoke_r<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:111
    #11 0x474203f in _M_invoke /usr/include/c++/13/bits/std_function.h:290
    #12 0x466d0ce in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/13/bits/std_function.h:591
    #13 0x4667647 in evaluate_node /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:101
    #14 0x4667a79 in deg_task_run_func /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:118
    #15 0x44f0926 in Task::operator()() const /blender/source/blender/blenlib/intern/task_pool.cc:166
    #16 0x44f575e in tbb::internal::function_task<Task>::execute() /lib/linux_x86_64_glibc_228/tbb/include/tbb/task.h:1059
    #17 0x7ffff7f78b44 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/build_linux_debug/bin/lib/libtbb.so.2+0x29b44) (BuildId: e112c632ed5be89e6711cf88c8b925d3f1fd6331)

previously allocated by thread T0 here:
    #0 0x7ffff78d92ef in malloc (/lib64/libasan.so.8+0xd92ef) (BuildId: 7fcb7759bc17ef47f9682414b6d99732d6a6ab0c)
    #1 0x47b6c64 in MEM_lockfree_mallocN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:258
    #2 0x10f2047 in blender::bke::node_copy_with_mapping(bNodeTree*, bNode const&, int, bool, blender::Map<bNodeSocket const*, bNodeSocket*, 4l, blender::PythonProbingStrategy<1ul, false>, blender::DefaultHash<bNodeSocket const*>, blender::DefaultEquality<bNodeSocket const*>, blender::IntrusiveMapSlot<bNodeSocket const*, bNodeSocket*, blender::PointerKeyInfo<bNodeSocket const*> >, blender::GuardedAllocator>&) /blender/source/blender/blenkernel/intern/node.cc:2646
    #3 0x10d2a21 in ntree_copy_data /blender/source/blender/blenkernel/intern/node.cc:171
    #4 0xd8c755 in BKE_id_copy_ex(Main*, ID const*, ID**, int) /blender/source/blender/blenkernel/intern/lib_id.cc:656
    #5 0x46704ee in id_copy_inplace_no_main /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:286
    #6 0x467458d in deg_expand_copy_on_write_datablock /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:821
    #7 0x4674e21 in blender::deg::deg_update_copy_on_write_datablock(blender::deg::Depsgraph const*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:897
    #8 0x4675c6a in blender::deg::deg_evaluate_copy_on_write(Depsgraph*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1032
    #9 0x46fa0c7 in operator() /blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:182
    #10 0x4751abc in __invoke_impl<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:61
    #11 0x474812d in __invoke_r<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:111
    #12 0x474203f in _M_invoke /usr/include/c++/13/bits/std_function.h:290
    #13 0x466d0ce in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/13/bits/std_function.h:591
    #14 0x4667647 in evaluate_node /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:101
    #15 0x4667a79 in deg_task_run_func /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:118
    #16 0x44f0926 in Task::operator()() const /blender/source/blender/blenlib/intern/task_pool.cc:166
    #17 0x44f575e in tbb::internal::function_task<Task>::execute() /lib/linux_x86_64_glibc_228/tbb/include/tbb/task.h:1059
    #18 0x7ffff7f78b44 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/build_linux_debug/bin/lib/libtbb.so.2+0x29b44) (BuildId: e112c632ed5be89e6711cf88c8b925d3f1fd6331)
This happens with changing any object property (not only viewport color) -- possibly changing other stuff too, but havent checked further. Will raise priority here (since it is a crasher that is not too uncommon to run into) ``` ==282875==ERROR: AddressSanitizer: heap-use-after-free on address 0x61300014ce58 at pc 0x000008ce9e74 bp 0x7fffffffd250 sp 0x7fffffffd248 READ of size 8 at 0x61300014ce58 thread T0 #0 0x8ce9e73 in blender::nodes::node_composite_render_layer_cc::RenderLayerOperation::execute() /blender/source/blender/nodes/composite/nodes/node_composite_image.cc:694 #1 0x85a8851 in blender::realtime_compositor::Operation::evaluate() /blender/source/blender/compositor/realtime_compositor/intern/operation.cc:35 #2 0x8597e91 in blender::realtime_compositor::Evaluator::evaluate() /blender/source/blender/compositor/realtime_compositor/intern/evaluator.cc:40 #3 0x56420cf in blender::draw::compositor::Engine::draw() /blender/source/blender/draw/engines/compositor/compositor_engine.cc:212 #4 0x563d3d3 in compositor_engine_draw /blender/source/blender/draw/engines/compositor/compositor_engine.cc:288 #5 0x54f2dd1 in drw_engines_draw_scene /blender/source/blender/draw/intern/draw_manager_c.cc:1116 #6 0x54f87e7 in DRW_draw_render_loop_ex(Depsgraph*, RenderEngineType*, ARegion*, View3D*, GPUViewport*, bContext const*) /blender/source/blender/draw/intern/draw_manager_c.cc:1755 #7 0x54f735c in DRW_draw_view(bContext const*) /blender/source/blender/draw/intern/draw_manager_c.cc:1627 #8 0xc3911d9 in view3d_draw_view /blender/source/blender/editors/space_view3d/view3d_draw.cc:1569 #9 0xc39155c in view3d_main_region_draw /blender/source/blender/editors/space_view3d/view3d_draw.cc:1604 #10 0x7949f05 in ED_region_do_draw(bContext*, ARegion*) /blender/source/blender/editors/screen/area.cc:528 #11 0x47e4b5c in wm_draw_window_offscreen /blender/source/blender/windowmanager/intern/wm_draw.cc:1006 #12 0x47e6252 in wm_draw_window /blender/source/blender/windowmanager/intern/wm_draw.cc:1173 #13 0x47e9360 in wm_draw_update(bContext*) /blender/source/blender/windowmanager/intern/wm_draw.cc:1571 #14 0x47c8ad2 in WM_main(bContext*) /blender/source/blender/windowmanager/intern/wm.cc:625 #15 0x7ff679 in main /blender/source/creator/creator.cc:574 #16 0x7fffe6446149 in __libc_start_call_main (/lib64/libc.so.6+0x28149) (BuildId: 788cdd41a15985bf8e0a48d213a46e07d58822df) #17 0x7fffe644620a in __libc_start_main_impl (/lib64/libc.so.6+0x2820a) (BuildId: 788cdd41a15985bf8e0a48d213a46e07d58822df) #18 0x7fea24 in _start (/build_linux_debug/bin/blender+0x7fea24) (BuildId: 44f4c0a98937428ba7388a092c9e99bc0074cfd8) 0x61300014ce58 is located 216 bytes inside of 368-byte region [0x61300014cd80,0x61300014cef0) freed by thread T46 here: #0 0x7ffff78d7fb8 in __interceptor_free.part.0 (/lib64/libasan.so.8+0xd7fb8) (BuildId: 7fcb7759bc17ef47f9682414b6d99732d6a6ab0c) #1 0x47b62d0 in MEM_lockfree_freeN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:110 #2 0x10fe19c in blender::bke::node_free_node(bNodeTree*, bNode*) /blender/source/blender/blenkernel/intern/node.cc:3474 #3 0x10d5faf in ntree_free_data /blender/source/blender/blenkernel/intern/node.cc:291 #4 0xd9dce0 in BKE_libblock_free_datablock(ID*, int) /blender/source/blender/blenkernel/intern/lib_id_delete.cc:75 #5 0x467571c in blender::deg::deg_free_copy_on_write_datablock(ID*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1017 #6 0x4674e08 in blender::deg::deg_update_copy_on_write_datablock(blender::deg::Depsgraph const*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:896 #7 0x4675c6a in blender::deg::deg_evaluate_copy_on_write(Depsgraph*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1032 #8 0x46fa0c7 in operator() /blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:182 #9 0x4751abc in __invoke_impl<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:61 #10 0x474812d in __invoke_r<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:111 #11 0x474203f in _M_invoke /usr/include/c++/13/bits/std_function.h:290 #12 0x466d0ce in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/13/bits/std_function.h:591 #13 0x4667647 in evaluate_node /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:101 #14 0x4667a79 in deg_task_run_func /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:118 #15 0x44f0926 in Task::operator()() const /blender/source/blender/blenlib/intern/task_pool.cc:166 #16 0x44f575e in tbb::internal::function_task<Task>::execute() /lib/linux_x86_64_glibc_228/tbb/include/tbb/task.h:1059 #17 0x7ffff7f78b44 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/build_linux_debug/bin/lib/libtbb.so.2+0x29b44) (BuildId: e112c632ed5be89e6711cf88c8b925d3f1fd6331) previously allocated by thread T0 here: #0 0x7ffff78d92ef in malloc (/lib64/libasan.so.8+0xd92ef) (BuildId: 7fcb7759bc17ef47f9682414b6d99732d6a6ab0c) #1 0x47b6c64 in MEM_lockfree_mallocN /blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:258 #2 0x10f2047 in blender::bke::node_copy_with_mapping(bNodeTree*, bNode const&, int, bool, blender::Map<bNodeSocket const*, bNodeSocket*, 4l, blender::PythonProbingStrategy<1ul, false>, blender::DefaultHash<bNodeSocket const*>, blender::DefaultEquality<bNodeSocket const*>, blender::IntrusiveMapSlot<bNodeSocket const*, bNodeSocket*, blender::PointerKeyInfo<bNodeSocket const*> >, blender::GuardedAllocator>&) /blender/source/blender/blenkernel/intern/node.cc:2646 #3 0x10d2a21 in ntree_copy_data /blender/source/blender/blenkernel/intern/node.cc:171 #4 0xd8c755 in BKE_id_copy_ex(Main*, ID const*, ID**, int) /blender/source/blender/blenkernel/intern/lib_id.cc:656 #5 0x46704ee in id_copy_inplace_no_main /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:286 #6 0x467458d in deg_expand_copy_on_write_datablock /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:821 #7 0x4674e21 in blender::deg::deg_update_copy_on_write_datablock(blender::deg::Depsgraph const*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:897 #8 0x4675c6a in blender::deg::deg_evaluate_copy_on_write(Depsgraph*, blender::deg::IDNode const*) /blender/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1032 #9 0x46fa0c7 in operator() /blender/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc:182 #10 0x4751abc in __invoke_impl<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:61 #11 0x474812d in __invoke_r<void, blender::deg::DepsgraphNodeBuilder::add_id_node(ID*)::<lambda(Depsgraph*)>&, Depsgraph*> /usr/include/c++/13/bits/invoke.h:111 #12 0x474203f in _M_invoke /usr/include/c++/13/bits/std_function.h:290 #13 0x466d0ce in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/13/bits/std_function.h:591 #14 0x4667647 in evaluate_node /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:101 #15 0x4667a79 in deg_task_run_func /blender/source/blender/depsgraph/intern/eval/deg_eval.cc:118 #16 0x44f0926 in Task::operator()() const /blender/source/blender/blenlib/intern/task_pool.cc:166 #17 0x44f575e in tbb::internal::function_task<Task>::execute() /lib/linux_x86_64_glibc_228/tbb/include/tbb/task.h:1059 #18 0x7ffff7f78b44 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::process_bypass_loop(tbb::internal::context_guard_helper<false>&, tbb::task*, long) (/build_linux_debug/bin/lib/libtbb.so.2+0x29b44) (BuildId: e112c632ed5be89e6711cf88c8b925d3f1fd6331) ```
Philipp Oeser changed title from EXCEPTION_ACCESS_VIOLATION error when trying to change object viewport color with the viewport compositing enabled in depsgraph_update_post to Crash changing any object property in depsgraph_update_post (with the viewport compositing enabled) 2024-02-16 12:51:33 +01:00
Philipp Oeser added
Priority
High
and removed
Priority
Normal
labels 2024-02-16 12:51:52 +01:00

I'd suspect this to be a similar case as in #118223?

In general, changing data in depsgraph handlers has to be done carefully (see also https://docs.blender.org/api/master/bpy.app.handlers.html#note-on-altering-data ).

Here it looks like changing object data triggers another depsgraph update, while the drawing code is using older (freed) evaluated data?

Also not sure why this is assigned to #Core module, looks more like an issue in drawing code?

I'd suspect this to be a similar case as in #118223? In general, changing data in depsgraph handlers has to be done carefully (see also https://docs.blender.org/api/master/bpy.app.handlers.html#note-on-altering-data ). Here it looks like changing object data triggers another depsgraph update, while the drawing code is using older (freed) evaluated data? Also not sure why this is assigned to #Core module, looks more like an issue in drawing code?
Bastien Montagne added
Priority
Normal
and removed
Priority
High
labels 2024-03-07 12:44:29 +01:00
Bastien Montagne added
Module
VFX & Video
Interest
Core
and removed
Module
Core
labels 2024-03-07 12:45:52 +01:00
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
4 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#107235
No description provided.