Label with very long text crashes on Wayland
Author: ErikKalkokenCreated Sep 20, 2025Updated Sep 14, 2026
LabelsbugWayland
Checklist
- I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
- This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When creating a Label with a very long string the app crashes on startup with an X Error on Ubuntu.
Example error:
X Error of failed request: BadPixmap (invalid Pixmap parameter)
Major opcode of failed request: 145 ()
Minor opcode of failed request: 1
Resource id in failed request: 0x2e0002c
Serial number of failed request: 331
Current serial number in output stream: 331
exit status 1How to reproduce
See example code
Screenshots
No response
Example code
package main
import (
"strings"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)
func main() {
a := app.New()
w := a.NewWindow("Playground")
s := strings.Repeat("x", 10_000)
w.SetContent(widget.NewLabel(s))
w.ShowAndRun()
}Fyne version
2.6.3
Go compiler version
1.24.3
Operating system and version
Ubuntu 22.04
Additional Information
No response
Source: fyne-io/fyne