Page MenuHome

Contrived Multiresolution Crash
Closed, ResolvedPublic

Description

System Information
Operating system: Windows 10 64 bit
Graphics card: Nvidia GTX 750 Ti

Blender Version
Broken: blender-2.80.0-git.81b68f7279cd-windows64

Short description of error
By doing a sequence of uncommon steps, I can get Blender to crash on clicking Delete Higher in the Multiresolution Modifier.

Exact steps for others to reproduce the error

With the file:


Just click Delete Higher to crash.

Without the file:

  1. Start with a cube.
  2. Add the Multiresolution Modifier. Click Subdivide twice.
  3. Create a Linked Duplicate of the cube (Alt+D).
  4. Turn off the viewport display of the modifier in one of the cubes and enter Sculpt Mode.
  5. Turn on Dynamic Topology. Ignore the warning.
  6. Sculpt a little.
  7. Switch to Object Mode.
  8. Decrease the Preview subdivisions in the modifier by 1 and click Delete Higher to crash.

Event Timeline

Can reproduce, crashes in latest master.

Operating system: Linux-4.15.0-48-generic-x86_64-with-debian-stretch-sid 64 Bits

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

BT:

Thread 1 "blender" received signal SIGSEGV, Segmentation fault.
0x0000555557d43b78 in copy_v3_v3 (r=0x7fffeae3a4c8, a=0x0) at /home/zed/prog/blender/source/blender/blenlib/intern/math_vector_inline.c:63
63	  r[0] = a[0];
(gdb) bt
#0  0x0000555557d43b78 in copy_v3_v3 (r=0x7fffeae3a4c8, a=0x0) at /home/zed/prog/blender/source/blender/blenlib/intern/math_vector_inline.c:63
#1  0x0000555557d457d2 in multires_copy_grid (gridA=0x7fffeae3a4c8, gridB=0x0, sizeA=2, sizeB=3)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/multires.c:551
#2  0x0000555557d45e71 in multires_del_higher (mmd=0x7fffd2f52748, ob=0x7fffcfd0a608, lvl=1)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/multires.c:640
#3  0x0000555557d460ae in multiresModifier_del_levels (mmd=0x7fffd2f52748, scene=0x7fffe67f2008, ob=0x7fffcfd0a608, direction=1)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/multires.c:687
#4  0x0000555558b1afe2 in multires_higher_levels_delete_exec (C=0x7fffeb891208, op=0x7fffe57f6948)
    at /home/zed/prog/blender/source/blender/editors/object/object_modifier.c:1291
#5  0x0000555558b1b076 in multires_higher_levels_delete_invoke (C=0x7fffeb891208, op=0x7fffe57f6948, UNUSED_event=0x7fffe55ddf88)
    at /home/zed/prog/blender/source/blender/editors/object/object_modifier.c:1306
#6  0x0000555558298150 in wm_operator_invoke (C=0x7fffeb891208, ot=0x7fffe654e368, event=0x7fffe55ddf88, properties=0x7fffffffd850, reports=0x0,
    poll_only=false, use_last_properties=true) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1440
#7  0x0000555558298a71 in wm_operator_call_internal (C=0x7fffeb891208, ot=0x7fffe654e368, properties=0x7fffffffd850, reports=0x0, context=0,
    poll_only=false, event=0x7fffe55ddf88) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1687
#8  0x0000555558298b2e in WM_operator_name_call_ptr (C=0x7fffeb891208, ot=0x7fffe654e368, context=0, properties=0x7fffffffd850)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:1701
#9  0x00005555588b58fb in ui_apply_but_funcs_after (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/editors/interface/interface_handlers.c:806
#10 0x00005555588cdd31 in ui_handler_region_menu (C=0x7fffeb891208, event=0x7fffcfdf5e08, UNUSED_userdata=0x7fffcfc2c188)
    at /home/zed/prog/blender/source/blender/editors/interface/interface_handlers.c:10144
#11 0x0000555558295ec8 in wm_handler_ui_call (C=0x7fffeb891208, handler=0x7fffd2f0f6e8, event=0x7fffcfdf5e08, always_pass=0)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:623
#12 0x000055555829b1b3 in wm_handlers_do_intern (C=0x7fffeb891208, event=0x7fffcfdf5e08, handlers=0x7fffcfc2d198)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2701
#13 0x000055555829bf88 in wm_handlers_do (C=0x7fffeb891208, event=0x7fffcfdf5e08, handlers=0x7fffcfc2d198)
    at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:2947
#14 0x000055555829d15c in wm_event_do_handlers (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm_event_system.c:3316
#15 0x000055555829059c in WM_main (C=0x7fffeb891208) at /home/zed/prog/blender/source/blender/windowmanager/intern/wm.c:417
#16 0x0000555557beb8b9 in main (argc=1, argv=0x7fffffffdff8) at /home/zed/prog/blender/source/creator/creator.c:500