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

x/exp/shiny/example/basic: go run main.go hanges on windows #16341

Closed
alexbrainman opened this issue Jul 13, 2016 · 5 comments
Closed

x/exp/shiny/example/basic: go run main.go hanges on windows #16341

alexbrainman opened this issue Jul 13, 2016 · 5 comments

Comments

@alexbrainman
Copy link
Member

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?

go version devel +29f0984 Fri Jul 1 01:12:24 2016 +0000 windows/386

  1. What operating system and processor architecture are you using (go env)?
set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\dev
set GORACE=
set GOROOT=c:\dev\go
set GOTOOLDIR=c:\dev\go\pkg\tool\windows_386
set CC=gcc
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\DOCUME~1\brainman\LOCALS~1\Temp\go-build024791586=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
  1. What did you do?
C:\dev\src\golang.org\x\exp\shiny\example\basic>git rev-parse HEAD
a16ab4a434a95ebed3f8c4b58b88bcc2b1fa64b2

C:\dev\src\golang.org\x\exp\shiny\example\basic>go run main.go
  1. What did you expect to see?

I expect to see new window open on my screen, and so on.

  1. What did you see instead?

Nothing. Program just hangs.

Alex

@mattn
Copy link
Member

mattn commented Jul 13, 2016

I got different behavior on windows10.

c:\dev\go\src\golang.org\x\exp\shiny\example\basic>git rev-parse HEAD
a16ab4a434a95ebed3f8c4b58b88bcc2b1fa64b2

c:\dev\go\src\golang.org\x\exp\shiny\example\basic>go run main.go

got lifecycle.Event{From:StageDead, To:StageVisible, DrawContext:<nil>}
got lifecycle.Event{From:StageVisible, To:StageFocused, DrawContext:<nil>}
got size.Event{WidthPx:944, HeightPx:687, WidthPt:944, HeightPt:687, PixelsPerPt:1, Orientation:0}
got paint.Event{External:false}
panic: TODO: implement

goroutine 18 [running]:
panic(0x4cfac0, 0xc0420041a0)
    C:/go/src/runtime/panic.go:500 +0x1af
golang.org/x/exp/shiny/driver/windriver.(*windowImpl).DrawUniform(0xc042082000, 0x3fdbb67ae8584caa, 0xbfe0000000000000, 0x4059000000000000, 0x3fd0000000000000, 0x3febb67ae8584caa, 0x4069000000000000, 0x565720, 0xc042004198, 0x1e, ...)
    c:/dev/go/src/golang.org/x/exp/shiny/driver/windriver/window.go:81 +0x74
main.main.func1(0x565f60, 0x577120)
    c:/dev/go/src/golang.org/x/exp/shiny/example/basic/main.go:114 +0xcf3
golang.org/x/exp/shiny/driver/windriver.Main.func1()
    c:/dev/go/src/golang.org/x/exp/shiny/driver/windriver/windriver.go:22 +0x44
golang.org/x/exp/shiny/driver/internal/win32.screenWindowWndProc.func1()
    c:/dev/go/src/golang.org/x/exp/shiny/driver/internal/win32/win32.go:279 +0x30
created by golang.org/x/exp/shiny/driver/internal/win32.screenWindowWndProc
    c:/dev/go/src/golang.org/x/exp/shiny/driver/internal/win32/win32.go:281 +0x17e
exit status 2

@alexbrainman
Copy link
Member Author

I got different behavior on windows10.

I see what you see on my Windows 7 computer. But on my Windows XP computer it just hangs.

Alex

@mattn
Copy link
Member

mattn commented Jul 14, 2016

got lifecycle.Event{From:StageDead, To:StageVisible, DrawContext:<nil>}
got lifecycle.Event{From:StageVisible, To:StageFocused, DrawContext:<nil>}
got size.Event{WidthPx:944, HeightPx:687, WidthPt:944, HeightPt:687, PixelsPerPt:1, Orientation:0}
got paint.Event{External:false}
panic: TODO: implement

goroutine 18 [running]:
panic(0x4cfb00, 0xc0420860d0)
    C:/go/src/runtime/panic.go:500 +0x1af
golang.org/x/exp/shiny/driver/windriver.(*windowImpl).DrawUniform(0xc042082000, 0x3fdbb67ae8584caa, 0xbfe0000000000000, 0x4059000000000000, 0x3fd0000000000000, 0x3febb67ae8584caa, 0x4069000000000000, 0x565720, 0xc0420860c8, 0x1e, ...)
    c:/dev/go/src/golang.org/x/exp/shiny/driver/windriver/window.go:81 +0x74
main.main.func1(0x565f60, 0x577120)
    c:/dev/go/src/golang.org/x/exp/shiny/example/basic/main.go:114 +0xcf3
golang.org/x/exp/shiny/driver/windriver.Main.func1()
    c:/dev/go/src/golang.org/x/exp/shiny/driver/windriver/windriver.go:22 +0x44
golang.org/x/exp/shiny/driver/internal/win32.screenWindowWndProc.func1()
    c:/dev/go/src/golang.org/x/exp/shiny/driver/internal/win32/win32.go:279 +0x30
created by golang.org/x/exp/shiny/driver/internal/win32.screenWindowWndProc
    c:/dev/go/src/golang.org/x/exp/shiny/driver/internal/win32/win32.go:281 +0x17e
exit status 2

I got same result to Windows10. Seems to be occur on WindowsXP.

@alexbrainman
Copy link
Member Author

Seems to be occur on WindowsXP.

I think it is matter of luck when it works and when it does not. But this https://go-review.googlesource.com/#/c/24921/ fixes my problem.

Alex

@gopherbot
Copy link

CL https://golang.org/cl/24921 mentions this issue.

@golang golang locked and limited conversation to collaborators Jul 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants