Page MenuHome

Blender crashes when entering edit mode from sculpting mode
Closed, DuplicatePublic

Description

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.25

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-18 14:52, hash: rB38d4483c6a51
Worked: (optional)

Short description of error
[Blender crashes when in the sculpting mode in the sculpting tab and then switching to edit mode. This can be seen occurring in this video: https://www.youtube.com/watch?v=k_tvJ44BNao at time 23:07 and time 45:51. Dynotopo was on while working in the sculpt mode.]

Exact steps for others to reproduce the error
[Open up a new file and create an object for sculpting. Select the sculpting tab, enable dynotopo, and use constant resolution at about a setting of 15. Sculpt some changes into the object, then enter the edit mode by pressing the tab key. It is erratic but the program sometimes crashed for me. The file I was working on is also uploaded for reference.

]
[Based on the default startup or an attached .blend file (as simple as possible)]

Event Timeline

I cannot reproduce it here spec win7 gtx 550ti, may be something with your settings.

Alex (xrlm) added a comment.EditedJul 22 2019, 10:51 AM

Same issue here. Deleted the cube -> added UV Sphere -> subdivision ->minor sculpting (dyntopo, constant details, resolution 15-30) -> press TAB -> crash without any error message.

Windows 10 17763.379 x64
GTX760M, 425.31 nvidia driver

Blender version: 2.80 (sub 74), branch: master, commit date: 2019-07-19 00:44, hash: 5f140e61c28c

I could reproduce it. It doesn't happen immediately but after couple of minutes.

Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6320DFA60


Exact steps to reproduce this:

Address sanitizer output:

1=================================================================
2==34677==ERROR: AddressSanitizer: heap-use-after-free on address 0x6170000b7208 at pc 0x7ffff6ec9f54 bp 0x7fffffffc0b0 sp 0x7fffffffb858
3READ of size 648 at 0x6170000b7208 thread T0
4 #0 0x7ffff6ec9f53 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xaff53)
5 #1 0x55556ba4201f in memfile_chunk_add /home/brecht/dev/blender/source/blender/blenloader/intern/undofile.c:107
6 #2 0x55556ba4f275 in writedata_do_write /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:363
7 #3 0x55556ba4f568 in mywrite_flush /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:393
8 #4 0x55556ba6faaa in write_file_handle /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:3927
9 #5 0x55556ba70b82 in BLO_write_file_mem /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:4133
10 #6 0x55556ba71ac4 in BKE_memfile_undo_encode /home/brecht/dev/blender/source/blender/blenkernel/intern/blender_undo.c:120
11 #7 0x55556ba40d70 in memfile_undosys_step_encode /home/brecht/dev/blender/source/blender/editors/undo/memfile_undo.c:80
12 #8 0x55556bab8ab7 in undosys_step_encode /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:156
13 #9 0x55556babcefd in BKE_undosys_step_push_with_type /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:556
14 #10 0x55556babd4da in BKE_undosys_step_push /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:592
15 #11 0x55556ba3b8a4 in ED_undo_push /home/brecht/dev/blender/source/blender/editors/undo/ed_undo.c:95
16 #12 0x55556ba3cdda in ED_undo_push_op /home/brecht/dev/blender/source/blender/editors/undo/ed_undo.c:290
17 #13 0x555567e25e3d in wm_operator_finished /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:982
18 #14 0x555567e2aeff in wm_operator_invoke /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1474
19 #15 0x555567e2bd94 in wm_operator_call_internal /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1651
20 #16 0x555567e2c057 in WM_operator_name_call_ptr /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1699
21 #17 0x555567e2c0af in WM_operator_name_call /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1705
22 #18 0x55556acfffab in ED_object_mode_compat_set /home/brecht/dev/blender/source/blender/editors/object/object_modes.c:153
23 #19 0x55556aceba0a in object_mode_set_exec /home/brecht/dev/blender/source/blender/editors/object/object_edit.c:1374
24 #20 0x555567e2aa61 in wm_operator_invoke /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1450
25 #21 0x555567e306e2 in wm_handler_operator_call /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2275
26 #22 0x555567e324b4 in wm_handlers_do_keymap_with_keymap_handler /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2555
27 #23 0x555567e336cc in wm_handlers_do_intern /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2692
28 #24 0x555567e35de1 in wm_handlers_do /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2945
29 #25 0x555567e39f11 in wm_event_do_handlers /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:3397
30 #26 0x555567e0e9eb in WM_main /home/brecht/dev/blender/source/blender/windowmanager/intern/wm.c:417
31 #27 0x55556674bdb4 in main /home/brecht/dev/blender/source/creator/creator.c:500
32 #28 0x7ffff563ab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
33 #29 0x55556674b249 in _start (/home/brecht/dev/debug/bin/blender+0x111f7249)
34
350x6170000b7208 is located 8 bytes inside of 656-byte region [0x6170000b7200,0x6170000b7490)
36freed by thread T0 here:
37 #0 0x7ffff6ef87b8 in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xde7b8)
38 #1 0x55556762b302 in MEM_lockfree_freeN /home/brecht/dev/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:157
39 #2 0x55556ba419c1 in BLO_memfile_free /home/brecht/dev/blender/source/blender/blenloader/intern/undofile.c:62
40 #3 0x55556ba71c7f in BKE_memfile_undo_free /home/brecht/dev/blender/source/blender/blenkernel/intern/blender_undo.c:131
41 #4 0x55556ba41342 in memfile_undosys_step_free /home/brecht/dev/blender/source/blender/editors/undo/memfile_undo.c:127
42 #5 0x55556bab9a67 in undosys_step_free_and_unlink /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:221
43 #6 0x55556baba9b3 in undosys_stack_clear_all_first /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:322
44 #7 0x55556babbbcf in BKE_undosys_stack_limit_steps_and_memory /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:440
45 #8 0x55556ba3b847 in ED_undo_push /home/brecht/dev/blender/source/blender/editors/undo/ed_undo.c:92
46 #9 0x55556ba3cdda in ED_undo_push_op /home/brecht/dev/blender/source/blender/editors/undo/ed_undo.c:290
47 #10 0x555567e25e3d in wm_operator_finished /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:982
48 #11 0x555567e2aeff in wm_operator_invoke /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1474
49 #12 0x555567e2bd94 in wm_operator_call_internal /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1651
50 #13 0x555567e2c057 in WM_operator_name_call_ptr /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1699
51 #14 0x555567e2c0af in WM_operator_name_call /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1705
52 #15 0x55556acfffab in ED_object_mode_compat_set /home/brecht/dev/blender/source/blender/editors/object/object_modes.c:153
53 #16 0x55556aceba0a in object_mode_set_exec /home/brecht/dev/blender/source/blender/editors/object/object_edit.c:1374
54 #17 0x555567e2aa61 in wm_operator_invoke /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:1450
55 #18 0x555567e306e2 in wm_handler_operator_call /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2275
56 #19 0x555567e324b4 in wm_handlers_do_keymap_with_keymap_handler /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2555
57 #20 0x555567e336cc in wm_handlers_do_intern /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2692
58 #21 0x555567e35de1 in wm_handlers_do /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:2945
59 #22 0x555567e39f11 in wm_event_do_handlers /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_event_system.c:3397
60 #23 0x555567e0e9eb in WM_main /home/brecht/dev/blender/source/blender/windowmanager/intern/wm.c:417
61 #24 0x55556674bdb4 in main /home/brecht/dev/blender/source/creator/creator.c:500
62 #25 0x7ffff563ab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
63
64previously allocated by thread T0 here:
65 #0 0x7ffff6ef8b50 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xdeb50)
66 #1 0x55556762bc7c in MEM_lockfree_mallocN /home/brecht/dev/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:308
67 #2 0x55556ba42214 in memfile_chunk_add /home/brecht/dev/blender/source/blender/blenloader/intern/undofile.c:117
68 #3 0x55556ba4f275 in writedata_do_write /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:363
69 #4 0x55556ba4f568 in mywrite_flush /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:393
70 #5 0x55556ba6faaa in write_file_handle /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:3927
71 #6 0x55556ba70b82 in BLO_write_file_mem /home/brecht/dev/blender/source/blender/blenloader/intern/writefile.c:4133
72 #7 0x55556ba71ac4 in BKE_memfile_undo_encode /home/brecht/dev/blender/source/blender/blenkernel/intern/blender_undo.c:120
73 #8 0x55556ba40d70 in memfile_undosys_step_encode /home/brecht/dev/blender/source/blender/editors/undo/memfile_undo.c:80
74 #9 0x55556bab8ab7 in undosys_step_encode /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:156
75 #10 0x55556babcefd in BKE_undosys_step_push_with_type /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:556
76 #11 0x55556babad60 in undosys_stack_push_main /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:335
77 #12 0x55556babaec1 in BKE_undosys_stack_init_from_main /home/brecht/dev/blender/source/blender/blenkernel/intern/undo_system.c:343
78 #13 0x555567e4edd0 in wm_file_read_post /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_files.c:585
79 #14 0x555567e4f56a in WM_file_read /home/brecht/dev/blender/source/blender/windowmanager/intern/wm_files.c:679
80 #15 0x5555667540c9 in arg_handle_load_file /home/brecht/dev/blender/source/creator/creator_args.c:1964
81 #16 0x55556727d3d2 in BLI_argsParse /home/brecht/dev/blender/source/blender/blenlib/intern/BLI_args.c:302
82 #17 0x555566755589 in main_args_setup_post /home/brecht/dev/blender/source/creator/creator_args.c:2232
83 #18 0x55556674bc92 in main /home/brecht/dev/blender/source/creator/creator.c:465
84 #19 0x7ffff563ab96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)