Page MenuHome

Blender 2.80 Beta crashes when baking a particle system.
Closed, ArchivedPublic

Description

System Information
Operating system: Kubuntu 18.04
Graphics card: GeForce 750 TI

Blender Version
Broken: 2.80 Beta
Worked: (optional)

Short description of error
This short 400 frame animation crashed when I clicked "Bake" or "Bake All Dynamics". I was able to do "Calculate To Frame" only the first 20 or 30 frames before it crashed.

Exact steps for others to reproduce the error

  1. Load the attached .blend file
  2. Go to "The Animation" scene
  3. Click the "Scene" tab
  4. Scroll down to "Cache"
  5. Click "Bake"
  6. SEGFAULT!

I have also attached the system info.txt file.

  • Are there any workarounds???

Thanks, and keep up the fantastic work!!!!!

Details

Type
Bug

Event Timeline

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

I'm getting the following assert:
BLI_assert failed: /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/rigidbody.c:1450, rigidbody_update_simulation(), at '!"CoW object part of RBW object collection without RB object data, should not happen.\n"'

@Sergey Sharybin (sergey), I'm guessing this is for sergof as it is rigid body. Or is this your area because of CoW?

The assert is from @Bastien Montagne (mont29), i only have a vague idea of what's going on.

Bastien, mind having a glance?

Can’t even check that file, it crashes on me (GPU issue, @Clément Foucault (fclem) might be interested ;) ):

GPUShader: compile error:
0:5894(2): error: no function with name 'world_normals_get'
0:5895(31): warning: `tmp1' used uninitialized
0:5896(2): error: no function with name 'node_bsdf_glossy'
0:5897(2): error: no function with name 'world_normals_get'
0:5898(2): error: no function with name 'world_normals_get'
0:5899(2): error: no function with name 'node_eevee_specular'
0:5900(23): warning: `tmp13' used uninitialized
0:5900(30): warning: `tmp27' used uninitialized

i965: Failed to submit batchbuffer: Input/output error

That said, if this file uses a particle system with some rigidbody sim, it's probably just missing creation of those RB data somewhere (it used to generate it on the fly during simulation, but that kind of behavior is not possible anymore with CoW thingy)? That was done for regular RB case, but it's most likely still missing from other exotic situations, if those exist.

@Bastien Montagne (mont29) does it crash if you disable "Load UI"? (It normally starts in eevee lookdev mode)

This has nothing to do with rigidbody world (or that assert, which is a strong warning that something is wrong in RB area, but should never lead to crash currently). File seems rather messy btw, since the two objects in RigidBodyWorld collection are not instanced in any scene (this is not supposed to be possible afaik).

In fact, rigid body is totally useless here and can be deactivated completely. Only simulations involved are particles and forces.

And crash (at least for me) comes from deep in particle/depsgraph area:

=================================================================
==13208==ERROR: AddressSanitizer: heap-use-after-free on address 0x61b00027f3a8 at pc 0x55da95442868 bp 0x7fffe714f2f0 sp 0x7fffe714f2e8
READ of size 1 at 0x61b00027f3a8 thread T0
    #0 0x55da95442867 in check_datablock_expanded /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:418
    #1 0x55da95442867 in foreach_libblock_validate_callback /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:670
    #2 0x55da947993e0 in BKE_library_foreach_ID_link /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/library_query.c:532
    #3 0x55da954449f2 in DEG::deg_validate_copy_on_write_datablock(ID*) /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:1125
    #4 0x55da953e99f7 in deg_objects_dupli_iterator_next /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/depsgraph_query_iter.cc:171
    #5 0x55da953ea587 in DEG_iterator_objects_next /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/depsgraph_query_iter.cc:283
    #6 0x55da9227a247 in stats_update /home/i74700deb64/blender/__work__/src/source/blender/editors/space_info/info_stats.c:439
    #7 0x55da9227ba2a in ED_info_stats_string /home/i74700deb64/blender/__work__/src/source/blender/editors/space_info/info_stats.c:604
    #8 0x55da95064986 in Scene_statistics_call /home/i74700deb64/blender/__work__/build_master_debug/source/blender/makesrna/intern/rna_scene_gen.c:8077
    #9 0x55da94cd9d90 in RNA_function_call /home/i74700deb64/blender/__work__/src/source/blender/makesrna/intern/rna_access.c:6875
    #10 0x55da9331bd04 in pyrna_func_call /home/i74700deb64/blender/__work__/src/source/blender/python/intern/bpy_rna.c:5822
    #11 0x7fcd28b54c52 in _PyObject_FastCallKeywords (/usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0+0x274c52)
    #12 0x7fcd28954a14 in _PyEval_EvalFrameDefault (/usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0+0x74a14)
    #13 0x7fcd28959482  (/usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0+0x79482)
    #14 0x7fcd28b54152 in _PyFunction_FastCallDict (/usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0+0x274152)
    #15 0x55da93322f11 in bpy_class_call /home/i74700deb64/blender/__work__/src/source/blender/python/intern/bpy_rna.c:7926
    #16 0x55da951124d8 in header_draw /home/i74700deb64/blender/__work__/src/source/blender/makesrna/intern/rna_ui.c:623
    #17 0x55da930188e8 in ED_region_header_layout /home/i74700deb64/blender/__work__/src/source/blender/editors/screen/area.c:2440
    #18 0x55da93007b38 in ED_region_do_layout /home/i74700deb64/blender/__work__/src/source/blender/editors/screen/area.c:481
    #19 0x55da920f1cbd in wm_draw_window_offscreen /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_draw.c:539
    #20 0x55da920f2b53 in wm_draw_window /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_draw.c:712
    #21 0x55da920f3599 in wm_draw_update /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_draw.c:866
    #22 0x55da920eb7ac in WM_main /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm.c:433
    #23 0x55da920e0eb0 in main /home/i74700deb64/blender/__work__/src/source/creator/creator.c:523
    #24 0x7fcd1d6d009a in __libc_start_main ../csu/libc-start.c:308
    #25 0x55da920e02e9 in _start (/home/i74700deb64/blender/__work__/build_master_debug/bin/blender+0x351c2e9)

0x61b00027f3a8 is located 40 bytes inside of 1560-byte region [0x61b00027f380,0x61b00027f998)
freed by thread T18 here:
    #0 0x7fcd29495b50 in free (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe8b50)
    #1 0x55da959e4ff2 in MEM_lockfree_freeN /home/i74700deb64/blender/__work__/src/intern/guardedalloc/intern/mallocn_lockfree_impl.c:164
    #2 0x55da948e46b2 in BKE_object_free_derived_caches /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object.c:476
    #3 0x55da944dd4e2 in mesh_build_data /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/DerivedMesh.c:2036
    #4 0x55da944ddfb9 in makeDerivedMesh /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/DerivedMesh.c:2160
    #5 0x55da949185d8 in BKE_object_handle_data_update /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object_update.c:207
    #6 0x55da94919b89 in BKE_object_eval_uber_data /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object_update.c:379
    #7 0x55da954148e1 in void std::__invoke_impl<void, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>(std::__invoke_other, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*&&, Scene*&, Object*&) /usr/include/c++/8/bits/invoke.h:60
    #8 0x55da9541254f in std::__invoke_result<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>::type std::__invoke<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>(void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*&&, Scene*&, Object*&) /usr/include/c++/8/bits/invoke.h:95
    #9 0x55da9540fba6 in void 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>) /usr/include/c++/8/functional:400
    #10 0x55da9540b6e7 in void std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::operator()<Depsgraph*, void>(Depsgraph*&&) /usr/include/c++/8/functional:484
    #11 0x55da95405d2b in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)> >::_M_invoke(std::_Any_data const&, Depsgraph*&&) /usr/include/c++/8/bits/std_function.h:297
    #12 0x55da9543f26d in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/8/bits/std_function.h:687
    #13 0x55da9543d541 in deg_task_run_func /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval.cc:95
    #14 0x55da953a2a91 in task_scheduler_thread_run /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/task.c:443
    #15 0x7fcd275affa2 in start_thread /build/glibc-T8GPG6/glibc-2.28/nptl/pthread_create.c:486

previously allocated by thread T19 here:
    #0 0x7fcd294960b8 in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe90b8)
    #1 0x55da959e5477 in MEM_lockfree_callocN /home/i74700deb64/blender/__work__/src/intern/guardedalloc/intern/mallocn_lockfree_impl.c:282
    #2 0x55da94780f91 in BKE_libblock_alloc_notest /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/library.c:1094
    #3 0x55da94781142 in BKE_libblock_alloc /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/library.c:1110
    #4 0x55da94782046 in BKE_libblock_copy_ex /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/library.c:1330
    #5 0x55da94778523 in BKE_id_copy_ex /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/library.c:594
    #6 0x55da9480bf96 in BKE_mesh_copy_for_eval /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/mesh.c:710
    #7 0x55da944d8947 in mesh_calc_modifiers /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/DerivedMesh.c:1557
    #8 0x55da944dd548 in mesh_build_data /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/DerivedMesh.c:2044
    #9 0x55da944ddfb9 in makeDerivedMesh /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/DerivedMesh.c:2160
    #10 0x55da949185d8 in BKE_object_handle_data_update /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object_update.c:207
    #11 0x55da94919b89 in BKE_object_eval_uber_data /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/object_update.c:379
    #12 0x55da954148e1 in void std::__invoke_impl<void, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>(std::__invoke_other, void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*&&, Scene*&, Object*&) /usr/include/c++/8/bits/invoke.h:60
    #13 0x55da9541254f in std::__invoke_result<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>::type std::__invoke<void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*, Scene*&, Object*&>(void (*&)(Depsgraph*, Scene*, Object*), Depsgraph*&&, Scene*&, Object*&) /usr/include/c++/8/bits/invoke.h:95
    #14 0x55da9540fba6 in void 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>) /usr/include/c++/8/functional:400
    #15 0x55da9540b6e7 in void std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)>::operator()<Depsgraph*, void>(Depsgraph*&&) /usr/include/c++/8/functional:484
    #16 0x55da95405d2b in std::_Function_handler<void (Depsgraph*), std::_Bind<void (*(std::_Placeholder<1>, Scene*, Object*))(Depsgraph*, Scene*, Object*)> >::_M_invoke(std::_Any_data const&, Depsgraph*&&) /usr/include/c++/8/bits/std_function.h:297
    #17 0x55da9543f26d in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const /usr/include/c++/8/bits/std_function.h:687
    #18 0x55da9543d541 in deg_task_run_func /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval.cc:95
    #19 0x55da953a2a91 in task_scheduler_thread_run /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/task.c:443
    #20 0x7fcd275affa2 in start_thread /build/glibc-T8GPG6/glibc-2.28/nptl/pthread_create.c:486

Thread T18 created by T0 here:
    #0 0x7fcd293f6ef0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x49ef0)
    #1 0x55da953a33f9 in BLI_task_scheduler_create /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/task.c:506
    #2 0x55da953aaac1 in BLI_task_scheduler_get /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/threads.c:182
    #3 0x55da953a939e in BLI_task_parallel_range /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/task.c:1115
    #4 0x55da954460c8 in flush_prepare /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_flush.cc:122
    #5 0x55da954460c8 in DEG::deg_graph_flush_updates(Main*, DEG::Depsgraph*) /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_flush.cc:379
    #6 0x55da953ee4cd in DEG_graph_flush_update /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/depsgraph_tag.cc:688
    #7 0x55da94a23d7f in BKE_scene_graph_update_tagged /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/scene.c:1499
    #8 0x55da920f537a in wm_event_do_depsgraph /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:336
    #9 0x55da92116240 in wm_file_read_post /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_files.c:496
    #10 0x55da921184a2 in wm_homefile_read /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_files.c:1011
    #11 0x55da9212a475 in WM_init /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_init_exit.c:258
    #12 0x55da920e0bf9 in main /home/i74700deb64/blender/__work__/src/source/creator/creator.c:441
    #13 0x7fcd1d6d009a in __libc_start_main ../csu/libc-start.c:308

Thread T19 created by T0 here:
    #0 0x7fcd293f6ef0 in __interceptor_pthread_create (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x49ef0)
    #1 0x55da953a33f9 in BLI_task_scheduler_create /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/task.c:506
    #2 0x55da953aaac1 in BLI_task_scheduler_get /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/threads.c:182
    #3 0x55da953a939e in BLI_task_parallel_range /home/i74700deb64/blender/__work__/src/source/blender/blenlib/intern/task.c:1115
    #4 0x55da954460c8 in flush_prepare /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_flush.cc:122
    #5 0x55da954460c8 in DEG::deg_graph_flush_updates(Main*, DEG::Depsgraph*) /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_flush.cc:379
    #6 0x55da953ee4cd in DEG_graph_flush_update /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/depsgraph_tag.cc:688
    #7 0x55da94a23d7f in BKE_scene_graph_update_tagged /home/i74700deb64/blender/__work__/src/source/blender/blenkernel/intern/scene.c:1499
    #8 0x55da920f537a in wm_event_do_depsgraph /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_event_system.c:336
    #9 0x55da92116240 in wm_file_read_post /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_files.c:496
    #10 0x55da921184a2 in wm_homefile_read /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_files.c:1011
    #11 0x55da9212a475 in WM_init /home/i74700deb64/blender/__work__/src/source/blender/windowmanager/intern/wm_init_exit.c:258
    #12 0x55da920e0bf9 in main /home/i74700deb64/blender/__work__/src/source/creator/creator.c:441
    #13 0x7fcd1d6d009a in __libc_start_main ../csu/libc-start.c:308

SUMMARY: AddressSanitizer: heap-use-after-free /home/i74700deb64/blender/__work__/src/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc:418 in check_datablock_expanded
Shadow bytes around the buggy address:
  0x0c3680047e20: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047e30: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047e40: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047e50: fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c3680047e60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x0c3680047e70: fd fd fd fd fd[fd]fd fd fd fd fd fd fd fd fd fd
  0x0c3680047e80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047e90: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047ea0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047eb0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c3680047ec0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==13208==ABORTING

@Bastien Montagne (mont29), i've solved the crash with particles. Mind looking into rigid body now? :)

Bastien Montagne (mont29) lowered the priority of this task from Confirmed, Medium to Needs Information from User.Jan 30 2019, 4:30 PM

@Sergey Sharybin (sergey), no, not really, at least not with this file. As I said, it’s a mess, with objects not instantiated at all in any scene, which is not supposed to happen. Further more, that file was saved after my work on adding RBW data to all involved objects (at least, versioning code ensuring that is not run), and yet objects in RBW collection do not have said data. So unless we get a way to reproduce such situation, I cannot do much here really.

@Lord Alveric (LordAlveric) with the latest blender beta, could you see if you can reproduce this from scratch? (Make sure you have steps to reproduce from scratch as well)

Jacques Lucke (JacquesLucke) closed this task as Archived.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.