Page MenuHome

Bevel modifier crashing when selecting Normal Mode
Open, Confirmed, MediumPublic

Description

System Information
Windows 10 x64
GTX 950M

Blender Version
Broken:
Date: 2018-12-15
Hash: 351f537fa83
Branch: blender 2.8 (Beta)

Short description of error
Changing Normal Mode on bevel modifier causes crash. Looks like it only happens when Vertex Group selected.

Exact steps for others to reproduce the error
Open .blend file and change Normal Mode.

Details

Type
Bug

Event Timeline

Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.Dec 17 2018, 4:56 PM

Backtrace:

[Switching to Thread 0x7fffda7fd700 (LWP 30147)]
0x0000555557ebe9e5 in defvert_find_index (dvert=0x7fffd641f388, defgroup=0)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/deform.c:651
651				if (dw->def_nr == defgroup) {
(gdb) bt
#0  0x0000555557ebe9e5 in defvert_find_index (dvert=0x7fffd641f388, defgroup=0)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/deform.c:651
#1  0x00005555579569e1 in bevel_mod_harden_normals (bmd=0x7fffd642d108, bm=0x7fffd6c3c108, hn_strength=0.5, hnmode=1, dvert=0x7fffd641f288, vgroup=0)
    at /home/zed/programmering/blender_master/blender/source/blender/modifiers/intern/MOD_bevel.c:201
#2  0x000055555795cdb9 in applyModifier (md=0x7fffd642d108, ctx=0x7fffda7fc760, mesh=0x7fffd6c1ed08)
    at /home/zed/programmering/blender_master/blender/source/blender/modifiers/intern/MOD_bevel.c:445
#3  0x0000555557f8e6df in modwrap_applyModifier (md=0x7fffd642d108, ctx=0x7fffda7fc760, me=0x7fffd6c1ed08)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/modifier.c:839
#4  0x0000555557e26149 in mesh_calc_modifiers (depsgraph=0x7fffeaae2008, scene=0x7fffdcd2b008, ob=0x7fffefbea608, inputVertexCos=0x0, useDeform=1, 
    need_mapping=false, dataMask=637534729, index=-1, useCache=true, build_shapekey_layers=false, r_deform=0x7fffefbeab80, r_final=0x7fffefbeab78)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:1454
#5  0x0000555557e288b8 in mesh_build_data (depsgraph=0x7fffeaae2008, scene=0x7fffdcd2b008, ob=0x7fffefbea608, dataMask=637534729, 
    build_shapekey_layers=false, need_mapping=false) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2044
#6  0x0000555557e28c70 in makeDerivedMesh (depsgraph=0x7fffeaae2008, scene=0x7fffdcd2b008, ob=0x7fffefbea608, em=0x0, dataMask=637534729, 
    build_shapekey_layers=false) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2156
#7  0x0000555557fcd752 in BKE_object_handle_data_update (depsgraph=0x7fffeaae2008, scene=0x7fffdcd2b008, ob=0x7fffefbea608)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/object_update.c:209
#8  0x0000555557fce062 in BKE_object_eval_uber_data (depsgraph=0x7fffeaae2008, scene=0x7fffdcd2b008, ob=0x7fffefbea608)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/object_update.c:381
#9  0x00005555584101b2 in std::__invoke_impl<void, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&> (__f=
    @0x7fffef223160: 0x555557fcdfb2 <BKE_object_eval_uber_data>, __args#0=@0x7fffda7fcd10: 0x7fffeaae2008, __args#1=@0x7fffef223170: 0x7fffdcd2b008, 
    __args#2=@0x7fffef223168: 0x7fffefbea608) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/invoke.h:60
#10 0x000055555840ecab in std::__invoke<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&> (__fn=
    @0x7fffef223160: 0x555557fcdfb2 <BKE_object_eval_uber_data>, __args#0=@0x7fffda7fcd10: 0x7fffeaae2008, __args#1=@0x7fffef223170: 0x7fffdcd2b008, 
    __args#2=@0x7fffef223168: 0x7fffefbea608) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/invoke.h:95
#11 0x000055555840d56d in std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::__call<void, Depsgraph*&&, 0ul, 1ul, 2ul>(std::tuple<Depsgraph*&&>&&, std::_Index_tuple<0ul, 1ul, 2ul>) (this=0x7fffef223160, __args=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/functional:400
#12 0x000055555840b4c6 in std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::operator()<Depsgraph*, void>(Depsgraph*&&)
    (this=0x7fffef223160, __args#0=@0x7fffda7fcd10: 0x7fffeaae2008) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/functional:484
#13 0x0000555558408418 in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)> >::_M_invoke(std::_Any_data const&, Depsgraph*&&) (__functor=..., __args#0=@0x7fffda7fcd10: 0x7fffeaae2008)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_function.h:297
#14 0x0000555558422283 in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const (this=0x7fffd47cbca8, __args#0=0x7fffeaae2008)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_function.h:687
#15 0x0000555558421864 in DEG::deg_task_run_func (pool=0x7fffd4dc5008, taskdata=0x7fffd47cbc48, thread_id=3)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:95
#16 0x00005555583df590 in handle_local_queue (thread_id=3, tls=0x7fffdcdb28a8)
    at /home/zed/programmering/blender_master/blender/source/blender/blenlib/intern/task.c:420
#17 task_scheduler_thread_run (thread_p=0x7fffdcdb2898) at /home/zed/programmering/blender_master/blender/source/blender/blenlib/intern/task.c:449
#18 0x00007ffff63753c3 in start_thread () from /lib64/libpthread.so.0
#19 0x00007ffff4651edf in clone () from /lib64/libc.so.6

I think this one is fixed and can be closed. When we check "Harden Normals", a tooltip pops up to say that we have to enable "autosmooth" option in mesh tab to have this option working. When we enable "autosmooth", the option seems to work. Can you confirm with last build downloaded from here: https://builder.blender.org/download/?hc_location=ufi @Zachary (AFWS) ?