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

All examples show a black screen on OSX #171

Open
rasa-silva opened this issue Oct 14, 2021 · 6 comments
Open

All examples show a black screen on OSX #171

rasa-silva opened this issue Oct 14, 2021 · 6 comments

Comments

@rasa-silva
Copy link

Trying to run the examples simple shows a window with a black background.
There seem to be no errors...

OSX 11.6

@200sc
Copy link
Contributor

200sc commented Oct 14, 2021

I'm on 11.6 on a 2019 15 inch MBP and can't replicate this, running the examples off of the master branch. Is there anything else about your system that could be a factor? Is it an M1 Mac?

Additionally: could you include the output of go env? Could you name which examples are not working (or just one of them)?

@rasa-silva
Copy link
Author

Intel MacBook
Go 1.17.2

@rasa-silva
Copy link
Author

❯ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ricardo.silva/Library/Caches/go-build"
GOENV="/Users/ricardo.silva/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/ricardo.silva/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/ricardo.silva/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.17.2/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.17.2/libexec/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.17.2"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/ricardo.silva/code/oak/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/h7/rp8ld5_n2ld57w78vzqvcrx40000gp/T/go-build3544231302=/tmp/go-build -gno-record-gcc-switches -fno-common"

image

@200sc
Copy link
Contributor

200sc commented Oct 14, 2021

I replicated all of those settings and flappy-bird still runs for me.

Other, reaching ideas:

  1. How many monitors are connected to your machine?
  2. Is there an unusual USB device connected to your machine?
  3. What does clang -v output?
  4. Can you run the examples here: https://github.com/go-gl/example?

@rasa-silva
Copy link
Author

1/2) I do have an external monitor through a dongle but I just disconnected it and ran only on the macbook display. Same problem.
3)

❯ clang -v
Homebrew clang version 11.1.0
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm@11/bin
  1. yes. both of them run fine.

@200sc
Copy link
Contributor

200sc commented Oct 14, 2021

Thank you for all the details.

I downgraded from clang 13 to 11.1 via brew, and while the behavior of the examples is a little different (there's some initial rendering artifacts), it doesn't display just a black screen and the examples play as normal. You could try using a newer clang but based on that it shouldn't be a factor.

I've also tried manipulating GOMAXPROCS to no effect.

So status: still unable to reproduce; next I'll try looking for historical issues in any dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants