-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Crash with double free when removing lines after appending bbcode #60616
Comments
This it the stacktrace I get after a crash |
_process
I can confirm it, it's not Mono related though, it's reproducible with GDScript: extends RichTextLabel
func _process(delta):
while get_line_count() > 1:
remove_line(0)
for i in range(20):
append_bbcode("[color=red]test[/color]\n") This doesn't happen with the same logic in GDScript MRP: bbcode_bug.zip The crash is reproducible in
It doesn't crash in CC @bruvzg |
It doesn't happen in _ready because at that point there's no bbcode in RichTextLabel yet,I think that the problem is more related to removing bbcode lines than appending bbcode |
Indeed, here's a more minimal reproducer: extends RichTextLabel
func _ready():
append_bbcode("[color=red]test[/color]\n")
remove_line(0) |
_process
Similar crash: #59935 |
It's fixed in |
Fixed by #60618. |
Godot version
v3.4.4.stable.mono.official [419e713]
System information
linux 5.17.4-arch1-1
Issue description
This code crashes Godot Mono:
And this doesn't:
So it happens only when appending Bbcode.
Steps to reproduce
Minimal reproduction project
bbcode_bug.zip
The text was updated successfully, but these errors were encountered: