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

Black screen on start #3

Closed
meain opened this issue May 23, 2017 · 32 comments
Closed

Black screen on start #3

meain opened this issue May 23, 2017 · 32 comments

Comments

@meain
Copy link
Contributor

meain commented May 23, 2017

I did the go build and tried to start gonvim, but all I get is a black screen.

I can use :q so that is working

OS: macOS Sierra 10.12.3 16D32 x86_64

buit after 1195027 commit

screenshot

@dzhou121
Copy link
Owner

What is your colorscheme?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

gruvbox

@meain
Copy link
Contributor Author

meain commented May 25, 2017

I tried with solarized, same black screen

@dzhou121
Copy link
Owner

Are you using the latest of https://github.com/neovim/go-client

@meain
Copy link
Contributor Author

meain commented May 25, 2017

I am kinda new to go, am I supposed to build that too? I didn't have previous versions on my system if that is what you are asking.

@dzhou121
Copy link
Owner

Just run go get -u github.com/dzhou121/gonvim/cmd/gonvim, it will update all the dependencies.

@meain
Copy link
Contributor Author

meain commented May 25, 2017

I just checked, its actually the latest version

@dzhou121
Copy link
Owner

What is your nvim version?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

Oh, btw the built gonvim is in /Users/abinsimon/go/src/github.com/dzhou121/gonvim/cmd/gonvim. Am I supposed to move it to somewhere else?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

NVIM v0.2.0-320-gb4c0c61f
Build type: RelWithDebInfo
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -I/tmp/neovim-20170107-98159-6usos8/build/config -I/tmp/neovim-20170107-98159-6usos8/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20170107-98159-6usos8/build/src/nvim/auto -I/tmp/neovim-20170107-98159-6usos8/build/include
Compiled by abinsimon@mmac.local

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-b4c0c61/share/nvim"

@dzhou121
Copy link
Owner

How does it look if you do ./gonvim -u NORC

@meain
Copy link
Contributor Author

meain commented May 25, 2017

Still nothing.

@dzhou121
Copy link
Owner

The same black screen?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

yup

@meain
Copy link
Contributor Author

meain commented May 25, 2017

Also I don't get the bottom bar until I fullscreen it. This issue is also there when just running ./gonvim

@meain
Copy link
Contributor Author

meain commented May 25, 2017

I can't get anything working if I fullscreen it. But if it is minimized mode ( the way it started ). I can edit and and save a file. But nothing showing up on the screen though.

Once I fullscreen it, I can see the bottom bar, but none of my keystrokes are registered.

Also minimizing it after fullscreening it retains the bottom bar, but won't register any keystrokes.

@dzhou121
Copy link
Owner

dzhou121 commented May 25, 2017

What if you run the binary in your gobin, i.e. ~/go/bin/gonvim

Also, what is the version of your go?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

go version go1.8.1 darwin/amd64

Same black screen when running from ~/go/bin/gonvim. I also tried with -u NORC, still nothing

@dzhou121
Copy link
Owner

Can you please give me the content of http://localhost:6080/debug/pprof/goroutine?debug=1 after you run ./gonvim -u NORC

@meain
Copy link
Contributor Author

meain commented May 25, 2017

goroutine profile: total 9
1 @ 0x4004432 0x4323d41 0x432944b 0x405ad51
#	0x4323d40	github.com/dzhou121/ui._Cfunc_uiMain+0x40	github.com/dzhou121/ui/_obj/_cgo_gotypes.go:1900
#	0x432944a	github.com/dzhou121/ui.start+0x19a		/Users/abinsimon/go/src/github.com/dzhou121/ui/main.go:56

1 @ 0x402ef9a 0x4029ed7 0x4029519 0x4167428 0x4167494 0x4168c57 0x417af50 0x4260748 0x405ad51
#	0x4029518	net.runtime_pollWait+0x58			/usr/local/Cellar/go/1.8.1/libexec/src/runtime/netpoll.go:164
#	0x4167427	net.(*pollDesc).wait+0x37			/usr/local/Cellar/go/1.8.1/libexec/src/net/fd_poll_runtime.go:75
#	0x4167493	net.(*pollDesc).waitRead+0x33			/usr/local/Cellar/go/1.8.1/libexec/src/net/fd_poll_runtime.go:80
#	0x4168c56	net.(*netFD).Read+0x1b6				/usr/local/Cellar/go/1.8.1/libexec/src/net/fd_unix.go:250
#	0x417af4f	net.(*conn).Read+0x6f				/usr/local/Cellar/go/1.8.1/libexec/src/net/net.go:181
#	0x4260747	net/http.(*connReader).backgroundRead+0x57	/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:656

1 @ 0x402ef9a 0x4029ed7 0x4029519 0x4167428 0x4167494 0x416a475 0x41842ae 0x4182579 0x426b8df 0x426a628 0x426a310 0x426b01f 0x43a7568 0x405ad51
#	0x4029518	net.runtime_pollWait+0x58			/usr/local/Cellar/go/1.8.1/libexec/src/runtime/netpoll.go:164
#	0x4167427	net.(*pollDesc).wait+0x37			/usr/local/Cellar/go/1.8.1/libexec/src/net/fd_poll_runtime.go:75
#	0x4167493	net.(*pollDesc).waitRead+0x33			/usr/local/Cellar/go/1.8.1/libexec/src/net/fd_poll_runtime.go:80
#	0x416a474	net.(*netFD).accept+0x1e4			/usr/local/Cellar/go/1.8.1/libexec/src/net/fd_unix.go:430
#	0x41842ad	net.(*TCPListener).accept+0x2d			/usr/local/Cellar/go/1.8.1/libexec/src/net/tcpsock_posix.go:136
#	0x4182578	net.(*TCPListener).AcceptTCP+0x48		/usr/local/Cellar/go/1.8.1/libexec/src/net/tcpsock.go:215
#	0x426b8de	net/http.tcpKeepAliveListener.Accept+0x2e	/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:3044
#	0x426a627	net/http.(*Server).Serve+0x227			/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2643
#	0x426a30f	net/http.(*Server).ListenAndServe+0xaf		/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2585
#	0x426b01e	net/http.ListenAndServe+0x7e			/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2787
#	0x43a7567	main.main.func1+0x47				/Users/abinsimon/go/src/github.com/dzhou121/gonvim/cmd/gonvim/gonvim.go:14

1 @ 0x402ef9a 0x402f07e 0x4007991 0x40075c5 0x4329281 0x43a74e5 0x402eb4a 0x405ad51
#	0x4329280	github.com/dzhou121/ui.Main+0xa0	/Users/abinsimon/go/src/github.com/dzhou121/ui/main.go:37
#	0x43a74e4	main.main+0x44				/Users/abinsimon/go/src/github.com/dzhou121/gonvim/cmd/gonvim/gonvim.go:18
#	0x402eb49	runtime.main+0x209			/usr/local/Cellar/go/1.8.1/libexec/src/runtime/proc.go:185

1 @ 0x402ef9a 0x402f07e 0x4007991 0x40075c5 0x43a42c9 0x405ad51
#	0x43a42c8	github.com/dzhou121/gonvim.InitEditor.func2+0x48	/Users/abinsimon/go/src/github.com/dzhou121/gonvim/editor.go:193

1 @ 0x402ef9a 0x402f07e 0x403fe3b 0x406def9 0x4347cbb 0x4347d8f 0x405ad51
#	0x403fe3a	sync.runtime_notifyListWait+0x10a						/usr/local/Cellar/go/1.8.1/libexec/src/runtime/sema.go:298
#	0x406def8	sync.(*Cond).Wait+0x88								/usr/local/Cellar/go/1.8.1/libexec/src/sync/cond.go:57
#	0x4347cba	github.com/neovim/go-client/msgpack/rpc.(*Endpoint).dequeueNotifications+0x7a	/Users/abinsimon/go/src/github.com/neovim/go-client/msgpack/rpc/endpoint.go:645
#	0x4347d8e	github.com/neovim/go-client/msgpack/rpc.(*Endpoint).runNotifications+0x2e	/Users/abinsimon/go/src/github.com/neovim/go-client/msgpack/rpc/endpoint.go:657

1 @ 0x405ad51

1 @ 0x40c7a55 0x40c63d5 0x40c33c9 0x40dfc3a 0x40dd266 0x410e237 0x410eccb 0x433fd55 0x43454ce 0x435623a 0x43a41df 0x405ad51
#	0x40c7a54	syscall.Syscall+0x4						/usr/local/Cellar/go/1.8.1/libexec/src/syscall/asm_darwin_amd64.s:16
#	0x40c63d4	syscall.read+0x54						/usr/local/Cellar/go/1.8.1/libexec/src/syscall/zsyscall_darwin_amd64.go:973
#	0x40c33c8	syscall.Read+0x48						/usr/local/Cellar/go/1.8.1/libexec/src/syscall/syscall_unix.go:162
#	0x40dfc39	os.(*File).read+0x69						/usr/local/Cellar/go/1.8.1/libexec/src/os/file_unix.go:165
#	0x40dd265	os.(*File).Read+0x75						/usr/local/Cellar/go/1.8.1/libexec/src/os/file.go:101
#	0x410e236	bufio.(*Reader).fill+0x116					/usr/local/Cellar/go/1.8.1/libexec/src/bufio/bufio.go:97
#	0x410ecca	bufio.(*Reader).ReadByte+0x5a					/usr/local/Cellar/go/1.8.1/libexec/src/bufio/bufio.go:239
#	0x433fd54	github.com/neovim/go-client/msgpack.(*Decoder).Unpack+0x54	/Users/abinsimon/go/src/github.com/neovim/go-client/msgpack/unpack.go:167
#	0x43454cd	github.com/neovim/go-client/msgpack/rpc.(*Endpoint).Serve+0x11d	/Users/abinsimon/go/src/github.com/neovim/go-client/msgpack/rpc/endpoint.go:384
#	0x4356239	github.com/neovim/go-client/nvim.(*Nvim).Serve+0x89		/Users/abinsimon/go/src/github.com/neovim/go-client/nvim/nvim.go:53
#	0x43a41de	github.com/dzhou121/gonvim.InitEditor.func1+0x2e		/Users/abinsimon/go/src/github.com/dzhou121/gonvim/editor.go:174

1 @ 0x431b6c2 0x431b4c0 0x4317b35 0x431eec1 0x431f1d3 0x4267a24 0x4268e60 0x426a1c2 0x4266592 0x405ad51
#	0x431b6c1	runtime/pprof.writeRuntimeProfile+0xa1	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/pprof/pprof.go:632
#	0x431b4bf	runtime/pprof.writeGoroutine+0x9f	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/pprof/pprof.go:594
#	0x4317b34	runtime/pprof.(*Profile).WriteTo+0x3b4	/usr/local/Cellar/go/1.8.1/libexec/src/runtime/pprof/pprof.go:302
#	0x431eec0	net/http/pprof.handler.ServeHTTP+0x1d0	/usr/local/Cellar/go/1.8.1/libexec/src/net/http/pprof/pprof.go:209
#	0x431f1d2	net/http/pprof.Index+0x1e2		/usr/local/Cellar/go/1.8.1/libexec/src/net/http/pprof/pprof.go:221
#	0x4267a23	net/http.HandlerFunc.ServeHTTP+0x43	/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:1942
#	0x4268e5f	net/http.(*ServeMux).ServeHTTP+0x12f	/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2238
#	0x426a1c1	net/http.serverHandler.ServeHTTP+0x91	/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:2568
#	0x4266591	net/http.(*conn).serve+0x611		/usr/local/Cellar/go/1.8.1/libexec/src/net/http/server.go:1825

@meain
Copy link
Contributor Author

meain commented May 25, 2017

Btw, this is my config.

@dzhou121
Copy link
Owner

I just pushed some new stuff, can you please pull the latest and rebuild?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

I just need to do go get -u github.com/dzhou121/gonvim/cmd/gonvim and rebuild, right?

@dzhou121
Copy link
Owner

Yes

@meain
Copy link
Contributor Author

meain commented May 25, 2017

I am getting this error:

nvim attach UI error nvim:nvim_ui_attach validation: No such ui option

@dzhou121
Copy link
Owner

Looks like your nvim isn't 0.2. At least the nvim binary in your PATH isn't.

@meain
Copy link
Contributor Author

meain commented May 25, 2017

$ which nvim
/usr/local/bin/nvim

$ /usr/local/bin/nvim --version
NVIM v0.2.0-320-gb4c0c61f

It looks like its 0.2. This is the only nvim binary in any of the paths in PATH

@dzhou121
Copy link
Owner

Is it a HEAD version before 0.2 release?

@meain
Copy link
Contributor Author

meain commented May 25, 2017

Oops, it was my nvim version. I updated nvim and it works. Thanks a lot.

@meain meain closed this as completed May 25, 2017
@meain meain reopened this May 25, 2017
@meain
Copy link
Contributor Author

meain commented May 25, 2017

One more issue. only ./gonvim -u NORC works. Using it without -u flag does not even start it.

@dzhou121
Copy link
Owner

Does it give any errors when you start nvim tui

@meain
Copy link
Contributor Author

meain commented May 25, 2017

Oops, set noesckeys is not supported in the latest version I guess. Removed it and it works.

@meain meain closed this as completed May 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants