Regression: VSE: Crash unlinking packed font file from text strip with more than one user #116215

Closed
opened 2023-12-15 05:57:06 +01:00 by Mingwei Lim · 5 comments

System Information
Operating system: macOS-12.7.2-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 Max 1.2

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-05-04 09:04, hash: e674e32aa122
Worked: version: 3.6.0 Alpha, branch: main, commit date: 2023-05-01 20:15, hash: 0652945dbda7

Caused by d770fd5ac4

Short description of error
In the VSE, when unlinking a font file(while packed) from a text strip with more than one user, blender crashes instantly.

Exact steps for others to reproduce the error

  1. With Blender in factory settings, navigate to the VSE from the file menu (i.e. File > New > Video Editing).
  2. Create a text strip and select a font file (OpenSans-SemiBold.ttf is used as an example).
    image
  3. Pack the font file from the File menu (i.e. File > External Data > Pack Resources) and duplicate the text strip so that there's now two users of the font data.
    image
  4. Select the first strip and unlink the font file.
    image
  5. Blender crashes.
**System Information** Operating system: macOS-12.7.2-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 Max 1.2 **Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-05-04 09:04, hash: `e674e32aa122` Worked: version: 3.6.0 Alpha, branch: main, commit date: 2023-05-01 20:15, hash: `0652945dbda7` Caused by d770fd5ac486 **Short description of error** In the VSE, when unlinking a font file(while packed) from a text strip with more than one user, blender crashes instantly. **Exact steps for others to reproduce the error** 1. With Blender in factory settings, navigate to the VSE from the file menu (i.e. File > New > Video Editing). 2. Create a text strip and select a font file (OpenSans-SemiBold.ttf is used as an example). ![image](/attachments/5bf9d47c-25bc-4ee6-8f30-b883e8361e6f) 3. Pack the font file from the File menu (i.e. File > External Data > Pack Resources) and duplicate the text strip so that there's now two users of the font data. ![image](/attachments/68dbbc0e-49d4-49a7-9dc6-7ebce56d330e) 4. Select the first strip and unlink the font file. ![image](/attachments/3bad8a56-d04a-4834-b825-955c73375c70) 5. Blender crashes.
Mingwei Lim added the
Severity
Normal
Type
Report
Status
Needs Triage
labels 2023-12-15 05:57:07 +01:00
Mingwei Lim changed title from VSE: Crash when packed font file with more than one user is unlinked from a text strip to VSE: Crash unlinking packed font file from text strip with more than one user 2023-12-15 06:00:24 +01:00
Iliya Katushenock changed title from VSE: Crash unlinking packed font file from text strip with more than one user to Regression: VSE: Crash unlinking packed font file from text strip with more than one user 2023-12-15 09:32:25 +01:00
Iliya Katushenock added this to the 3.6 LTS milestone 2023-12-15 09:32:40 +01:00
No description provided.
Iliya Katushenock added
Severity
Normal
and removed
Severity
High
labels 2023-12-15 09:35:00 +01:00
Member

Caused by d770fd5ac4

@ideasman42 : mind checking?

Caused by d770fd5ac486 @ideasman42 : mind checking?
Philipp Oeser added
Severity
High
and removed
Severity
Normal
labels 2023-12-15 09:51:31 +01:00
Campbell Barton self-assigned this 2023-12-15 09:54:22 +01:00
Member

Als see this: Can't find font: <builtin>

Quick bandaid:

diff --git a/source/blender/blenfont/intern/blf.cc b/source/blender/blenfont/intern/blf.cc
index 61c8a84234f..87d1234fb0b 100644
--- a/source/blender/blenfont/intern/blf.cc
+++ b/source/blender/blenfont/intern/blf.cc
@@ -130,7 +130,7 @@ static int blf_search_by_filepath(const char *filepath)
 {
   for (int i = 0; i < BLF_MAX_FONT; i++) {
     const FontBLF *font = global_font[i];
-    if (font && (BLI_path_cmp(font->filepath, filepath) == 0)) {
+    if (font && font->filepath && (BLI_path_cmp(font->filepath, filepath) == 0)) {
       return i;
     }
   }
Als see this: `Can't find font: <builtin>` Quick bandaid: ```diff diff --git a/source/blender/blenfont/intern/blf.cc b/source/blender/blenfont/intern/blf.cc index 61c8a84234f..87d1234fb0b 100644 --- a/source/blender/blenfont/intern/blf.cc +++ b/source/blender/blenfont/intern/blf.cc @@ -130,7 +130,7 @@ static int blf_search_by_filepath(const char *filepath) { for (int i = 0; i < BLF_MAX_FONT; i++) { const FontBLF *font = global_font[i]; - if (font && (BLI_path_cmp(font->filepath, filepath) == 0)) { + if (font && font->filepath && (BLI_path_cmp(font->filepath, filepath) == 0)) { return i; } } ```
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-12-15 10:15:32 +01:00

What about 3.6?

What about 3.6?
Member

What about 3.6?

Have added the fix to #109399

> What about 3.6? Have added the fix to #109399
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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
3 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#116215
No description provided.