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

in OSX, pasting freezes vigo #44

Open
yarbelk opened this issue Jul 3, 2014 · 2 comments
Open

in OSX, pasting freezes vigo #44

yarbelk opened this issue Jul 3, 2014 · 2 comments

Comments

@yarbelk
Copy link

yarbelk commented Jul 3, 2014

Not sure what is causing it - Done this with URLS and free text

Also - it pastes backwards and freezes before the input is done on long inputs

however, i've managed to crash it with the input done

panic: runtime error: slice bounds out of range
goroutine 22 [running]: runtime.panic(0x10d860, 0x1e432f)
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
github.com/kisielk/vigo/buffer.(*Cursor).VoffsetCoffset(0x22083f3f20, 0x0, 0x0)
/Users/someuser/go/src/github.com/kisielk/vigo/buffer/cursor.go:135 +0x117
github.com/kisielk/vigo/view.(*View).MoveCursorTo(0x208298000, 0x208250570, 0x1, 0x6)
/Users/someuser/go/src/github.com/kisielk/vigo/view/view.go:718 +0x16c
github.com/kisielk/vigo/view.(*View).bufferEventLoop(0x208298000)
/Users/someuser/go/src/github.com/kisielk/vigo/view/view.go:321 +0x15a
created by github.com/kisielk/vigo/view.(*View).Attach
/Users/someuser/go/src/github.com/kisielk/vigo/view/view.go:309 +0x1b0
goroutine 16 [select]: github.com/kisielk/vigo/editor.(*Editor).Loop(0x208286140, 0x0, 0x0)
/Users/someuser/go/src/github.com/kisielk/vigo/editor/editor.go:384 +0x257
main.main()
/Users/someuser/go/src/github.com/kisielk/vigo/main.go:29 +0x1ec
goroutine 19 [finalizer wait]: runtime.park(0x14200, 0x1e7610, 0x1e69c9)
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x1e7610, 0x1e69c9)
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1445
goroutine 20 [syscall]:
os/signal.loop()
/usr/local/Cellar/go/1.3/libexec/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init·1
/usr/local/Cellar/go/1.3/libexec/src/pkg/os/signal/signal_unix.go:27 +0x32
goroutine 21 [select]:
github.com/nsf/termbox-go.func·001()
/Users/someuser/go/src/github.com/nsf/termbox-go/api.go:86 +0x41a
created by github.com/nsf/termbox-go.Init
/Users/someuser/go/src/github.com/nsf/termbox-go/api.go:105 +0x81b
goroutine 23 [select]:
github.com/nsf/termbox-go.PollEvent(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/someuser/go/src/github.com/nsf/termbox-go/api.go:244 +0x396
main.func·001()
/Users/someuser/go/src/github.com/kisielk/vigo/main.go:26 +0x27
created by main.main
/Users/someuser/go/src/github.com/kisielk/vigo/main.go:28 +0x1d9
@yarbelk
Copy link
Author

yarbelk commented Jul 3, 2014

Does not crash for a single character - does for 2. not sure when the freeze kicks in.

Not sure if this is a crash in termbox-go or vigo

@yarbelk yarbelk closed this as completed Jul 3, 2014
@yarbelk yarbelk reopened this Jul 3, 2014
@yarbelk
Copy link
Author

yarbelk commented Jul 3, 2014

oops.

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

1 participant