Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples issue "Go pointer to Go pointer" #76

Open
rucuriousyet opened this Issue Jun 26, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@rucuriousyet
Copy link

rucuriousyet commented Jun 26, 2016

Last login: Sun Jun 26 18:24:04 on ttys000
Seths-Mac-mini:~ digitalblueeye$ go run /Users/digitalblueeye/Programming/Go/BLEServer.go
panic: runtime error: cgo argument has Go pointer to Go pointer

goroutine 1 [running]:
panic(0x411ff20, 0xc82000a380)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/paypal/gatt/xpc._cgoCheckPointer0(0x40f2160, 0xc82000a360, 0xc82000a370, 0x1, 0x1, 0x4401cc0)
??:0 +0x4d
github.com/paypal/gatt/xpc.XpcConnect(0x414d830, 0xf, 0x5804280, 0xc820086000, 0x0)
/Users/digitalblueeye/Programming/Go/src/github.com/paypal/gatt/xpc/xpc_darwin.go:169 +0x1ba
github.com/paypal/gatt.NewDevice(0x41fe838, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
/Users/digitalblueeye/Programming/Go/src/github.com/paypal/gatt/device_darwin.go:67 +0x2a5
main.main()
/Users/digitalblueeye/Programming/Go/BLEServer.go:13 +0x4f
exit status 2
Seths-Mac-mini:~ digitalblueeye$

using the latest version of Mac OS X on the mac mini (also latest). I get this issue when running explorer.go or server.go

@jesselucas

This comment has been minimized.

Copy link

jesselucas commented Jul 1, 2016

A work around is to disable the cgo check GODEBUG=cgocheck=0

Ex.

$  GODEBUG=cgocheck=0 ./server
@kkdai

This comment has been minimized.

Copy link

kkdai commented Aug 28, 2018

In High Sierra it still another error Unhandled event: xpc.Dict{"kCBMsgId":4, "kCBMsgArgs":xpc.Dict{"kCBMsgArgState":5}} which refer to currantlabs/ble#58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.