Closed bastelfreak closed 5 years ago
I gett this error on every start with ~20 repos.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x85eb8c]
goroutine 39 [running]:
github.com/isacikgoz/gitbatch/pkg/git.(*RepoEntity).loadComponents(0xc00038a200, 0x1, 0xc00038a200, 0x0)
/Users/ibrahim/go/src/github.com/isacikgoz/gitbatch/pkg/git/repository.go:134 +0xfc
github.com/isacikgoz/gitbatch/pkg/git.InitializeRepo(0xc000029740, 0x21, 0xc00020a070, 0x0, 0x0)
/Users/ibrahim/go/src/github.com/isacikgoz/gitbatch/pkg/git/repository.go:104 +0x7d
github.com/isacikgoz/gitbatch/pkg/git.LoadRepositoryEntities.func1(0xc00020a070, 0xc00020a080, 0xc000212020, 0xc000029740, 0x21)
/Users/ibrahim/go/src/github.com/isacikgoz/gitbatch/pkg/git/util-load.go:27 +0x7d
created by github.com/isacikgoz/gitbatch/pkg/git.LoadRepositoryEntities
/Users/ibrahim/go/src/github.com/isacikgoz/gitbatch/pkg/git/util-load.go:23 +0x158
version 0.2.0
Hey, @bastelfreak thanks for submitting the issue. It is a known issue, and it is an undeterministic error. I will investigate this.
I patched this with the PR #47 , can you please update the app and try again and let me see the result? @bastelfreak
I tested it with around ~150 repos and seemed fine. Still, it may vary on computer performance. But the problem is caused by in gui.go
:
g.SetManagerFunc(gui.layout)
is called after loading repositories, instead of that I moved this line before loading repositories. I hope this will resolve the issue, you can see the change on b7526002579436856e02173de4445e543aa77b33
thanks! I cannot reproduce this anymore.
Hi, I've got a big directory with around 120 modules in it. Every second to third start directly fails like this:
Let me know if you need any more debug information.