Comments (7)
What go version are you trying? I just build
go version devel +c8e9255aed3f Thu Jun 05 16:40:23 2014 -0400 darwin/amd64
and all i get is this during go get github.com/andlabs/ui
# github.com/andlabs/ui
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x1a2fd]
goroutine 16 [running]:
runtime.panic(0x268ce0, 0x40afc4)
/Users/cryptix/gotip/src/pkg/runtime/panic.c:279 +0xf5
main.(*typeConv).Type(0xc2080502c0, 0x4bf6d8, 0xc20810c5d0, 0x1e3a, 0x1)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1288 +0x1f2d
main.(*typeConv).Type(0xc2080502c0, 0x4bf630, 0xc20810c570, 0x1e3a, 0xc208190101)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1189 +0x5a8e
main.(*typeConv).Type(0xc2080502c0, 0x4bf840, 0xc208103f40, 0x1e3a, 0x0)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1075 +0x5268
main.(*typeConv).Struct(0xc2080502c0, 0xc2081724e0, 0x1e3a, 0x6, 0x0, 0x0, 0x8)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1551 +0x8e9
main.(*typeConv).Type(0xc2080502c0, 0x4bf770, 0xc2081724e0, 0x1e3a, 0xc208190201)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1234 +0x4646
main.(*typeConv).Type(0xc2080502c0, 0x4bf630, 0xc20810c420, 0x1e3a, 0x0)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1189 +0x5a8e
main.(*typeConv).Struct(0xc2080502c0, 0xc208005e00, 0x1e3a, 0x6, 0x0, 0x0, 0x8)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1551 +0x8e9
main.(*typeConv).Type(0xc2080502c0, 0x4bf770, 0xc208005e00, 0x1e3a, 0xe5101)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1234 +0x4646
main.(*typeConv).Type(0xc2080502c0, 0x4bf630, 0xc208092c30, 0x1e3a, 0xc2080fb070)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1189 +0x5a8e
main.(*typeConv).Type(0xc2080502c0, 0x4bf6d8, 0xc208092a20, 0x1e3a, 0x32c200)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1269 +0x194e
main.(*typeConv).Struct(0xc2080502c0, 0xc208005ce0, 0x1e3a, 0x6, 0x0, 0x0, 0x0)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1551 +0x8e9
main.(*typeConv).Type(0xc2080502c0, 0x4bf770, 0xc208005ce0, 0x1e3a, 0x32c201)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1234 +0x4646
main.(*typeConv).Type(0xc2080502c0, 0x4bf630, 0xc2080926f0, 0x1e3a, 0xc2080fb060)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1189 +0x5a8e
main.(*typeConv).Type(0xc2080502c0, 0x4bf6d8, 0xc2080925d0, 0x1e3a, 0x4aa000)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1269 +0x194e
main.(*typeConv).FuncArg(0xc2080502c0, 0x4bf6d8, 0xc2080925d0, 0x1e3a, 0x1)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1405 +0x6a
main.(*typeConv).FuncType(0xc2080502c0, 0xc2081033c0, 0x1e3a, 0xc2081033c0)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:1458 +0x7b2
main.(*Package).loadDWARF(0xc208001e10, 0xc20804c080, 0xc20800ef00, 0x19, 0x20)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:539 +0x19cf
main.(*Package).Translate(0xc208001e10, 0xc20804c080)
/Users/cryptix/gotip/src/cmd/cgo/gcc.go:182 +0x1f0
main.main()
/Users/cryptix/gotip/src/cmd/cgo/main.go:259 +0x1393
goroutine 19 [finalizer wait]:
runtime.park(0x60890, 0x410500, 0x40e849)
/Users/cryptix/gotip/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x410500, 0x40e849)
/Users/cryptix/gotip/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/Users/cryptix/gotip/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/Users/cryptix/gotip/src/pkg/runtime/proc.c:1445
from ui.
go version go1.2 darwin/amd64
from ui.
Right, package ui won't work with Go 1.2 because Go 1.3 is the one that added Objective-C support. I'll make that clear when updating the README.
@cryptix's panic is coming from cgo itself; I'll need to update and investigate myself, but that'll likely be moved over to the Go issue tracker itself.
from ui.
It doesn't work on OSX with Go 1.3r2, either; same error as @cryptix
1205)~ % go version
go version go1.3rc2 darwin/amd64
1205)~ % go get github.com/andlabs/ui
# github.com/andlabs/ui
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x15672]
goroutine 16 [running]:
runtime.panic(0x1da9c0, 0x31a9e4)
/Users/ser/Software/go/src/pkg/runtime/panic.c:279 +0xf5
...
from ui.
Same error here as @cryptix @serussell, with go 1.3 stable and OS X 10.9.3.
from ui.
Can reproduce on 10.8. Crash in cgo; will investigate now.
from ui.
Upon further investigation this is a cgo bug. From what I can tell, everything on the offending line is valid at the time of the crash, except for the full result of the typedef[...]
expression, which is nil...
Go bug filed: https://code.google.com/p/go/issues/detail?id=8238
from ui.
Related Issues (20)
- 希望能加入菜单和居中功能,谢谢 HOT 5
- Twitching progress bar HOT 2
- use go module
- Can you create Window center func ? HOT 1
- 有2个问题需要帮助/Two questions ask for help HOT 3
- Add Linux/ARM64 support to ‘andlabs/ui’
- how to add a new row to a table?
- Open file dialog crashes HOT 1
- ld: library not found for -lstdc++ HOT 2
- How can we fix windows size ? HOT 2
- How to remove a row from table properly HOT 1
- Avoid cgo HOT 2
- Cross-compilation on Linux for Windows HOT 1
- System notification message
- Reopen a closed window
- Is this project still alive? HOT 2
- collect2.exe: error: ld returned 1 exit status
- Win10下gocv+andlabs/ui同时使用出现以下错误
- possible to use ui load a webview to load html/js/css or remote url as ui HOT 1
- 如何在ui中嵌入式一个浏览器窗口
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.