-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Got a segfault, hopefully of interest to the core devs
To Reproduce
That's hard. I've used lazygit a LOT over the years and this is the first time I've encountered one.
Version info:
❯ lazygit --version
commit=, build date=, build source=Homebrew, version=0.56.0, os=darwin, arch=arm64, git version=2.52.0
❯ git --version
git version 2.52.0
Additional context
❯ lg
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x101057dc0]
goroutine 1 [running]:
github.com/jesseduffield/lazygit/pkg/gui/controllers.(*FilesController).canEditFiles-fm.(*FilesController).canEditFiles.func1(...)
github.com/jesseduffield/lazygit/pkg/gui/controllers/files_controller.go:921
github.com/samber/lo.NoneBy[...](...)
github.com/samber/[email protected]/intersect.go:85
github.com/jesseduffield/lazygit/pkg/gui/controllers.(*FilesController).canEditFiles(...)
github.com/jesseduffield/lazygit/pkg/gui/controllers/files_controller.go:921
github.com/jesseduffield/lazygit/pkg/gui/controllers.(*FilesController).GetKeybindings.(*ListControllerTrait[...]).itemsSelected.func5()
github.com/jesseduffield/lazygit/pkg/gui/controllers/list_controller_trait.go:98 +0xe0
github.com/jesseduffield/lazygit/pkg/gui/controllers.(*FilesController).GetKeybindings.(*ListControllerTrait[...]).require.func6()
github.com/jesseduffield/lazygit/pkg/gui/controllers/list_controller_trait.go:38 +0x54
github.com/jesseduffield/lazygit/pkg/gui/types.(*Binding).IsDisabled(...)
github.com/jesseduffield/lazygit/pkg/gui/types/keybindings.go:55
github.com/jesseduffield/lazygit/pkg/gui.(*OptionsMapMgr).renderContextOptionsMap.func3(...)
github.com/jesseduffield/lazygit/pkg/gui/options_map.go:52
github.com/samber/lo.Filter[...](...)
github.com/samber/[email protected]/slice.go:15
github.com/jesseduffield/lazygit/pkg/gui.(*OptionsMapMgr).renderContextOptionsMap(0x14000d432c0)
github.com/jesseduffield/lazygit/pkg/gui/options_map.go:51 +0x4f8
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).renderContextOptionsMap(0x1400012c408?)
github.com/jesseduffield/lazygit/pkg/gui/options_map.go:28 +0x4c
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).layout(0x14000218308, 0x1400029a000)
github.com/jesseduffield/lazygit/pkg/gui/layout.go:187 +0x990
github.com/jesseduffield/gocui.ManagerFunc.Layout(0x0?, 0x14007f2a100?)
github.com/jesseduffield/[email protected]/gui.go:746 +0x28
github.com/jesseduffield/gocui.(*Gui).flush(0x1400029a000)
github.com/jesseduffield/[email protected]/gui.go:1203 +0x98
github.com/jesseduffield/gocui.(*Gui).processEvent(0x1400029a000)
github.com/jesseduffield/[email protected]/gui.go:831 +0x1e0
github.com/jesseduffield/gocui.(*Gui).MainLoop(0x1400029a000)
github.com/jesseduffield/[email protected]/gui.go:796 +0xf8
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).Run(0x14000218308, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}})
github.com/jesseduffield/lazygit/pkg/gui/gui.go:867 +0x440
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).RunAndHandleError.func1()
github.com/jesseduffield/lazygit/pkg/gui/gui.go:873 +0x38
github.com/jesseduffield/lazygit/pkg/utils.SafeWithError(0x1400004d908?)
github.com/jesseduffield/lazygit/pkg/utils/utils.go:80 +0x5c
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).RunAndHandleError(0x14000218308, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}})
github.com/jesseduffield/lazygit/pkg/gui/gui.go:872 +0xac
github.com/jesseduffield/lazygit/pkg/app.(*App).Run(...)
github.com/jesseduffield/lazygit/pkg/app/app.go:277
github.com/jesseduffield/lazygit/pkg/app.Run({0x101529ed8?, 0x140000e6630?}, 0x14000244e00, {{0x0, 0x0}, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}})
github.com/jesseduffield/lazygit/pkg/app/app.go:48 +0x8c
github.com/jesseduffield/lazygit/pkg/app.Start(0x1400004def8, {0x0, 0x0})
github.com/jesseduffield/lazygit/pkg/app/entry_point.go:177 +0x940
main.main()
github.com/jesseduffield/lazygit/main.go:23 +0x78
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working