Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Condition "font.is_null()" is true at: _shape (scene/gui/line_edit.cpp:2202) on project open #67388

Closed
hsandt opened this issue Oct 14, 2022 · 3 comments · Fixed by #67389
Assignees
Milestone

Comments

@hsandt
Copy link
Contributor

hsandt commented Oct 14, 2022

Godot version

v4.0.beta.custom_build [99bc490]

System information

Linux Ubuntu 20.04 with Unity desktop

Issue description

On project launch (new project creation or open project), I have an error:

ERROR: Condition "font.is_null()" is true.
   at: _shape (scene/gui/line_edit.cpp:2202)

The error occurs in v4.0.beta.custom_build [99bc490], but doesn't occur on v3.4.1.stable.official [aa1b958] (I didn't test v3.5.1 stable).

Steps to reproduce

Open Godot and either create a new project or open an existing one.

Minimal reproduction project

No response

@hsandt hsandt changed the title ERROR: Condition "font.is_null()" is true at: _shape (scene/gui/line_edit.cpp:2202) ERROR: Condition "font.is_null()" is true at: _shape (scene/gui/line_edit.cpp:2202) on project open Oct 14, 2022
@Chaosus Chaosus added this to the 4.0 milestone Oct 14, 2022
@bruvzg
Copy link
Member

bruvzg commented Oct 14, 2022

Seems like EventListenerLineEdit subclass is setting placeholder in the constructor, before font is set or theme is initialized.

@akien-mga
Copy link
Member

Pinning the issue as users will encounter it in 4.0 beta 3 (it's fixed in master and thus will be fixed in 4.0 beta 4).

@EricEzaM
Copy link
Contributor

I did not realise it was my changes that caused this! Apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants