Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Running a command crashes the client #89

Closed
1 of 2 tasks
ghost opened this issue Jul 16, 2019 · 1 comment
Closed
1 of 2 tasks

Running a command crashes the client #89

ghost opened this issue Jul 16, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Jul 16, 2019

Is your source up to date

  • Yes
  • No

What happened

I pressed tab, the command menu showed up, I typed in friends befriend

What did you expect to happen

Nothing

How do you reproduce this bug

Open up cordless, press tab, type in the commands input box friends befriend and BOOM it crashes

Error output

panic: runtime error: index out of range [recovered]
    panic: runtime error: index out of range

goroutine 1 [running]:
github.com/Bios-Marcel/tview.(*Application).Run.func1(0xc0001015f0)
    /home/user/go/bin/src/github.com/Bios-Marcel/tview/application.go:160 +0x82
panic(0xc04600, 0x1438e30)
    /usr/lib/go/src/runtime/panic.go:522 +0x1b5
github.com/Bios-Marcel/cordless/commands/commandimpls.(*Friends).Execute(0xc000010150, 0xea9980, 0xc000965940, 0xc000623830, 0x1, 0x1)
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/commands/commandimpls/friends.go:184 +0x3267
github.com/Bios-Marcel/cordless/ui.(*Window).ExecuteCommand(0xc000103c00, 0xc0006ef290, 0x10)
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/ui/window.go:1655 +0x110
github.com/Bios-Marcel/cordless/ui.(*CommandView).handleInput(0xc000965940, 0xc0006234c0, 0x20)
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/ui/commandview.go:94 +0x309
github.com/Bios-Marcel/cordless/ui.(*CommandView).SetInputCaptureForInput.func1(0xc0006234c0, 0xc0006ef269)
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/ui/commandview.go:56 +0x3d
github.com/Bios-Marcel/cordless/ui.NewEditor.func1(0xc0006234c0, 0xc0006f1401)
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/ui/editor.go:281 +0x26cd
github.com/Bios-Marcel/tview.(*Box).WrapInputHandler.func1(0xc0006234c0, 0xc0006f14a0)
    /home/user/go/bin/src/github.com/Bios-Marcel/tview/box.go:208 +0x75
github.com/Bios-Marcel/tview.(*Application).Run(0xc0001015f0, 0x0, 0x0)
    /home/user/go/bin/src/github.com/Bios-Marcel/tview/application.go:245 +0x499
github.com/Bios-Marcel/cordless/app.Run()
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/app/app.go:117 +0x3ae
main.main()
    /home/user/go/bin/src/github.com/Bios-Marcel/cordless/main.go:8 +0x20

How to fix

You tell me

System information

Void Linux x86_64

@Bios-Marcel Bios-Marcel added the bug Something isn't working label Jul 16, 2019
@Bios-Marcel Bios-Marcel added this to the Next Release milestone Jul 16, 2019
@Bios-Marcel
Copy link
Owner

Thanks, will be fixed today.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant