nelsam / vidar

vidar is a highly experimental Go editor, written in Go, using gxui
The Unlicense
50 stars 7 forks source link

Osx : ui wake fault #196

Open dudymas opened 4 years ago

dudymas commented 4 years ago

Description

Running vidar immediately crashes on OSX

Steps to reproduce

Execute the application

Expected behavior

glfw window should load

Actual behavior

stack trace shown (see below)

Stack trace

goroutine 35 [syscall]:
runtime.cgocall(0x43c9ed0, 0xc0000ddb20, 0xc0000bc3f0)
        /usr/local/Cellar/go/1.13.3/libexec/src/runtime/cgocall.go:128 +0x5b fp=0xc0000ddaf0 sp=0xc0000ddab8 pc=0x4005ccb
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwPostEmptyEvent()
        _cgo_gotypes.go:1416 +0x41 fp=0xc0000ddb20 sp=0xc0000ddaf0 pc=0x4125711
github.com/go-gl/glfw/v3.3/glfw.PostEmptyEvent()
        /Users/jeremywhite/.local/go/src/github.com/go-gl/glfw/v3.3/glfw/window.go:1005 +0x22 fp=0xc0000ddb58 sp=0xc0000ddb20 pc=0x412e852
github.com/goxjs/glfw.PostEmptyEvent(...)
        /Users/jeremywhite/.local/go/src/github.com/goxjs/glfw/desktop.go:389
github.com/nelsam/gxui/drivers/gl.(*driver).wake(...)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:130
github.com/nelsam/gxui/drivers/gl.(*driver).asyncDriver(0xc0000ce230, 0xc00024a300)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:94 +0x3f fp=0xc0000ddb78 sp=0xc0000ddb58 pc=0x41a8bbf
github.com/nelsam/gxui/drivers/gl.(*driver).syncDriver(0xc0000ce230, 0xc000098180)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:99 +0x91 fp=0xc0000ddba8 sp=0xc0000ddb78 pc=0x41a8c61
github.com/nelsam/gxui/drivers/gl.(*driver).CreateWindowedViewport(0xc0000ce230, 0x640, 0x320, 0x4556488, 0x11, 0xc00033a000, 0x240)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:237 +0xb4 fp=0xc0000ddbd0 sp=0xc0000ddba8 pc=0x41a9304
github.com/nelsam/gxui/mixins.(*Window).Init(0xc00033a000, 0x45f8ba0, 0xc00033a000, 0x45ec600, 0xc0000ce230, 0x640, 0x320, 0x4556488, 0x11)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/mixins/window.go:125 +0xb57 fp=0xc0000ddcc8 sp=0xc0000ddbd0 pc=0x41e24a7
github.com/nelsam/gxui/themes/basic.CreateWindow(0xc0002b8000, 0x640, 0x320, 0x4556488, 0x11, 0x3e4ccccd3e4ccccd, 0x3f4ccccd3f800000)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/themes/basic/window.go:18 +0x96 fp=0xc0000ddd28 sp=0xc0000ddcc8 pc=0x41f8bb6
github.com/nelsam/gxui/themes/basic.(*Theme).CreateWindow(0xc0002b8000, 0x640, 0x320, 0x4556488, 0x11, 0xc000098080, 0x44a6e40)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/themes/basic/theme.go:129 +0x53 fp=0xc0000ddd70 sp=0xc0000ddd28 pc=0x41f7e13
main.newWindow(0x45ee860, 0xc0002b8000, 0x45ea8c0)
        /Users/jeremywhite/Exercism/go/vidar-gopath/src/github.com/nelsam/vidar/window.go:35 +0x5f fp=0xc0000dddd0 sp=0xc0000ddd70 pc=0x43b1bdf
main.uiMain(0x45ec600, 0xc0000ce230)
        /Users/jeremywhite/Exercism/go/vidar-gopath/src/github.com/nelsam/vidar/main.go:67 +0x120 fp=0xc0000ddf70 sp=0xc0000dddd0 pc=0x43b0d90
github.com/nelsam/gxui/drivers/gl.StartDriver.func1()
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:83 +0x3a fp=0xc0000ddf90 sp=0xc0000ddf70 pc=0x41b55da
github.com/nelsam/gxui/drivers/gl.(*driver).applicationLoop(0xc0000ce230)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:141 +0x2b fp=0xc0000ddfd8 sp=0xc0000ddf90 pc=0x41a8d3b
runtime.goexit()
        /usr/local/Cellar/go/1.13.3/libexec/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc0000ddfe0 sp=0xc0000ddfd8 pc=0x405cbe1
created by github.com/nelsam/gxui/drivers/gl.StartDriver
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:84 +0x382

goroutine 1 [syscall, locked to thread]:
github.com/go-gl/glfw/v3.3/glfw._Cfunc_glfwWaitEvents()
        _cgo_gotypes.go:2357 +0x41
github.com/go-gl/glfw/v3.3/glfw.WaitEvents()
        /Users/jeremywhite/.local/go/src/github.com/go-gl/glfw/v3.3/glfw/window.go:966 +0x22
github.com/goxjs/glfw.WaitEvents(...)
        /Users/jeremywhite/.local/go/src/github.com/goxjs/glfw/desktop.go:385
github.com/nelsam/gxui/drivers/gl.(*driver).driverLoop(0xc0000ce230)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:122 +0x4c
github.com/nelsam/gxui/drivers/gl.StartDriver(0x4575ff8, 0xc0000e1d60, 0x1, 0x1)
        /Users/jeremywhite/.local/go/src/github.com/nelsam/gxui/drivers/gl/driver.go:85 +0x393
main.init.0.func1(0xc0001e6580, 0x4a82d28, 0x0, 0x0)
        /Users/jeremywhite/Exercism/go/vidar-gopath/src/github.com/nelsam/vidar/main.go:47 +0x9a
github.com/spf13/cobra.(*Command).execute(0xc0001e6580, 0xc0000ac1b0, 0x0, 0x0, 0xc0001e6580, 0xc0000ac1b0)
        /Users/jeremywhite/.local/go/src/github.com/spf13/cobra/command.go:846 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001e6580, 0x0, 0x1, 0xc00009c058)
        /Users/jeremywhite/.local/go/src/github.com/spf13/cobra/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/jeremywhite/.local/go/src/github.com/spf13/cobra/command.go:887
main.main()
        /Users/jeremywhite/Exercism/go/vidar-gopath/src/github.com/nelsam/vidar/main.go:53 +0x2d