panic: runtime error: invalid memory address or nil pointer dereference
Closed this issue · 1 comments
Aarush-Goyal commented
Error occurred when running borzoi generate on a large folder.
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x8e784a]
goroutine 1 [running]:
github.com/automation-co/borzoi/internal/utils.GetRepoUrl({0xc0003a9f50?, 0x6c6f00c000250030?})
/home/aarushgoyal/go/pkg/mod/github.com/automation-co/borzoi@v0.1.0/internal/utils/git.go:61 +0xea
github.com/automation-co/borzoi/internal/lib.Generate.func1({0xc0003a9f50, 0xe}, {0x1?, 0x1?}, {0x0?, 0x0?})
/home/aarushgoyal/go/pkg/mod/github.com/automation-co/borzoi@v0.1.0/internal/lib/generate.go:32 +0x5b
path/filepath.walkDir({0xc0003a9f50, 0xe}, {0xada248, 0xc000160b00}, 0xc00012bd98)
/usr/lib/go/src/path/filepath/path.go:386 +0x5c
path/filepath.walkDir({0xc000517810, 0x8}, {0xada248, 0xc00014bdc0}, 0xc00012bd98)
/usr/lib/go/src/path/filepath/path.go:405 +0x22d
path/filepath.walkDir({0x9f3f6f, 0x1}, {0xada280, 0xc0001b2b40}, 0xc00012bd98)
/usr/lib/go/src/path/filepath/path.go:405 +0x22d
path/filepath.WalkDir({0x9f3f6f, 0x1}, 0xc000165d98)
/usr/lib/go/src/path/filepath/path.go:469 +0xb0
github.com/automation-co/borzoi/internal/lib.Generate()
/home/aarushgoyal/go/pkg/mod/github.com/automation-co/borzoi@v0.1.0/internal/lib/generate.go:20 +0x4f
github.com/automation-co/borzoi/cmd.glob..func2(0xe176c0?, {0x9f4677?, 0x0?, 0x0?})
/home/aarushgoyal/go/pkg/mod/github.com/automation-co/borzoi@v0.1.0/cmd/generate.go:13 +0x17
github.com/spf13/cobra.(*Command).execute(0xe176c0, {0xe51860, 0x0, 0x0})
/home/aarushgoyal/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:860 +0x663
github.com/spf13/cobra.(*Command).ExecuteC(0xe17940)
/home/aarushgoyal/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
/home/aarushgoyal/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:902
github.com/automation-co/borzoi/cmd.Execute()
/home/aarushgoyal/go/pkg/mod/github.com/automation-co/borzoi@v0.1.0/cmd/root.go:22 +0x25
main.main()
/home/aarushgoyal/go/pkg/mod/github.com/automation-co/borzoi@v0.1.0/main.go:8 +0x17
theishanbh commented
This issue has occurred only once. Therefore, waiting for more instances of the problem.