Skip to content

Instantly share code, notes, and snippets.

@prologic
Created October 15, 2017 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prologic/6b0f58fa058ef603215696c66476bb0c to your computer and use it in GitHub Desktop.
Save prologic/6b0f58fa058ef603215696c66476bb0c to your computer and use it in GitHub Desktop.
prologic@Jamess-MacBook
Sat Oct 14 22:30:29
~/go-projects/gopherclient
(webview) 0
$ ./gopherclient
2017-10-14 22:30:31.086 gopherclient[2751:2722895] WebKit Threading Violation - initial use of WebKit from a secondary thread.
2017-10-14 22:30:31.088 gopherclient[2751:2722895] *** Terminating app due to uncaught exception 'WebKitThreadingException', reason: '-[WebView initWithFrame:frameName:groupName:] was called from a secondary thread'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff91abb2cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffa68cb48d objc_exception_throw + 48
2 CoreFoundation 0x00007fff91b39c3d +[NSException raise:format:] + 205
3 WebKitLegacy 0x00007fff99ba1f03 -[WebView initWithFrame:frameName:groupName:] + 131
4 gopherclient 0x00000000042dac9c webview_init + 620
5 gopherclient 0x00000000042da6b0 _cgo_20cd9a7463c0_Cfunc_CgoWebViewCreate + 112
6 gopherclient 0x00000000040585c0 runtime.asmcgocall + 112
)
libc++abi.dylib: terminating with uncaught exception of type NSException
SIGABRT: abort
PC=0x7fffa72dfd42 m=3 sigcode=0
signal arrived during cgo execution
goroutine 1 [syscall, locked to thread]:
runtime.cgocall(0x42da640, 0xc420125e40, 0x42d74f5)
/usr/local/Cellar/go/1.9/libexec/src/runtime/cgocall.go:132 +0xe4 fp=0xc420125df8 sp=0xc420125db8 pc=0x40040b4
github.com/zserge/webview._Cfunc_CgoWebViewCreate(0x25800000320, 0x4702350, 0x470dec0, 0xc400000000, 0x0)
github.com/zserge/webview/_obj/_cgo_gotypes.go:84 +0x4e fp=0xc420125e40 sp=0xc420125df8 pc=0x42d771e
github.com/zserge/webview.New(0x43972b2, 0xd, 0xc42013c040, 0x16, 0x320, 0x258, 0x0, 0x43ac650, 0xc42007ef90, 0x10000c42007eed0)
/Users/prologic/go/src/github.com/zserge/webview/webview.go:216 +0x10e fp=0xc420125ea0 sp=0xc420125e40 pc=0x42d800e
main.main()
/Users/prologic/go/src/github.com/prologic/gopherclient/main.go:102 +0x1c6 fp=0xc420125f80 sp=0xc420125ea0 pc=0x42d9e46
runtime.main()
/usr/local/Cellar/go/1.9/libexec/src/runtime/proc.go:185 +0x20d fp=0xc420125fe0 sp=0xc420125f80 pc=0x402ddad
runtime.goexit()
/usr/local/Cellar/go/1.9/libexec/src/runtime/asm_amd64.s:2337 +0x1 fp=0xc420125fe8 sp=0xc420125fe0 pc=0x4059951
goroutine 18 [IO wait]:
internal/poll.runtime_pollWait(0x5139f00, 0x72, 0xffffffffffffffff)
/usr/local/Cellar/go/1.9/libexec/src/runtime/netpoll.go:173 +0x57
internal/poll.(*pollDesc).wait(0xc420130098, 0x72, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.9/libexec/src/internal/poll/fd_poll_runtime.go:85 +0xae
internal/poll.(*pollDesc).waitRead(0xc420130098, 0xffffffffffffff00, 0x0, 0x0)
/usr/local/Cellar/go/1.9/libexec/src/internal/poll/fd_poll_runtime.go:90 +0x3d
internal/poll.(*FD).Accept(0xc420130080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.9/libexec/src/internal/poll/fd_unix.go:334 +0x1e2
net.(*netFD).accept(0xc420130080, 0x40134a8, 0x30, 0x43652e0)
/usr/local/Cellar/go/1.9/libexec/src/net/fd_unix.go:238 +0x42
net.(*TCPListener).accept(0xc420134008, 0x413833a, 0x43652e0, 0xc4201440c0)
/usr/local/Cellar/go/1.9/libexec/src/net/tcpsock_posix.go:136 +0x2e
net.(*TCPListener).Accept(0xc420134008, 0xc420018120, 0x432b8c0, 0x45711b0, 0x4384960)
/usr/local/Cellar/go/1.9/libexec/src/net/tcpsock.go:247 +0x49
net/http.(*Server).Serve(0xc42014c000, 0x4545e00, 0xc420134008, 0x0, 0x0)
/usr/local/Cellar/go/1.9/libexec/src/net/http/server.go:2695 +0x1b2
net/http.Serve(0x4545e00, 0xc420134008, 0x0, 0x0, 0x0, 0xffffffffffffffff)
/usr/local/Cellar/go/1.9/libexec/src/net/http/server.go:2323 +0x73
main.startServer.func1(0x4545e00, 0xc420134008, 0xc42007f1d0, 0x4396f4a, 0xc)
/Users/prologic/go/src/github.com/prologic/gopherclient/main.go:68 +0xbe
created by main.startServer
/Users/prologic/go/src/github.com/prologic/gopherclient/main.go:65 +0x57f
rax 0x0
rbx 0x6
rcx 0x7000088f95c8
rdx 0x0
rdi 0xc03
rsi 0x6
rbp 0x7000088f95f0
rsp 0x7000088f95c8
r8 0x7fffa726e650
r9 0x7fffa7230a50
r10 0x8000000
r11 0x206
r12 0x7000088f9750
r13 0x30
r14 0x7000088fb000
r15 0x8
rip 0x7fffa72dfd42
rflags 0x206
cs 0x7
fs 0x0
gs 0x0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment