Closed
Description
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
Current go app runs without a FyneApp.toml; upon inserting one (even copying the example in the Docs) causes the following error at runtime:
X Error of failed request: BadLength (poly request too large or internal Xlib length error)
Major opcode of failed request: 18 (X_ChangeProperty)
Serial number of failed request: 246
Current serial number in output stream: 246
Removing the toml results in a successful build and run.
How to reproduce
- Add FyneApp.toml
- Try
go build
,fyne build
, orgo run main.go
and run executable - Error occurs
Screenshots
No response
Example code
func main() {
prog := app.New()
mainWindow := prog.NewWindow("Expense Report Builder")
mainWindow.Resize(fyne.Size{Height: 412, Width: 720})
templateRow, templatePathBox := inputRow(&mainWindow, "Template: ", FILE)
rosterRow, rosterPathBox := inputRow(&mainWindow, "Roster: ", FILE)
outputRow, outputPathBox := inputRow(&mainWindow, "Output: ", FOLDER)
runButton := widget.NewButton("Create Expense Reports", func() {
err := business(rosterPathBox.Text, templatePathBox.Text, outputPathBox.Text)
if err != nil {
dialog.ShowError(err, mainWindow)
}
})
mainWindow.SetContent(container.NewStack(
container.NewVBox(
templateRow, rosterRow, outputRow, runButton,
),
))
mainWindow.ShowAndRun()
// TODO Build ui
// TODO Verify additions from Github
}
Fyne version
2.5.2
Go compiler version
1.23.2
Operating system and version
Arch Linux
Additional Information
This only appears to be an issue with the example code provided; simple "Hello, world" programs work (as well as the fyne demo app).
Activity