sqweek / dialog

Simple cross-platform dialog API for go-lang
ISC License
493 stars 76 forks source link

[OSX] Hangs when showing Message Dialog #79

Open sqweek opened 10 months ago

sqweek commented 10 months ago

The goroutine is hanging with this trace:

1 @ 0x104fa9be8 0x105432b08 0x105433084 0x105432fb8 0x105432fb9 0x106faecc8 0x106faec91 0x106faec15 0x106facbc4 0x106fb1600 0x104fe09ec 0x105017a74
#   0x105432b07 github.com/sqweek/dialog/cocoa._Cfunc_alertDlg+0x47         _cgo_gotypes.go:148
#   0x105433083 github.com/sqweek/dialog/cocoa.YesNoDlg.(*AlertParams).run.func1+0x53   /Users/anacrolix/go/pkg/mod/github.com/sqweek/dialog@v0.0.0-20220809060634-e981b270ebbf/cocoa/dlg_darwin.go:28
#   0x105432fb7 github.com/sqweek/dialog/cocoa.(*AlertParams).run+0x87          /Users/anacrolix/go/pkg/mod/github.com/sqweek/dialog@v0.0.0-20220809060634-e981b270ebbf/cocoa/dlg_darwin.go:28
#   0x105432fb8 github.com/sqweek/dialog/cocoa.YesNoDlg+0x88                /Users/anacrolix/go/pkg/mod/github.com/sqweek/dialog@v0.0.0-20220809060634-e981b270ebbf/cocoa/dlg_darwin.go:45
#   0x106faecc7 github.com/sqweek/dialog.(*MsgBuilder).yesNo+0x1f17         /Users/anacrolix/go/pkg/mod/github.com/sqweek/dialog@v0.0.0-20220809060634-e981b270ebbf/dlgs_darwin.go:8
#   0x106faec90 github.com/sqweek/dialog.(*MsgBuilder).YesNo+0x1ee0         /Users/anacrolix/go/pkg/mod/github.com/sqweek/dialog@v0.0.0-20220809060634-e981b270ebbf/dlgs.go:51

I don't see any dialog.

Originally posted by @anacrolix in https://github.com/sqweek/dialog/issues/64#issuecomment-1676928685

anacrolix commented 10 months ago

Thanks