Page MenuHome

Crash when applying Scale of Object with vertex parent
Closed, ResolvedPublic


System Information
Operating system: Windows-10-10.0.16299 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 391.35

Blender Version
Broken: version: 2.80 (sub 57), branch: blender2.7, commit date: 2019-04-17 19:26, hash: rBb46245470f79
Worked: (optional)

Short description of error
When applying the scale of an object which is parented to a Bezier Curve via vertex parent Blender crashes.

Exact steps for others to reproduce the error
Add a Bezier Curve Object to the Scene
Add a Cube to the Scene
Select the Cube then select the Bezier Curve Object
Enter edit mode and select one vertex of the Bezier Curve
Press Ctrl+P and "Make Vertex Parent"
Leave Edit Mode and only select the Cube
Press Ctrl+A and apply scale

Event Timeline

Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Confirmed, checking...

Asserts here:

BLI_assert failed: /blender/source/blender/blenkernel/intern/object.c:2386, give_parvert(), at 'par->runtime.curve_cache != ((void *)0)'

/* Unless there's some weird depsgraph failure the cache should exist. */

1   raise                                                   0x7ffff466853f 
2   abort                                                   0x7ffff465295e 
3   give_parvert                 object.c             2386  0x1d9c54c      
4   BKE_object_get_parent_matrix object.c             2478  0x1d9c9be      
5   solve_parenting              object.c             2505  0x1d9ca9d      
6   object_where_is_calc_ex      object.c             2539  0x1d9cbd1      
7   BKE_object_where_is_calc     object.c             2598  0x1d9ce5a      
8   apply_objects_internal       object_transform.c   782   0x2be5421      
9   object_transform_apply_exec  object_transform.c   853   0x2be5731      
10  wm_operator_invoke           wm_event_system.c    1421  0x22ecf86      
11  wm_operator_call_internal    wm_event_system.c    1623  0x22ed62e

Hm, one for @Sergey Sharybin (sergey)?

Patch proposed in D4976 fixes this issue as well.

P.S. Attaching demo file. Always helps a lot: even if the steps reproducing seems simple, having 1 step instead of 7 :)