From 795f63e1429a0bd98423372a34da668de319be94 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Fri, 31 Jan 2025 16:47:54 +0100 Subject: [PATCH] Fix #132941: crash due use after-free in properties editor during baking The crash happens because some layout drawing code accesses the evaluated data which is being generated by the baking thread. This access is not thread safe currently. This patch simply locks the UI of the properties editor when the interface is locked using `WM_set_locked_interface` which is done during baking. The same is done for the 3d view, node editor and spreadsheet already. Pull Request: https://projects.blender.org/blender/blender/pulls/133867 --- source/blender/editors/space_buttons/space_buttons.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/space_buttons/space_buttons.cc b/source/blender/editors/space_buttons/space_buttons.cc index 2f2f4109414..5588c507bc4 100644 --- a/source/blender/editors/space_buttons/space_buttons.cc +++ b/source/blender/editors/space_buttons/space_buttons.cc @@ -1031,6 +1031,7 @@ void ED_spacetype_buttons() art->draw = ED_region_panels_draw; art->listener = buttons_main_region_listener; art->keymapflag = ED_KEYMAP_UI | ED_KEYMAP_FRAMES; + art->lock = true; buttons_context_register(art); BLI_addhead(&st->regiontypes, art);