You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just starting out with this lib and gave the example/statusicon a try. But when starting it I get the following error:
panic: runtime error: cgo argument has Go pointer to Go pointer
goroutine 1 [running]:
panic(0x4164de0, 0xc82000a3c0)
/usr/local/Cellar/go/1.6/libexec/src/runtime/panic.go:464 +0x3e6
github.com/mattn/go-gtk/gtk._cgoCheckPointer0(0x4129980, 0xc8200103e0, 0xc82000a3b0, 0x1, 0x1, 0xc82000a374)
??:0 +0x4d
github.com/mattn/go-gtk/gtk.Init(0x429a420)
/workspace/go/src/github.com/mattn/go-gtk/gtk/gtk.go:228 +0x3fd
main.main()
/workspace/go/src/github.com/mattn/go-gtk/example/statusicon/statusicon.go:11 +0x2f
exit status 2
The problem seems to be passing the os.Args to gtk.Init function. I've noticed most of the example use the os.Args to initialize gtk. I've also try to pass nil value, then the demo started but I when I click on the tray icon it crashed on me with this error:
I'm not sure if this is a bug or behaviour of Mac OS X, any recommendations I can try to fix this?
ps: I've randomly tested a couple of other example which pass the os.Args to gtk.Init, they all have the same problem. I think the issues comes from me using Go 1.6. I'm going to install 1.5.x and see if that works
@mattn I've noticed you comments on golang/go#12416 so I assume this is a Go 1.6 issue.
I've downgraded to Go 1.5.3 this solve the issue for now
The text was updated successfully, but these errors were encountered:
Hey,
I'm just starting out with this lib and gave the example/statusicon a try. But when starting it I get the following error:
The problem seems to be passing the os.Args to gtk.Init function. I've noticed most of the example use the os.Args to initialize gtk. I've also try to pass nil value, then the demo started but I when I click on the tray icon it crashed on me with this error:
I'm not sure if this is a bug or behaviour of Mac OS X, any recommendations I can try to fix this?
ps: I've randomly tested a couple of other example which pass the os.Args to gtk.Init, they all have the same problem. I think the issues comes from me using Go 1.6. I'm going to install 1.5.x and see if that works
@mattn I've noticed you comments on golang/go#12416 so I assume this is a Go 1.6 issue.
I've downgraded to Go 1.5.3 this solve the issue for now
The text was updated successfully, but these errors were encountered: