Particle system crash during animation after switching particle settings (near MEM_lockfree_reallocN_id) #61772

Closed
opened 2019-02-21 01:59:20 +01:00 by Ulrich Windl · 16 comments

System Information
Operating system: openSUSE Leap 15.0 (64 bit)
Graphics card: ATI RX 560

Blender Version
Broken: 2.79 Hash 5bd8ac9abf

Short description of error
Blender crashes when I switch between particle settings while using 11_Physic_Systems.blend from ISBN 978-3-8362-4454-1

Blender 2.79 (sub 0), Commit date: 2017-09-11 10:43, Hash 5bd8ac9abf

backtrace

./blender(BLI_system_backtrace+0x20) [0x1a6c8e0]
./blender() [0x107a525]
/lib64/libc.so.6(+0x36160) [0x7fe62777e160]
./blender(free+0x122) [0x51ca592]
./blender(MEM_lockfree_reallocN_id+0x5d) [0x1c1778d]
./blender() [0x18554b8]
./blender() [0x1853835]
./blender() [0x18541fb]
./blender() [0x1858a45]
./blender() [0x1a6dc39]
./blender() [0x1a6cb6f]
/lib64/libpthread.so.0(+0x7559) [0x7fe628d71559]
/lib64/libc.so.6(clone+0x3f) [0x7fe62784081f]
/tmp/11_Physic_Systems.crash.txt lines 1-16/16 (END)

Exact steps for others to reproduce the error
Select Boid, play animation, stop, rewind to frame 0,
Select Fluid, play animation, then crash

**System Information** Operating system: openSUSE Leap 15.0 (64 bit) Graphics card: ATI RX 560 **Blender Version** Broken: 2.79 Hash 5bd8ac9abfa **Short description of error** Blender crashes when I switch between particle settings while using 11_Physic_Systems.blend from ISBN 978-3-8362-4454-1 # Blender 2.79 (sub 0), Commit date: 2017-09-11 10:43, Hash 5bd8ac9abfa # backtrace ./blender(BLI_system_backtrace+0x20) [0x1a6c8e0] ./blender() [0x107a525] /lib64/libc.so.6(+0x36160) [0x7fe62777e160] ./blender(free+0x122) [0x51ca592] ./blender(MEM_lockfree_reallocN_id+0x5d) [0x1c1778d] ./blender() [0x18554b8] ./blender() [0x1853835] ./blender() [0x18541fb] ./blender() [0x1858a45] ./blender() [0x1a6dc39] ./blender() [0x1a6cb6f] /lib64/libpthread.so.0(+0x7559) [0x7fe628d71559] /lib64/libc.so.6(clone+0x3f) [0x7fe62784081f] /tmp/11_Physic_Systems.crash.txt lines 1-16/16 (END) **Exact steps for others to reproduce the error** Select Boid, play animation, stop, rewind to frame 0, Select Fluid, play animation, then crash
Author

Added subscriber: @torus

Added subscriber: @torus

Added subscriber: @brecht

Added subscriber: @brecht

Please test the latest daily build to see if it has been fixed already:
https://builder.blender.org/download/

If not, we need a .blend file to reproduce the issue. Referencing one that is available along with a book is not very practical for us.

Please test the latest daily build to see if it has been fixed already: https://builder.blender.org/download/ If not, we need a .blend file to reproduce the issue. Referencing one that is available along with a book is not very practical for us.

Added subscriber: @plater

Added subscriber: @plater

I've built ccd291aafb snapshot for the reporter to try. I'm assuming it's the latest 2.7 snapshot.
See also https://bugzilla.suse.com/show_bug.cgi?id=1126163

I've built ccd291aafbe5f0478963dc6e7f6b957a08eea511 snapshot for the reporter to try. I'm assuming it's the latest 2.7 snapshot. See also https://bugzilla.suse.com/show_bug.cgi?id=1126163
Author

I've received the OK to distribute the original file from the author, but even after compressing it, the size is 31MB. 11_Physic_Systems.blend.gz

In #61772#625054, @plater wrote:
I've built ccd291aafb snapshot for the reporter to try. I'm assuming it's the latest 2.7 snapshot.
See also https://bugzilla.suse.com/show_bug.cgi?id=1126163

That build also shows the same crash.

I've received the OK to distribute the original file from the author, but even after compressing it, the size is 31MB. [11_Physic_Systems.blend.gz](https://archive.blender.org/developer/F6698853/11_Physic_Systems.blend.gz) > In #61772#625054, @plater wrote: > I've built ccd291aafbe5f0478963dc6e7f6b957a08eea511 snapshot for the reporter to try. I'm assuming it's the latest 2.7 snapshot. > See also https://bugzilla.suse.com/show_bug.cgi?id=1126163 That build also shows the same crash.

I've managed to reproduce the bug, strangely I couldn't yesterday, so it's not a graphics card thing, I've got simple intel graphics. The reporter has reproduced with the above snapshot debug build built with -fsanitize=address, -DWITH_MEM_VALGRIND:BOOL=ON and -DWITH_ASSERT_ABORT:BOOL=ON and also with the 2.79 tarball from https://builder.blender.org/download/
There's several backtraces from https://bugzilla.opensuse.org/show_bug.cgi?id=1126163#c8 down.

I've managed to reproduce the bug, strangely I couldn't yesterday, so it's not a graphics card thing, I've got simple intel graphics. The reporter has reproduced with the above snapshot debug build built with -fsanitize=address, -DWITH_MEM_VALGRIND:BOOL=ON and -DWITH_ASSERT_ABORT:BOOL=ON and also with the 2.79 tarball from https://builder.blender.org/download/ There's several backtraces from https://bugzilla.opensuse.org/show_bug.cgi?id=1126163#c8 down.

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Sergey Sharybin was assigned by Sebastian Parborg 2019-02-25 15:11:30 +01:00

I can also reproduce this with both 2.79 (git) and 2.8.

Just to be more clear with the reproduction steps:

  1. Open the attached file
  2. Switch to the "Boid" scene
  3. Play animation for a while and stop
  4. Rewind to frame 0
  5. Switch scene to "Fluid"
  6. Play animation until it crashes

Backtrace:

Thread 30 "blender" received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fffd2ff9700 (LWP 4535)]
0x0000555556d37c55 in MEM_lockfree_mallocN_aligned (len=len@entry=1048576, alignment=0, str=str@entry=0x555557d234a5 "realloc")
    at /home/zed/programmering/blender_master/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:354
354		size_t extra_padding = MEMHEAD_ALIGN_PADDING(alignment);
(gdb) bt
#0  0x0000555556d37c55 in MEM_lockfree_mallocN_aligned (len=len@entry=1048576, alignment=0, str=str@entry=0x555557d234a5 "realloc")
    at /home/zed/programmering/blender_master/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:354
#1  0x0000555556d37de4 in MEM_lockfree_reallocN_id (vmemh=0x7fffbc907008, len=1048576, str=<optimized out>)
    at /home/zed/programmering/blender_master/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:198
#2  0x0000555556954ff2 in sph_spring_delete (j=15584, psys=0x7fffc2f84708)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:1480
#3  sph_springs_modify (dtime=<optimized out>, psys=0x7fffc2f84708)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:1526
- 4  dynamics_step (cfra=134, sim=0x7fffd2ff81f0) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:3657
- 5  system_step (sim=sim@entry=0x7fffd2ff81f0, cfra=cfra@entry=134, use_render_params=use_render_params@entry=false)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:4044
#6  0x000055555695576e in particle_system_update (depsgraph=0x7fffc2e42a08, scene=0x7fffbd2fe008, ob=0x7fffc2bf5c08, psys=psys@entry=0x7fffc2f84708,
    use_render_params=<optimized out>) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:4363
#7  0x000055555660c1af in deformVerts (md=0x7fffc2dd30c8, ctx=0x7fffd2ff86e0, mesh=<optimized out>, vertexCos=0x7fffcd5e1008, numVerts=<optimized out>)
    at /home/zed/programmering/blender_master/blender/source/blender/modifiers/intern/MOD_particlesystem.c:200
#8  0x0000555556826c4a in mesh_calc_modifiers (depsgraph=depsgraph@entry=0x7fffc2e42a08, scene=scene@entry=0x7fffbd2fe008, ob=ob@entry=0x7fffc2bf5c08,
    inputVertexCos=inputVertexCos@entry=0x0, useDeform=useDeform@entry=1, need_mapping=need_mapping@entry=false, dataMask=637534745, index=-1, useCache=true,
    build_shapekey_layers=false, r_deform=0x7fffc2bf6140, r_final=0x7fffc2bf6138)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:1237
#9  0x0000555556827931 in mesh_build_data (depsgraph=depsgraph@entry=0x7fffc2e42a08, scene=scene@entry=0x7fffbd2fe008, ob=ob@entry=0x7fffc2bf5c08,
    dataMask=637534745, build_shapekey_layers=build_shapekey_layers@entry=false, need_mapping=<optimized out>)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2034
#10 0x0000555556829b7b in makeDerivedMesh (depsgraph=depsgraph@entry=0x7fffc2e42a08, scene=scene@entry=0x7fffbd2fe008, ob=ob@entry=0x7fffc2bf5c08,
    em=em@entry=0x0, dataMask=<optimized out>, dataMask@entry=637534745, build_shapekey_layers=build_shapekey_layers@entry=false)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2150
#11 0x000055555692f0e6 in BKE_object_handle_data_update (depsgraph=0x7fffc2e42a08, scene=0x7fffbd2fe008, ob=0x7fffc2bf5c08)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/object_update.c:181
#12 0x000055555692f63e in BKE_object_eval_uber_data (depsgraph=0x7fffc2e42a08, scene=0x7fffbd2fe008, ob=0x7fffc2bf5c08)
    at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/object_update.c:348
#13 0x0000555556bd5826 in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const (__args#0=<optimized out>, this=0x7fffc2dc73c0)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_function.h:682
#14 DEG::deg_task_run_func (pool=0x7fffc931d008, taskdata=0x7fffc2dc7348, thread_id=7)
    at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:88
#15 0x0000555556bb64ae in task_scheduler_thread_run (thread_p=0x7fffd86b2958)
    at /home/zed/programmering/blender_master/blender/source/blender/blenlib/intern/task.c:439
- 16 0x00007ffff63993c3 in start_thread () from /lib64/libpthread.so.0
- 17 0x00007ffff13513ef in clone () from /lib64/libc.so.6
I can also reproduce this with both 2.79 (git) and 2.8. Just to be more clear with the reproduction steps: 1. Open the attached file 2. Switch to the "Boid" scene 3. Play animation for a while and stop 4. Rewind to frame 0 5. Switch scene to "Fluid" 6. Play animation until it crashes Backtrace: ``` Thread 30 "blender" received signal SIGFPE, Arithmetic exception. [Switching to Thread 0x7fffd2ff9700 (LWP 4535)] 0x0000555556d37c55 in MEM_lockfree_mallocN_aligned (len=len@entry=1048576, alignment=0, str=str@entry=0x555557d234a5 "realloc") at /home/zed/programmering/blender_master/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:354 354 size_t extra_padding = MEMHEAD_ALIGN_PADDING(alignment); (gdb) bt #0 0x0000555556d37c55 in MEM_lockfree_mallocN_aligned (len=len@entry=1048576, alignment=0, str=str@entry=0x555557d234a5 "realloc") at /home/zed/programmering/blender_master/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:354 #1 0x0000555556d37de4 in MEM_lockfree_reallocN_id (vmemh=0x7fffbc907008, len=1048576, str=<optimized out>) at /home/zed/programmering/blender_master/blender/intern/guardedalloc/intern/mallocn_lockfree_impl.c:198 #2 0x0000555556954ff2 in sph_spring_delete (j=15584, psys=0x7fffc2f84708) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:1480 #3 sph_springs_modify (dtime=<optimized out>, psys=0x7fffc2f84708) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:1526 - 4 dynamics_step (cfra=134, sim=0x7fffd2ff81f0) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:3657 - 5 system_step (sim=sim@entry=0x7fffd2ff81f0, cfra=cfra@entry=134, use_render_params=use_render_params@entry=false) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:4044 #6 0x000055555695576e in particle_system_update (depsgraph=0x7fffc2e42a08, scene=0x7fffbd2fe008, ob=0x7fffc2bf5c08, psys=psys@entry=0x7fffc2f84708, use_render_params=<optimized out>) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/particle_system.c:4363 #7 0x000055555660c1af in deformVerts (md=0x7fffc2dd30c8, ctx=0x7fffd2ff86e0, mesh=<optimized out>, vertexCos=0x7fffcd5e1008, numVerts=<optimized out>) at /home/zed/programmering/blender_master/blender/source/blender/modifiers/intern/MOD_particlesystem.c:200 #8 0x0000555556826c4a in mesh_calc_modifiers (depsgraph=depsgraph@entry=0x7fffc2e42a08, scene=scene@entry=0x7fffbd2fe008, ob=ob@entry=0x7fffc2bf5c08, inputVertexCos=inputVertexCos@entry=0x0, useDeform=useDeform@entry=1, need_mapping=need_mapping@entry=false, dataMask=637534745, index=-1, useCache=true, build_shapekey_layers=false, r_deform=0x7fffc2bf6140, r_final=0x7fffc2bf6138) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:1237 #9 0x0000555556827931 in mesh_build_data (depsgraph=depsgraph@entry=0x7fffc2e42a08, scene=scene@entry=0x7fffbd2fe008, ob=ob@entry=0x7fffc2bf5c08, dataMask=637534745, build_shapekey_layers=build_shapekey_layers@entry=false, need_mapping=<optimized out>) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2034 #10 0x0000555556829b7b in makeDerivedMesh (depsgraph=depsgraph@entry=0x7fffc2e42a08, scene=scene@entry=0x7fffbd2fe008, ob=ob@entry=0x7fffc2bf5c08, em=em@entry=0x0, dataMask=<optimized out>, dataMask@entry=637534745, build_shapekey_layers=build_shapekey_layers@entry=false) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/DerivedMesh.c:2150 #11 0x000055555692f0e6 in BKE_object_handle_data_update (depsgraph=0x7fffc2e42a08, scene=0x7fffbd2fe008, ob=0x7fffc2bf5c08) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/object_update.c:181 #12 0x000055555692f63e in BKE_object_eval_uber_data (depsgraph=0x7fffc2e42a08, scene=0x7fffbd2fe008, ob=0x7fffc2bf5c08) at /home/zed/programmering/blender_master/blender/source/blender/blenkernel/intern/object_update.c:348 #13 0x0000555556bd5826 in std::function<void (Depsgraph*)>::operator()(Depsgraph*) const (__args#0=<optimized out>, this=0x7fffc2dc73c0) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include/g++-v8/bits/std_function.h:682 #14 DEG::deg_task_run_func (pool=0x7fffc931d008, taskdata=0x7fffc2dc7348, thread_id=7) at /home/zed/programmering/blender_master/blender/source/blender/depsgraph/intern/eval/deg_eval.cc:88 #15 0x0000555556bb64ae in task_scheduler_thread_run (thread_p=0x7fffd86b2958) at /home/zed/programmering/blender_master/blender/source/blender/blenlib/intern/task.c:439 - 16 0x00007ffff63993c3 in start_thread () from /lib64/libpthread.so.0 - 17 0x00007ffff13513ef in clone () from /lib64/libc.so.6 ```
Sergey Sharybin removed their assignment 2019-03-11 14:08:39 +01:00

Added subscriber: @Sergey

Added subscriber: @Sergey

This isn't a recent regression, goes at least back in 2.70 (where things crash on random at the step 3 from @ZedDB's instruction).
I don't personally think it worth spending time on this now, and would rather encourage new particle/physics development.

If someone else wants to look into this, be my guest!

This isn't a recent regression, goes at least back in 2.70 (where things crash on random at the step 3 from @ZedDB's instruction). I don't personally think it worth spending time on this now, and would rather encourage new particle/physics development. If someone else wants to look into this, be my guest!

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

I have re-triaged this report and can not reproduce it.
Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

I have re-triaged this report and can not reproduce it. Can you please check if this is still an issue in latest build? https://builder.blender.org/download/

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Sebastian Parborg self-assigned this 2020-02-05 14:18:28 +01:00

Since last asking for information it has been 7 or more days, due to the policy of our bug tracker we will have to archive the report until the requested information is given.

Since last asking for information it has been 7 or more days, due to the policy of our bug tracker we will have to archive the report until the requested information is given.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#61772
No description provided.