Text object can have an unset font (leading to crash in editmode) #114892

Open
opened 2023-11-15 09:57:26 +01:00 by Mihai Deliman · 19 comments

System Information
Operating system: Mac OS Sanoma and Windows 11
Graphics card: M1 GPU and RTX 2070SUPER

Blender Version
Broken: 4.0 and latest 4.1 build (November 15, 03:36:52)
Worked: 3.65LTS and 3.66 (now I put this version so I can continue to work)

Short description of error
If open any blend file made previous week/month/year -> Blender loads the splashscreen and then closes.
If I open a file made in 2022 or older -> that somehow works...

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).
I double click on a .blend file
In less than 1 seconds: Blender will flash and be gone
On MacOS I get the: Blender quit unexpectedly
On Windows nothing happens.

I share report on Windows and a random blender project file that I was working on previous week.

**System Information** Operating system: Mac OS Sanoma and Windows 11 Graphics card: M1 GPU and RTX 2070SUPER **Blender Version** Broken: 4.0 and latest 4.1 build (November 15, 03:36:52) Worked: 3.65LTS and 3.66 (now I put this version so I can continue to work) **Short description of error** If open any blend file made previous week/month/year -> Blender loads the splashscreen and then closes. If I open a file made in 2022 or older -> that somehow works... **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). I double click on a .blend file In less than 1 seconds: Blender will flash and be gone On MacOS I get the: Blender quit unexpectedly On Windows nothing happens. I share report on Windows and a random blender project file that I was working on previous week.
Mihai Deliman added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-11-15 09:57:27 +01:00
Author

This is the same bug, on Mac OS Sonoma

This is the same bug, on Mac OS Sonoma
Member

Hi, can confirm the crash. Versioning code where crash occurred was added in 16e4eeb9c0

Hi, can confirm the crash. Versioning code where crash occurred was added in 16e4eeb9c0260fb93f7b2cf0b4890ba6dbccae36
Pratik Borhade added
Module
Modeling
Priority
High
Status
Confirmed
and removed
Priority
Normal
Status
Needs Triage
labels 2023-11-15 10:04:25 +01:00
Member

Simple null check will fix this, checking.

Simple null check will fix this, checking.
Author

just tested the latest 4.0.1 release candidate -> same error like 4.0.0 (macos and windows)

just tested the latest 4.0.1 release candidate -> same error like 4.0.0 (macos and windows)
Member

Crash is occurring due to Titlu articol text object.
Even in 3.6, crash triggered due to invalid string when switched to edit mode.
I wonder why strinfo is null and char buffer has invalid string

Crash is occurring due to `Titlu articol` text object. Even in 3.6, crash triggered due to invalid string when switched to edit mode. I wonder why `strinfo` is null and char buffer has invalid string
Author

image
For me in 3.6.6 and 3.6.5 LTS both titles (text and mesh) work and no crash.

image

![image](/attachments/e67a6ff8-b41f-46b3-90f4-ff3db98a81bc) For me in 3.6.6 and 3.6.5 LTS both titles (text and mesh) work and no crash. ![image](/attachments/671e25c7-ccd7-4a58-aa78-509265216285)
2.5 MiB
1.2 MiB
Member

@MiDe , could you check 030 O Muino card-simplified.blend file (uploaded in last comment)? Switching to edit mode triggered the crash.

@MiDe , could you check `030 O Muino card-simplified.blend` file (uploaded in last comment)? Switching to edit mode triggered the crash.
Author

Yes you are right but I am failing to understand why it matters :)

However, the file I shared (me) is not generating crash or ... anything. It just works in 3.6.5LTS and 3.6.6 :) MACOS Sonoma (and previous) and WINDOWS 11.

Yes you are right but I am failing to understand why it matters :) However, the file I shared (me) is not generating crash or ... anything. It just works in 3.6.5LTS and 3.6.6 :) MACOS Sonoma (and previous) and WINDOWS 11.
Member

Simple null check will fix this
Crash is occurring due to Titlu articol text object.
Even in 3.6, crash triggered due to invalid string when switched to edit mode.

@lichtwerk ^

but I am failing to understand why it matters

Possibly the text object data is corrupted. Or maybe it was created in quite old version

> Simple null check will fix this > Crash is occurring due to Titlu articol text object. > Even in 3.6, crash triggered due to invalid string when switched to edit mode. @lichtwerk ^ > but I am failing to understand why it matters Possibly the text object data is corrupted. Or maybe it was created in quite old version
Member

I do see some NULL checks on strinfo (some with commenting "old file"), so a similar check might make sense.

However, I do get the crash going to editmode in 3.6 as well, so there is definitely something wrong/corrupted with Titlu articol.

We should still be able to open these files I guess, will take over and make a PR for this.

I do see some NULL checks on `strinfo` (some with commenting "old file"), so a similar check might make sense. However, I do get the crash going to editmode in 3.6 as well, so there is definitely something wrong/corrupted with `Titlu articol`. We should still be able to open these files I guess, will take over and make a PR for this.
Philipp Oeser self-assigned this 2023-11-15 11:47:58 +01:00
Member

@MiDe : you were mentioning other files that crash as well, mind sharing another one of those?

@MiDe : you were mentioning other files that crash as well, mind sharing another one of those?
Author

So the solution for this ticket is to fix 3.6.6 files so they can be opened by 4.0.0?

So the solution for this ticket is to fix 3.6.6 files so they can be opened by 4.0.0?
Member

Yes, #114916 will add a workaround in versioning code so file can be opened in 4.0
But the "crash in edit mode" will persist in 4.0

Yes, https://projects.blender.org/blender/blender/pulls/114916 will add a workaround in versioning code so file can be opened in 4.0 But the "crash in edit mode" will persist in 4.0
Author

OK thank you.

Personally I modified all my 32 projects (searched for those empty objects).

The problem is that I still wonder how did they appear... I saw one file and it had like 3 empty TEXT objects.

Way of Working: I made a master template (borders, stars, title, map) and kept just changing the central area only and saving the new project (all are here, www.europeoncamera.com). So I really don't know how by editing a text, sometimes it made a clone and that clone was empty. Maybe I pressed a command that I don't know and it made just a ghost of the text.
This is the master file that dates to 2022, last modified February 23.
image

Thank you Pratik B. & Philipp O.

OK thank you. Personally I modified all my 32 projects (searched for those empty objects). The problem is that I still wonder how did they appear... I saw one file and it had like 3 empty TEXT objects. Way of Working: I made a master template (borders, stars, title, map) and kept just changing the central area only and saving the new project (all are here, www.europeoncamera.com). So I really don't know how by editing a text, sometimes it made a clone and that clone was empty. Maybe I pressed a command that I don't know and it made just a ghost of the text. This is the master file that dates to 2022, last modified February 23. ![image](/attachments/e3500aaf-9e42-4625-948a-161421a5f72e) Thank you Pratik B. & Philipp O.
346 KiB
Member

I think this might give us a hint:

image

We dont have a font set here (this should not happen I believe, trying to find out why this can happen)

I think this might give us a hint: ![image](/attachments/85899824-b6e5-465e-a379-2adb042c902b) We dont have a font set here (this should not happen I believe, trying to find out why this can happen)
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-11-16 09:43:37 +01:00
Member

578b479998 fixed the crash, will reopen the report though to investigate further how we can ever get an unset font here

578b479998f2be3e5bdaad7ca71d5f1484b0ff01 fixed the crash, will reopen the report though to investigate further how we can ever get an unset font here
Blender Bot added
Status
Needs Triage
and removed
Status
Resolved
labels 2023-11-16 09:44:33 +01:00
Philipp Oeser added
Priority
Normal
Status
Confirmed
and removed
Priority
High
Status
Needs Triage
labels 2023-11-16 09:44:50 +01:00
Philipp Oeser changed title from Blender fails to open several projects done on 3.4/3.5/3.6 versions to Text object can have an unset font (leading to crash in editmode) 2023-11-16 09:45:56 +01:00
Member

I think this might give us a hint... We dont have a font set here (this should not happen I believe, trying to find out why this can happen)

Crash persists after selecting font in an empty slot 😅

> I think this might give us a hint... We dont have a font set here (this should not happen I believe, trying to find out why this can happen) Crash persists after selecting font in an empty slot 😅
Member

Yep, could be that we are already in a dead end when this happened (and are unable to recover...)
Also weird that - when loading a local font - it is marked as packed?

image

Yep, could be that we are already in a dead end when this happened (and are unable to recover...) Also weird that - when loading a local font - it is marked as packed? ![image](/attachments/6a98293e-ae16-4789-8491-01f23b3bda81)
Member

Stepping down since I currently do not plan on actually working on this

Stepping down since I currently do not plan on actually working on this
Philipp Oeser removed their assignment 2024-03-27 14:15:45 +01:00
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
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#114892
No description provided.