Page MenuHome

Outliner and viewport missing update after deleting object
Closed, ResolvedPublic

Description

Blender Version
Broken: rB012483b6e4a
Worked: rB012483b6e4a~

Short description of error
Viewport and outliner miss a drawing refresh after deleting objects from the outliner.

Exact steps for others to reproduce the error
Startup file:

  • In the outliner, mouse over the light object, RMB > Delete.

Both viewport and outliner still show the lamp there, until something else triggers the update (e.g. resize editors).
Note if you mouse hover another outliner before a draw update you will get a crash.

[Original report quite was slightly misleading, I heavily edited it -- @Dalai Felinto (dfelinto)]

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.

Can´t confirm with todays build on windows.

"load factory settings" and RMB->delete camera in the outliner
clears here the outliner until you click somewhere into the viewport

(linux rB9d34a9d7e59d73509e17e08465add6ea8f446b5b)

… or moving the mouse over a second outliner e.g. in the "scripting" workspace crashes with segfault:

Thread 1 "blender8debug" received signal SIGSEGV, Segmentation fault.
0x0000555557afd079 in tree_element_id_type_to_index (te=0x7fffaafd5e48)
    at source/blender/editors/space_outliner/outliner_draw.c:1556
1556			return INDEX_ID_OB + ob->type;
(gdb) bt
#0  0x0000555557afd079 in tree_element_id_type_to_index (te=0x7fffaafd5e48)
    at source/blender/editors/space_outliner/outliner_draw.c:1556
#1  0x0000555557afd29d in outliner_draw_iconrow (C=0x7fffcf06d488, block=0x7fffab7a6208, fstyle=0x7fffccf4b2e0, scene=0x7fffccf78008, view_layer=0x7fffccf44248, soops=0x7fffcceee108, lb=0x7fffab1f02d0, level=1, xmax=195, offsx=0x7fffffffce24, ys=-82, alpha_fac=1, merged=0x7fffffffce90)
    at source/blender/editors/space_outliner/outliner_draw.c:1605
#2  0x0000555557afd39a in outliner_draw_iconrow (C=0x7fffcf06d488, block=0x7fffab7a6208, fstyle=0x7fffccf4b2e0, scene=0x7fffccf78008, view_layer=0x7fffccf44248, soops=0x7fffcceee108, lb=0x7fffab1f0260, level=0, xmax=195, offsx=0x7fffffffce24, ys=-82, alpha_fac=1, merged=0x7fffffffce90)
    at source/blender/editors/space_outliner/outliner_draw.c:1618
#3  0x0000555557afe4c7 in outliner_draw_tree_element (C=0x7fffcf06d488, block=0x7fffab7a6208, fstyle=0x7fffccf4b2e0, scene=0x7fffccf78008, view_layer=0x7fffccf44248, ar=0x7fffcc80bcc8, soops=0x7fffcceee108, te=0x7fffab1f0248, draw_grayed_out=false, startx=20, starty=0x7fffffffd86c, te_edit=0x7fffffffd8f8)
    at source/blender/editors/space_outliner/outliner_draw.c:1866
#4  0x0000555557afe62e in outliner_draw_tree_element (C=0x7fffcf06d488, block=0x7fffab7a6208, fstyle=0x7fffccf4b2e0, scene=0x7fffccf78008, view_layer=0x7fffccf44248, ar=0x7fffcc80bcc8, soops=0x7fffcceee108, te=0x7fffab1f00f8, draw_grayed_out=false, startx=0, starty=0x7fffffffd86c, te_edit=0x7fffffffd8f8)
    at source/blender/editors/space_outliner/outliner_draw.c:1887
#5  0x0000555557aff4c9 in outliner_draw_tree (C=0x7fffcf06d488, block=0x7fffab7a6208, scene=0x7fffccf78008, view_layer=0x7fffccf44248, ar=0x7fffcc80bcc8, soops=0x7fffcceee108, has_restrict_icons=true, te_edit=0x7fffffffd8f8)
    at source/blender/editors/space_outliner/outliner_draw.c:2145
#6  0x0000555557affd71 in draw_outliner (C=0x7fffcf06d488)
    at source/blender/editors/space_outliner/outliner_draw.c:2286
#7  0x0000555557af5054 in outliner_main_region_draw (C=0x7fffcf06d488, ar=0x7fffcc80bcc8)
    at source/blender/editors/space_outliner/space_outliner.c:96
#8  0x00005555580260e1 in ED_region_do_draw (C=0x7fffcf06d488, ar=0x7fffcc80bcc8)
    at source/blender/editors/screen/area.c:508
#9  0x0000555557a14de0 in wm_draw_window_offscreen (C=0x7fffcf06d488, win=0x7fffcceecf08, stereo=false)
    at source/blender/windowmanager/intern/wm_draw.c:573
#10 0x0000555557a1535e in wm_draw_window (C=0x7fffcf06d488, win=0x7fffcceecf08)
    at source/blender/windowmanager/intern/wm_draw.c:705
#11 0x0000555557a1586a in wm_draw_update (C=0x7fffcf06d488)
    at source/blender/windowmanager/intern/wm_draw.c:859
#12 0x0000555557a124e5 in WM_main (C=0x7fffcf06d488)
    at source/blender/windowmanager/intern/wm.c:424
#13 0x0000555557a0cbf9 in main (argc=1, argv=0x7fffffffdcd8)
    at source/creator/creator.c:505

Confirmed here, but the original report is slightly misleading. The lamp is deleted, but viewport is not updated yet. Same for the outliner.
It would be nice to know when that started. I will look at it.

Dalai Felinto (dfelinto) renamed this task from objects cannot be deleted in outliner to Outliner and viewport missing update after deleting object.Mar 1 2019, 6:06 PM
Dalai Felinto (dfelinto) updated the task description. (Show Details)

@Campbell Barton (campbellbarton) This was introduced on rB012483b6e4a. I will look at it, but I may pass the torche to you.