~eliasnaur/gio

1

Latest gio version don't run on windows

Details
Message ID
<30668521572960471@sas8-93eeb7dac565.qloud-c.yandex.net>
DKIM signature
pass
Download raw message
Hi
When I try to run the latest gio version i have the next message in the console:

goroutine 20 [running, locked to thread]:
golang.org/x/sys/windows.(*LazyProc).mustFind(0xc000098f60)
        E:/GoWorkplace/pkg/mod/golang.org/x/sys@v0.0.0-20190813064441-fde4db37ae7a/windows/dll_windows.go:286 +0x5f
golang.org/x/sys/windows.(*LazyProc).Call(0xc000098f60, 0xc0000b4220, 0x4, 0x4, 0x3, 0x3, 0x10001, 0x0)
        E:/GoWorkplace/pkg/mod/golang.org/x/sys@v0.0.0-20190813064441-fde4db37ae7a/windows/dll_windows.go:308 +0x36
gioui.org/app/internal/window.getDpiForMonitor(0x10001, 0xc000000000, 0x3)
        E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:606 +0xba
gioui.org/app/internal/window.configForDC(0x6101135c, 0x6101135c, 0x0, 0x0, 0x1)
        E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:488 +0x82
gioui.org/app/internal/window.createNativeWindow(0xc00009a060, 0x0, 0x0, 0x0)
        E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:208 +0x90
gioui.org/app/internal/window.NewWindow.func1(0xc00009a060, 0xc0000ce1e0, 0x5d7fe0, 0xc0000d01f8)
        E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:179 +0x5a
created by gioui.org/app/internal/window.NewWindow
        E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:176 +0x167
exit status 2

What I do:

go mod init example.com
go run gioui.org/example/kitchen
Details
Message ID
<BY844NKA0I00.3JZSIGTR2YXD7@toolbox>
In-Reply-To
<30668521572960471@sas8-93eeb7dac565.qloud-c.yandex.net> (view parent)
DKIM signature
pass
Download raw message
On Tue Nov 5, 2019 at 4:27 PM  wrote:
> Hi
> When I try to run the latest gio version i have the next message in the console:
> 
> goroutine 20 [running, locked to thread]:
> golang.org/x/sys/windows.(*LazyProc).mustFind(0xc000098f60)
>         E:/GoWorkplace/pkg/mod/golang.org/x/sys@v0.0.0-20190813064441-fde4db37ae7a/windows/dll_windows.go:286 +0x5f
> golang.org/x/sys/windows.(*LazyProc).Call(0xc000098f60, 0xc0000b4220, 0x4, 0x4, 0x3, 0x3, 0x10001, 0x0)
>         E:/GoWorkplace/pkg/mod/golang.org/x/sys@v0.0.0-20190813064441-fde4db37ae7a/windows/dll_windows.go:308 +0x36
> gioui.org/app/internal/window.getDpiForMonitor(0x10001, 0xc000000000, 0x3)
>         E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:606 +0xba
> gioui.org/app/internal/window.configForDC(0x6101135c, 0x6101135c, 0x0, 0x0, 0x1)
>         E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:488 +0x82
> gioui.org/app/internal/window.createNativeWindow(0xc00009a060, 0x0, 0x0, 0x0)
>         E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:208 +0x90
> gioui.org/app/internal/window.NewWindow.func1(0xc00009a060, 0xc0000ce1e0, 0x5d7fe0, 0xc0000d01f8)
>         E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:179 +0x5a
> created by gioui.org/app/internal/window.NewWindow
>         E:/GoWorkplace/pkg/mod/gioui.org@v0.0.0-20191104182734-4adaea3396e8/app/internal/window/os_windows.go:176 +0x167
> exit status 2
> 
> What I do:
> 
> go mod init example.com
> go run gioui.org/example/kitchen 

What version of Windows are you running? I'm guessing Windows 7.

-- elias