Page MenuHome

Crash when keying a metaball if there are particles in the scene
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.14393 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.67

Blender Version
Broken: version: 2.80 (sub 74), branch: master, commit date: 2019-07-22 11:13, hash: rB02c5c091dfd6
Worked: (optional)

Short description of error
[Please fill out a short description of the error here]

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

Event Timeline

I was able to reproduce this with the attached .blend. This is the segfault callstack:

#0  in CustomData_get_render_layer ()
#1  in psys_get_dupli_texture ()
#2  in make_duplis_particles ()
#3  in object_duplilist ()
#4  in BKE_scene_base_iter_next ()
#5  in BKE_mball_polygonize ()
#6  in BKE_displist_make_mball ()
#7  in BKE_object_handle_data_update ()
#8  in BKE_object_eval_uber_data ()
#9  in DEG::deg_task_run_func(TaskPool*, void*, int) ()
#10 in task_scheduler_thread_run ()
#11 in start_thread (arg=0x7fffb18dd700) at pthread_create.c:463
#12 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

To reproduce, advance one frame, then go back one frame.

This looks like a somewhat related issue to T46622.

I have a hunch it's because this code isn't thread-safe. I'm not sure yet though.

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 50.Aug 2 2019, 12:48 PM

Can reproduce in rBb54528fa1ed4

Philipp Oeser (lichtwerk) claimed this task.

Good news, this was resolved with rBcea67064da5f: Fix T62311: Metaball animation playback crash, closing...
(feel free to comment again if issues persist though...)