Parenting curve to text causes crash on open
Open, ConfirmedPublic

Description

System Information
Ubuntu 16.04 LTS

Blender Version
Broken: 2.79 2017-09-11

Short description of error
Parenting curve to a text object which uses the curve crashes blender next time you open the file.

Exact steps for others to reproduce the error

  1. Create text object
  2. Create bezier curve
  3. Use the curve in the text options "Text on Curve"
  4. Parent the curve to the object

Details

Type
Bug
LazyDodo (LazyDodo) triaged this task as Confirmed priority.Sun, Dec 3, 5:34 PM

can confirm crash on windows as well.

While opening

Dependency cycle detected:
  BezierCurve depends on Text through Parent.
  Text depends on BezierCurve through Texture On Curve.

failing assert here

BLI_assert failed: K:\BlenderGit\blender\source\blender\blenkernel\intern\font.c :1073, BKE_vfont_to_curve_ex(), at 'cu->textoncurve->curve_cache != ((void *)0)'

one line later it get dereffed, which makes the actual crash.

>	blender.exe!BKE_vfont_to_curve_ex(Main * bmain, Object * ob, int mode, ListBase * r_nubase, const wchar_t * * r_text, int * r_text_len, bool * r_text_free, CharTrans * * r_chartransdata) Line 1074	C
 	blender.exe!BKE_vfont_to_curve_nubase(Main * bmain, Object * ob, int mode, ListBase * r_nubase) Line 1339	C
 	blender.exe!do_makeDispListCurveTypes(Scene * scene, Object * ob, ListBase * dispbase, DerivedMesh * * r_dm_final, const bool for_render, const bool for_orco, const bool use_render_resolution) Line 1544	C
 	blender.exe!BKE_displist_make_curveTypes(Scene * scene, Object * ob, const bool for_orco) Line 1781	C
 	blender.exe!BKE_object_handle_data_update(EvaluationContext * eval_ctx, Scene * scene, Object * ob) Line 213	C
 	blender.exe!BKE_object_handle_update_ex(EvaluationContext * eval_ctx, Scene * scene, Object * ob, RigidBodyWorld * rbw, const bool do_proxy_update) Line 2662	C
 	blender.exe!scene_update_all_bases(EvaluationContext * eval_ctx, Scene * scene, Scene * scene_parent) Line 1532	C
 	blender.exe!scene_update_objects(EvaluationContext * eval_ctx, Main * bmain, Scene * scene, Scene * scene_parent) Line 1783	C
 	blender.exe!scene_update_tagged_recursive(EvaluationContext * eval_ctx, Main * bmain, Scene * scene, Scene * scene_parent) Line 1801	C
 	blender.exe!BKE_scene_update_tagged(EvaluationContext * eval_ctx, Main * bmain, Scene * scene) Line 1903	C
 	blender.exe!wm_event_do_refresh_wm_and_depsgraph(bContext * C) Line 308	C
 	blender.exe!wm_event_do_notifiers(bContext * C) Line 423	C
 	blender.exe!WM_main(bContext * C) Line 514	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 529	C