Page MenuHome

Crash on subdivision
Closed, ArchivedPublic

Description

System Information
Operating system: MacOS 10.14.5
Graphics card:

Blender Version
Broken: 2.8, 2019-06-21, 0c538fc92380

Short description of error

# Blender 2.80 (sub 74), Commit date: 2019-06-21 00:18, Hash 0c538fc92380

# backtrace
0   blender                             0x00000001050aba07 BLI_system_backtrace + 55
1   blender                             0x0000000104ddb17a sig_handle_crash + 362
2   libsystem_platform.dylib            0x00007fff7556fb5d _sigtramp + 29
3   ???                                 0x0000000000000000 0x0 + 0
4   blender                             0x00000001050167f5 BKE_subdiv_update_from_mesh + 37
5   blender                             0x0000000108f351db applyModifier + 171
6   blender                             0x0000000104e7354b mesh_calc_modifiers + 2443
7   blender                             0x0000000104e728e1 mesh_build_data + 113
8   blender                             0x0000000104e71af5 makeDerivedMesh + 133
9   blender                             0x0000000104f8b8a0 BKE_object_handle_data_update + 928
10  blender                             0x0000000104f8bce4 BKE_object_eval_uber_data + 52
11  blender                             0x00000001050cab2c _ZN3DEGL17deg_task_run_funcEP8TaskPoolPvi + 140
12  blender                             0x00000001050acbf5 BLI_task_pool_work_and_wait + 917
13  blender                             0x00000001050ca870 _ZN3DEG23deg_evaluate_on_refreshEPNS_9DepsgraphE + 512
14  blender                             0x0000000104fd521b scene_graph_update_tagged + 139
15  blender                             0x00000001052d0e33 wm_event_do_depsgraph + 179
16  blender                             0x00000001052d0f80 wm_event_do_refresh_wm_and_depsgraph + 128
17  blender                             0x00000001052d1574 wm_event_do_notifiers + 1492
18  blender                             0x00000001052cd658 WM_main + 40
19  blender                             0x0000000104dd798f main + 927
20  libdyld.dylib                       0x00007fff753843d5 start + 1

Exact steps for others to reproduce the error
Try to view the Bedsheets layer

Details

Type
Bug

Event Timeline

Confirmed on Windows10 x64 too.

Read blend: C:\Users\Acrivec\Downloads\BUG.blend
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF6289AE790
Module  : C:\Program Files\Blender\2.8\blender.exe
Sebastian Parborg (zeddb) triaged this task as Confirmed, Medium priority.

Backtrace:

Thread 29 "blender" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd7bfb700 (LWP 5100)]
0x0000555557dc2e02 in initialize_manifold_indices (storage=0x7fffd4c41088) at /home/zed/prog/blender/source/blender/blenkernel/intern/subdiv_converter_mesh.c:362
362	      BLI_BITMAP_ENABLE(vert_used_map, loop->v);
(gdb) bt
#0  0x0000555557dc2e02 in initialize_manifold_indices (storage=0x7fffd4c41088) at /home/zed/prog/blender/source/blender/blenkernel/intern/subdiv_converter_mesh.c:362
#1  0x0000555557dc30c6 in init_user_data (converter=0x7fffd7bfa0f0, settings=0x7fffd7bfa260, mesh=0x7fffd4c82d08) at /home/zed/prog/blender/source/blender/blenkernel/intern/subdiv_converter_mesh.c:398
#2  0x0000555557dc310f in BKE_subdiv_converter_init_for_mesh (converter=0x7fffd7bfa0f0, settings=0x7fffd7bfa260, mesh=0x7fffd4c82d08) at /home/zed/prog/blender/source/blender/blenkernel/intern/subdiv_converter_mesh.c:407
#3  0x0000555557dbcf9f in BKE_subdiv_update_from_mesh (subdiv=0x0, settings=0x7fffd7bfa260, mesh=0x7fffd4c82d08) at /home/zed/prog/blender/source/blender/blenkernel/intern/subdiv.c:177
#4  0x00005555587d9237 in subdiv_descriptor_ensure (smd=0x7fffd4c43208, subdiv_settings=0x7fffd7bfa260, mesh=0x7fffd4c82d08) at /home/zed/prog/blender/source/blender/modifiers/intern/MOD_subsurf.c:138
#5  0x00005555587d94eb in applyModifier (md=0x7fffd4c43208, ctx=0x7fffd7bfa3b0, mesh=0x7fffd4c82d08) at /home/zed/prog/blender/source/blender/modifiers/intern/MOD_subsurf.c:219
#6  0x0000555557ccda5e in modwrap_applyModifier (md=0x7fffd4c43208, ctx=0x7fffd7bfa3b0, me=0x7fffd4c82d08) at /home/zed/prog/blender/source/blender/blenkernel/intern/modifier.c:910
#7  0x0000555557e31585 in mesh_calc_modifiers (depsgraph=0x7fffe675f488, scene=0x7fffdb835008, ob=0x7fffd0555e08, useDeform=1, need_mapping=false, dataMask=0x7fffd7bfa8d0, index=-1, use_cache=true, allow_shared_mesh=true, r_deform=0x7fffd0556368, r_final=0x7fffd0556360)
    at /home/zed/prog/blender/source/blender/blenkernel/intern/DerivedMesh.c:1434
#8  0x0000555557e33ec7 in mesh_build_data (depsgraph=0x7fffe675f488, scene=0x7fffdb835008, ob=0x7fffd0555e08, dataMask=0x7fffd7bfa8d0, need_mapping=false) at /home/zed/prog/blender/source/blender/blenkernel/intern/DerivedMesh.c:2054
#9  0x0000555557e343d6 in makeDerivedMesh (depsgraph=0x7fffe675f488, scene=0x7fffdb835008, ob=0x7fffd0555e08, em=0x0, dataMask=0x7fffd7bfa950) at /home/zed/prog/blender/source/blender/blenkernel/intern/DerivedMesh.c:2183
#10 0x0000555557d0da64 in BKE_object_handle_data_update (depsgraph=0x7fffe675f488, scene=0x7fffdb835008, ob=0x7fffd0555e08) at /home/zed/prog/blender/source/blender/blenkernel/intern/object_update.c:185
#11 0x0000555557d0e35e in BKE_object_eval_uber_data (depsgraph=0x7fffe675f488, scene=0x7fffdb835008, ob=0x7fffd0555e08) at /home/zed/prog/blender/source/blender/blenkernel/intern/object_update.c:353
#12 0x0000555557f4526a in std::__invoke_impl<void, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&> (__f=@0x7fffcf722660: 0x555557d0e2ae <BKE_object_eval_uber_data>, __args#0=@0x7fffd7bfab10: 0x7fffe675f488, __args#1=@0x7fffcf722670: 0x7fffdb835008, __args#2=@0x7fffcf722668: 0x7fffd0555e08)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:60
#13 0x0000555557f439ab in std::__invoke<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&> (__fn=@0x7fffcf722660: 0x555557d0e2ae <BKE_object_eval_uber_data>, __args#0=@0x7fffd7bfab10: 0x7fffe675f488, __args#1=@0x7fffcf722670: 0x7fffdb835008, __args#2=@0x7fffcf722668: 0x7fffd0555e08)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:95
#14 0x0000555557f41f55 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=0x7fffcf722660, __args=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/functional:400
#15 0x0000555557f3fa20 in std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::operator()<Depsgraph*, void>(Depsgraph*&&) (this=0x7fffcf722660, __args#0=@0x7fffd7bfab10: 0x7fffe675f488) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/functional:484
#16 0x0000555557f3c2b8 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=@0x7fffd7bfab10: 0x7fffe675f488)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/std_function.h:297
#17 0x0000555557f5a59b in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const (this=0x7fffd0439b40, __args#0=0x7fffe675f488) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/std_function.h:687
#18 0x0000555557f59b37 in DEG::deg_task_run_func (pool=0x7fffe5442008, taskdata=0x7fffd0439ac8, thread_id=5) at /home/zed/prog/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:86
#19 0x0000555557f1900d in handle_local_queue (thread_id=5, tls=0x7fffdb9e8908) at /home/zed/prog/blender/source/blender/blenlib/intern/task.c:420
#20 task_scheduler_thread_run (thread_p=0x7fffdb9e88f8) at /home/zed/prog/blender/source/blender/blenlib/intern/task.c:457
#21 0x00007ffff6a09458 in start_thread () from /lib64/libpthread.so.0
#22 0x00007ffff326b71f in clone () from /lib64/libc.so.6
Sergey Sharybin (sergey) removed Sergey Sharybin (sergey) as the assignee of this task.
Sergey Sharybin (sergey) lowered the priority of this task from Confirmed, Medium to Needs Information from User.

The mesh is heavily corrupted, you can see this from console log when running for mesh in bpy.data.meshes: mesh.validate(verbose=True).

The real fix would be to to fix the tool which produced that corrupted mesh, but for that we need to know how to reproduce such a corruption.

The mesh was generated using a cloth simulation with a previous beta version of Blender 2.8. I was able to render without any problems on said version. Not sure why it's it corrupted now, but I don't expect Blender to hard crash either 🙂.

Bastien Montagne (mont29) closed this task as Archived.
Bastien Montagne (mont29) claimed this task.

@Edu Garcia (arcnor) Blender does not expect corrupted meshes, guarding against those would be terribly costly on performances and workload levels. Archiving until we get a reproducible case to replicate such corrupted mesh generation.