Parenting curve to text causes crash on open #53460

Closed
opened 2017-12-03 17:25:04 +01:00 by Vesa · 16 comments

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

crash_test.blend

**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 [crash_test.blend](https://archive.blender.org/developer/F1279932/crash_test.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @xard

Added subscriber: @xard
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

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
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 ```
HomeCareTampa commented 2017-12-07 08:07:06 +01:00 (Migrated from localhost:3001)

Added subscriber: @HomeCareTampa

Added subscriber: @HomeCareTampa
HomeCareTampa commented 2017-12-07 08:07:06 +01:00 (Migrated from localhost:3001)

This comment was removed by @HomeCareTampa

*This comment was removed by @HomeCareTampa*

Added subscriber: @mont29

Added subscriber: @mont29

Added subscriber: @anthonyl

Added subscriber: @anthonyl
Member

Added subscriber: @cmbasnett

Added subscriber: @cmbasnett

Added subscriber: @lhryniuk

Added subscriber: @lhryniuk

Removed subscriber: @lhryniuk

Removed subscriber: @lhryniuk

Added subscriber: @idlecode

Added subscriber: @idlecode

I could not reproduce it with 2.8 (dff7f55cd0), should we keep it open or backport fix to 2.79b(c)?

I could not reproduce it with 2.8 (dff7f55cd06), should we keep it open or backport fix to 2.79b(c)?

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-03-14 19:31:25 +01:00

The bugfix comes with the new dependency graph, which we can't backport. Will archive bug now.

The bugfix comes with the new dependency graph, which we can't backport. Will archive bug now.
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
9 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#53460
No description provided.