Error after setting bb_code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By GunPoint

So i made a dialog box which prints some things over time

extends RichTextLabel

var dialogue = ["Hello, this is my game"]
var page = 0;

func _ready():
	set_bbcode(dialogue[page])
	set_visible_characters(0);


func _on_Timer_timeout():
	set_visible_characters(get_visible_characters()+1);

It works normally, no crashes but i get this error

Condition ‘cache_id.size < 1’ is true

It doesn’t affect the game, its just there. Any fix?

I tested that code and got no message in the Output window. Maybe is something else… do you have more code going on?

quijipixel | 2018-02-05 15:01

No, this is my entire code

GunPoint | 2018-02-05 18:26

And it appears in the debugger after running the game

GunPoint | 2018-02-05 18:26

And im using Godot 3.0 stable

GunPoint | 2018-02-05 18:27

:bust_in_silhouette: Reply From: con_tone

This error seems to mean that a font with a size less than 1 exists.
I had a size 0 font I was using to remove the minimum size on buttons (due to text size) and it threw this error.

Increasing all your font sizes to at least 1 should fix this.

I believe it also applies to a font with no size value set in the editor. Null maybe?

Judd Gledhill | 2018-07-15 14:00