Maniphest T57566

Blender 2.8 crashes with the new multires. WITH_OPENSUBDIV_MODIFIER ON
Closed, Resolved

Assigned To
Sergey Sharybin (sergey)
Authored By
Erick Tukuniata (erickblender)
Nov 1 2018, 6:25 PM
Tags
  • BF Blender
  • BF Blender: 2.8
Subscribers
Erick Tukuniata (erickblender)
Philipp Oeser (lichtwerk)
Sergey Sharybin (sergey)

Description

System Information
Operating system and graphics card win7 gtx 550ti

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen) My own build and somehow i don't have the hash :( , I built it less than an hour ago
Worked: (optional)

Short description of error
Crash after sculpting first and adding more subdivision.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  1. Make sure that you have a build that was built WITH_OPENSUBDIV_MODIFIER ON otherwise you will not notice the crash
  2. with the default cube go to sculpt mode
  3. add multires. modifier and add some subdivisions, 2 will be okay
  4. sculpt some, any brush will do.
  5. add more subdivisions ( one will be good to crash Blender)

Another way to crash it
repeat a every step from above but the last one do this:

  1. Delete the multres modifier while in sculpt mode.

PS: i know @Sergey Sharybin (sergey) is working on multires. that why i was a bit hesitating to fill a bug report. If it is a known issue feel free to close the report.

Revisions and Commits

rB Blender

Related Objects

Mentioned In
T56282: Crash - going from Edit mode to Particle mode with 'Tab' key
Mentioned Here
rB0c8aa85069fa: Physics baking: tag interface locked during backing

Event Timeline

Erick Tukuniata (erickblender) created this task.Nov 1 2018, 6:25 PM
Philipp Oeser (lichtwerk) assigned this task to Sergey Sharybin (sergey).Nov 2 2018, 9:52 AM
Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.Nov 7 2018, 3:14 PM
Philipp Oeser (lichtwerk) added a subscriber: Philipp Oeser (lichtwerk).

Can confirm (as of rB0c8aa85069fabd20d5f030f016a85ad060839066)

this is backtrace for the first way to crash (add more subdivisions)

1 raise                                                           0x7ffff467153f 
2 abort                                                           0x7ffff465b895 
3 multires_reshape_vertex_from_final_data multires_reshape.c 296  0x2ae77e9      
4 reshape_from_ccg_regular_face           multires_reshape.c 1081 0x2aead2b      
5 reshape_from_ccg_task                   multires_reshape.c 1146 0x2aeb13c      
6 parallel_range_func                     task.c             1027 0x2edf708      
7 task_scheduler_thread_run               task.c             441  0x2edcf07      
8 start_thread                                                    0x7ffff480f58e 
9 clone                                                           0x7ffff4736513

this is from the second way to crash (delete modifier)

1   multires_reshape_ensure_displacement_grid                                                                                                                                                                 multires_reshape.c 97   0x2ae6ccb      
2   multires_reshape_ensure_displacement_grids                                                                                                                                                                multires_reshape.c 111  0x2ae6d54      
3   multires_reshape_ensure_grids                                                                                                                                                                             multires_reshape.c 142  0x2ae6e8c      
4   multiresModifier_reshapeFromCCG                                                                                                                                                                           multires_reshape.c 1170 0x2aeb20f      
5   object_update_from_subsurf_ccg                                                                                                                                                                            object.c           391  0x2b02487      
6   BKE_object_free_derived_caches                                                                                                                                                                            object.c           459  0x2b02626      
7   mesh_build_data                                                                                                                                                                                           DerivedMesh.c      1999 0x29863ce      
8   makeDerivedMesh                                                                                                                                                                                           DerivedMesh.c      2109 0x2986875      
9   BKE_object_handle_data_update                                                                                                                                                                             object_update.c    213  0x2b15b64      
10  BKE_object_eval_uber_data                                                                                                                                                                                 object_update.c    342  0x2b16146      
11  std::__invoke_impl<void, void ( *&)(Depsgraph *, Scene *, Object *), Depsgraph *, Scene *&, Object *&>                                                                                                    invoke.h           60   0x2f09672      
12  std::__invoke<void ( *&)(Depsgraph *, Scene *, Object *), Depsgraph *, Scene *&, Object *&>                                                                                                               invoke.h           95   0x2f083ce      
13  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>) functional         400  0x2f06f8a      
14  std::_Bind<void ( *(std::_Placeholder<1>, Scene *, Object *))(Depsgraph *, Scene *, Object *)>::operator()<Depsgraph *, void>(Depsgraph *&&)                                                              functional         484  0x2f052b9      
15  std::_Function_handler<void (Depsgraph *), std::_Bind<void ( *(std::_Placeholder<1>, Scene *, Object *))(Depsgraph *, Scene *, Object *)>>::_M_invoke(std::_Any_data const&, Depsgraph *&&)               std_function.h     297  0x2f028cb      
16  std::function<void (Depsgraph *)>::operator()(Depsgraph *) const                                                                                                                                          std_function.h     687  0x2f1981f      
17  DEG::deg_task_run_func                                                                                                                                                                                    deg_eval.cc        94   0x2f18fb2      
18  handle_local_queue                                                                                                                                                                                        task.c             419  0x2edd04a      
19  task_scheduler_thread_run                                                                                                                                                                                 task.c             448  0x2edd04a      
20  start_thread                                                                                                                                                                                                                      0x7ffff480f58e
Sergey Sharybin (sergey) changed the task status from Unknown Status to Resolved by committing rB50ba4762f685: Fix T57566: Blender 2.8 crashes with the new multires.Nov 16 2018, 10:34 AM
Sergey Sharybin (sergey) added a commit: rB50ba4762f685: Fix T57566: Blender 2.8 crashes with the new multires.