2.8 multiple crashes in auto UVs generation
Closed, ResolvedPublic

Description

System Information
Windows 10, Nvidia GTX 2 x 1050 Ti

Blender Version
branch:2.8; bd80ace /2017-12-26

Short description of error

  • by generating default UVmap's, Blender is crashing and automatically exit the program

Exact steps for others to reproduce the error

  • Creating a Sphere in empty scene, + click on generate UVmap, blender crashes and automatically exit the program
  • This goes for all objects and geometric shapes
Philipp Oeser (lichtwerk) triaged this task as Confirmed priority.Dec 28 2017, 12:54 PM

can confirm this, heres a backtrace (eevee, but happens for other engines as well)

1​1 DRW_notify_id_update draw_manager.c 3334 0x28def65
2​2 ED_render_id_flush_update render_update.c 592 0x22980a5
3​3 DEG::deg_editors_id_update depsgraph.cc 511 0x2fa70b1
4​4 DEG::(anonymous namespace)::depsgraph_update_editors_tag depsgraph_tag.cc 244 0x2fad34c
5​5 DEG::(anonymous namespace)::deg_graph_id_tag_update_single_flag depsgraph_tag.cc 255 0x2fad396
6​6 DEG::(anonymous namespace)::deg_graph_id_tag_update depsgraph_tag.cc 321 0x2fad5fe
7​7 DEG::(anonymous namespace)::deg_id_tag_update depsgraph_tag.cc 341 0x2fad6ab
8​8 DEG_id_tag_update_ex depsgraph_tag.cc 394 0x2fad8f1
9​9 ED_object_add_type object_add.c 457 0x21e488c
10​10 make_prim_init editmesh_add.c 76 0x215614f
11​11 add_primitive_uvsphere_exec editmesh_add.c 528 0x2157817
12​12 wm_operator_exec wm_event_system.c 870 0x1cd2ae4
13​13 WM_operator_repeat wm_event_system.c 943 0x1cd2d84
14​14 ED_undo_operator_repeat undo.c 448 0x1f2c475
15​15 wm_block_redo_cb wm_operators.c 1450 0x1cecc80
16​16 ui_apply_but_funcs_after interface_handlers.c 819 0x20657cc
17​17 ui_popup_handler interface_handlers.c 10259 0x207f3d7
18​18 wm_handler_ui_call wm_event_system.c 530 0x1cd1ed9
19​19 wm_handlers_do_intern wm_event_system.c 2198 0x1cd5c9b
20​20 wm_handlers_do wm_event_system.c 2432 0x1cd6574
21​... <More>
22
23
24​Thread 1 (Thread 0x7ffff7fa5cc0 (LWP 2421)):
25​#0 0x00000000028def65 in DRW_notify_id_update (update_ctx=0x7fffffffd8f0, id=0x7fffbd79a808) at /blender/source/blender/draw/intern/draw_manager.c:3334
26​ engine_type = 0x7db9780 <DRW_engine_viewport_eevee_type>
27​ ar = 0x7fffbb3e3688
28​ v3d = 0x7fffbb3e3848
29​ rv3d = 0x7fffba9cdc08
30​ scene = 0x0
31​ view_layer = 0x0
32​#1 0x00000000022980a5 in ED_render_id_flush_update (update_ctx=0x7fffffffd9d0, id=0x7fffbd79a808) at /blender/source/blender/editors/render/render_update.c:592
33​ engine_type = 0x7db9780 <DRW_engine_viewport_eevee_type>
34​ ar = 0x7fffbb3e3688
35​ sa = 0x7fffbb5eaec8
36​ sc = 0x7fffba9f7e88
37​ workspace = 0x7fffba3d30c8
38​ view_render = 0x7fffba3d3238
39​ win = 0x7fffbd249f08
40​ wm = 0x7fffc0109308
41​ bmain = 0x7fffbb9b0808
42​ scene = 0x0
43​ view_layer = 0x0
44​#2 0x0000000002fa70b1 in DEG::deg_editors_id_update (update_ctx=0x7fffffffd9d0, id=0x7fffbd79a808) at /blender/source/blender/depsgraph/intern/depsgraph.cc:511
45​No locals.
46​#3 0x0000000002fad34c in DEG::(anonymous namespace)::depsgraph_update_editors_tag (bmain=0x7fffbb9b0808, graph=0x7fffc25746b8, id=0x7fffbd79a808) at /blender/source/blender/depsgraph/intern/depsgraph_tag.cc:244
47​ update_ctx = {bmain = 0x7fffbb9b0808, scene = 0x0, view_layer = 0x0}
48​#4 0x0000000002fad396 in DEG::(anonymous namespace)::deg_graph_id_tag_update_single_flag (bmain=0x7fffbb9b0808, graph=0x7fffc25746b8, id=0x7fffbd79a808, id_node=0x0, tag=DEG_TAG_EDITORS_UPDATE) at /blender/source/blender/depsgraph/intern/depsgraph_tag.cc:255
49​ component_type = 4096
50​ operation_code = 3178866696
51​ factory = 0xcbb9b0808
52​ __func__ = "deg_graph_id_tag_update_single_flag"
53​#5 0x0000000002fad5fe in DEG::(anonymous namespace)::deg_graph_id_tag_update (bmain=0x7fffbb9b0808, graph=0x7fffc25746b8, id=0x7fffbd79a808, flag=4096) at /blender/source/blender/depsgraph/intern/depsgraph_tag.cc:321
54​ tag = DEG_TAG_EDITORS_UPDATE
55​ id_node = 0x0
56​ current_flag = 0
57​#6 0x0000000002fad6ab in DEG::(anonymous namespace)::deg_id_tag_update (bmain=0x7fffbb9b0808, id=0x7fffbd79a808, flag=4096) at /blender/source/blender/depsgraph/intern/depsgraph_tag.cc:341
58​ depsgraph = 0x7fffc25746b8
59​ view_layer = 0x7fffc8f59508
60​ scene = 0x7fffbd3fe808
61​#7 0x0000000002fad8f1 in DEG_id_tag_update_ex (bmain=0x7fffbb9b0808, id=0x7fffbd79a808, flag=4096) at /blender/source/blender/depsgraph/intern/depsgraph_tag.cc:394
62​ __func__ = "DEG_id_tag_update_ex"
63​#8 0x00000000021e488c in ED_object_add_type (C=0x7fffede3f008, type=1, name=0x668ba4e "Sphere", loc=0x7fffffffdc34, rot=0x7fffffffdc28, enter_editmode=false, UNUSED_layer=1) at /blender/source/blender/editors/object/object_add.c:457
64​ bmain = 0x7fffbb9b0808
65​ scene = 0x7fffbd3fe808
66​ view_layer = 0x7fffc8f59508
67​ ob = 0x7fffe8b17208
68​#9 0x000000000215614f in make_prim_init (C=0x7fffede3f008, idname=0x668ba4e "Sphere", loc=0x7fffffffdc34, rot=0x7fffffffdc28, layer=1, r_creation_data=0x7fffffffdc40) at /blender/source/blender/editors/mesh/editmesh_add.c:76
69​ obedit = 0x0
70​#10 0x0000000002157817 in add_primitive_uvsphere_exec (C=0x7fffede3f008, op=0x7fffc8e37708) at /blender/source/blender/editors/mesh/editmesh_add.c:528
71​ creation_data = {mat = {{-nan(0x7fdc70), 2.4611913e-38, -0.0468521416, 4.59163468e-41}, {-nan(0x7fdc80), 4.59163468e-41, 1.25543181e-37, 0}, {-0.00466266647, 4.59163468e-41, -8.81790965e+27, 4.59163468e-41}, {-nan(0x7fdcf0), 4.59163468e-41, -0.0468521416, 4.59163468e-41}}, was_editmode = false}
72​ obedit = 0x7fffe8d3a3e8
73​ em = 0x1cd20e7 <WM_operator_poll+178>
74​ loc = {0, 0, 0}
75​ rot = {0, 0, 0}
76​ enter_editmode = false
77​ layer = 1
78​ calc_uvs = true
79​#11 0x0000000001cd2ae4 in wm_operator_exec (C=0x7fffede3f008, op=0x7fffc8e37708, repeat=true, store=true) at /blender/source/blender/windowmanager/intern/wm_event_system.c:870
80​ wm = 0x7fffc0109308
81​ retval = 2
82​ __func__ = "wm_operator_exec"
83​#12 0x0000000001cd2d84 in WM_operator_repeat (C=0x7fffede3f008, op=0x7fffc8e37708) at /blender/source/blender/windowmanager/intern/wm_event_system.c:943
84​No locals.
85​#13 0x0000000001f2c475 in ED_undo_operator_repeat (C=0x7fffede3f008, op=0x7fffc8e37708) at /blender/source/blender/editors/util/undo.c:448
86​ retval = 32767
87​ wm = 0x7fffc0109308
88​ scene = 0x7fffba5fc808
89​ ar = 0x7fffbb3e3688
90​ ar1 = 0x7fffbb3e3688
91​ ret = 0
92​#14 0x0000000001cecc80 in wm_block_redo_cb (C=0x7fffede3f008, arg_op=0x7fffc8e37708, UNUSED_arg_event=0) at /blender/source/blender/windowmanager/intern/wm_operators.c:1450
93​ op = 0x7fffc8e37708
94​#15 0x00000000020657cc in ui_apply_but_funcs_after (C=0x7fffede3f008) at /blender/source/blender/editors/interface/interface_handlers.c:819
95​ afterf = 0x7fffc8bc90c8
96​ after = {next = 0x0, prev = 0x0, func = 0x0, func_arg1 = 0x0, func_arg2 = 0x0, funcN = 0x0, func_argN = 0x0, rename_func = 0x0, rename_arg1 = 0x0, rename_orig = 0x0, handle_func = 0x1cecc40 <wm_block_redo_cb>, handle_func_arg = 0x7fffc8e37708, retval = 0, butm_func = 0x0, butm_func_arg = 0x0, a2 = 0, popup_op = 0x0, optype = 0x0, opcontext = 0, opptr = 0x0, rnapoin = {id = {data = 0x7fffc0109308}, type = 0x7fffe8d3a4c8, data = 0x7fffc8de04e8}, rnaprop = 0x7fffe8d4b4c8, context = 0x0, undostr = '\000' <repeats 63 times>}
97​ opptr = {id = {data = 0x3ec0009f00000000}, type = 0x3f80000000000000, data = 0x2a4000000a1}
98​ funcs = {first = 0x0, last = 0x0}
99​#16 0x000000000207f3d7 in ui_popup_handler (C=0x7fffede3f008, event=0x7fffc8e4ee08, userdata=0x7fffba9fa508) at /blender/source/blender/editors/interface/interface_handlers.c:10259
100​ menu = 0x7fffba9fa508
101​ menu_region = 0x0
102​ retval = 1
103​ reset_pie = false
104​#17 0x0000000001cd1ed9 in wm_handler_ui_call (C=0x7fffede3f008, handler=0x7fffc8f8b1a8, event=0x7fffc8e4ee08, always_pass=0) at /blender/source/blender/windowmanager/intern/wm_event_system.c:530
105​ area = 0x7fffbb5eaec8
106​ region = 0x7fffbb3e3688
107​ menu = 0x0
108​ do_wheel_ui = true
109​ is_wheel = false
110​ retval = -924520952
111​#18 0x0000000001cd5c9b in wm_handlers_do_intern (C=0x7fffede3f008, event=0x7fffc8e4ee08, handlers=0x7fffbd249fc0) at /blender/source/blender/windowmanager/intern/wm_event_system.c:2198
112​ do_debug_handler = false
113​ wm = 0x7fffc0109308
114​ handler = 0x7fffc8f8b1a8
115​ nexthandler = 0x7fffc8dd6c68
116​ action = 0
117​ always_pass = 0
118​ __func__ = "wm_handlers_do_intern"
119​#19 0x0000000001cd6574 in wm_handlers_do (C=0x7fffede3f008, event=0x7fffc8e4ee08, handlers=0x7fffbd249fc0) at /blender/source/blender/windowmanager/intern/wm_event_system.c:2432
120​ action = 32767
121​ __func__ = "wm_handlers_do"
122​#20 0x0000000001cd7203 in wm_event_do_handlers (C=0x7fffede3f008) at /blender/source/blender/windowmanager/intern/wm_event_system.c:2725
123​ action = 0
124​ screen = 0x7fffba9f7e88
125​ event = 0x7fffc8e4ee08
126​ wm = 0x7fffc0109308
127​ win = 0x7fffbd249f08
128​ __func__ = "wm_event_do_handlers"
129​#21 0x0000000001cca265 in WM_main (C=0x7fffede3f008) at /blender/source/blender/windowmanager/intern/wm.c:521
130​No locals.
131​#22 0x0000000001cc5163 in main (argc=1, argv=0x7fffffffe488) at /blender/source/creator/creator.c:527
132​ C = 0x7fffede3f008
133​ syshandle = 0x7fffede3e430
134​ ba = 0x0
135​ app_init_data = {ba = 0x0}

This has nothing to do with spheres or UV generation in particular. Basically you get the crash for any Redo. (e.g., add a cube, and change the cube "radius" in the Redo panel).

@Sergey Sharybin (sergey) in depsgraph_update_editors_tag() both graph->scene and graph->view_layer are NULL when "redoing".