fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
24.98k stars 1.38k forks source link

FileDialog freezing on CentOS 6 #3946

Open LidiYuan opened 1 year ago

LidiYuan commented 1 year ago

Checklist

Describe the bug

Centos6 调用dialog.NewFileSave()后使用Show()方法会卡住,不能正常显示

How to reproduce

在centos6上使用 dialog.NewFileSave 和 dialog.show() 必现的

Screenshots

No response

Example code

func (app *config) saveasMenuAction(win fyne.Window) func() { return func() { filedia := dialog.NewFileSave(func(writer fyne.URIWriteCloser, err error) {

        if nil != err {
            dialog.NewError(err, win)
            return
        }

        if nil == writer {
            return
        }
        writer.Write([]byte(app.EditW.Text))
        app.CurFile = writer.URI()
        defer writer.Close()

        win.SetTitle(win.Title() + "-" + writer.URI().Name())
        app.SaveMenuItem.Disabled = false

    }, win)

    filedia.Show()
}

}

Fyne version

v2.3.4

Go compiler version

go 1.16.3

Operating system and version

centos6

Additional Information

No response

andydotxyz commented 1 year ago

Please use English for bug reports.

Google translate says this is the content:

After Centos6 calls dialog.NewFileSave(), using the Show() method will get stuck and cannot be displayed normally

LidiYuan commented 1 year ago

Problem Description: After calling dialog. NewFileSave() in Centos6, using the Show() method may get stuck and not display properly

Jacalz commented 1 year ago

Please include a full code example that we can run. That is just part of an application. This is what the bug report template says about example code:

Add a short code snippet to help explain and simplify reproduction of the problem.
Please refrain from adding screenshots of code, links to other projects, attached `.zip` files containing source files, or very long code examples.
A good code example should be runnable and contain no more code than is necessary to reproduce the bug.
Jacalz commented 1 year ago

@LidiYuan Can you please provide a runnable code example so we can try to replicate this?