wakatime/wakatime-cli

runtime error: invalid memory address or nil pointer dereference

alanhamlett opened this issue · 0 comments

Platform: Windows amd64
Version: 1.73.4

goroutine 1 [running]:
runtime/debug.Stack()
 /opt/hostedtoolcache/go/1.20.7/x64/src/runtime/debug/stack.go:24 +0x65
github.com/wakatime/wakatime-cli/cmd.runCmd.func1()
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:284 +0x13c
panic({0xa4e5a0, 0x1169f60})
 /opt/hostedtoolcache/go/1.20.7/x64/src/runtime/panic.go:884 +0x213
panic({0xa4e5a0, 0x1169f60})
 /opt/hostedtoolcache/go/1.20.7/x64/src/runtime/panic.go:884 +0x213
go.etcd.io/bbolt.(*DB).beginRWTx(0xc0000c6ae0?)
 /home/runner/go/pkg/mod/go.etcd.io/bbolt@v1.3.7/db.go:749 +0x38
go.etcd.io/bbolt.(*DB).Begin(0xc00038a2e0?, 0x10?)
 /home/runner/go/pkg/mod/go.etcd.io/bbolt@v1.3.7/db.go:697 +0x1d
github.com/wakatime/wakatime-cli/pkg/offline.pushHeartbeats({0xc00038a2e0?, 0xc0000c6c68?}, {0xc0001c1680, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/offline/offline.go:316 +0x71
github.com/wakatime/wakatime-cli/pkg/offline.pushHeartbeatsWithRetry({0xc00038a2e0, 0x1a}, {0xc0001c1680, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/offline/offline.go:291 +0xdd
github.com/wakatime/wakatime-cli/pkg/offline.WithQueue.func1.1({0xc0001c1680, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/offline/offline.go:68 +0x1b8
github.com/wakatime/wakatime-cli/pkg/filter.WithLengthValidator.func1.1({0xc0001c1680?, 0xc0000c6dd8?, 0x2722e7?})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/filter/filter.go:56 +0x7d
github.com/wakatime/wakatime-cli/pkg/remote.WithCleanup.func1.1({0xc0001c1680, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/remote/remote.go:123 +0x1c2
github.com/wakatime/wakatime-cli/pkg/heartbeat.WithSanitization.func1.1({0xc0001c1680, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/heartbeat/sanitize.go:36 +0x263
github.com/wakatime/wakatime-cli/pkg/project.WithFiltering.func1.1({0xc0001c1040, 0x1, 0x2?})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/project/filter.go:45 +0x451
github.com/wakatime/wakatime-cli/pkg/project.WithDetection.func1.1({0xc0001c1040, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/project/project.go:220 +0xb07
github.com/wakatime/wakatime-cli/pkg/deps.WithDetection.func1.1({0xc0001c1040, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/deps/deps.go:77 +0x17a
github.com/wakatime/wakatime-cli/pkg/language.WithDetection.func1.1({0xc0001c1040, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/language/language.go:48 +0x367
github.com/wakatime/wakatime-cli/pkg/filestats.WithDetection.func1.1({0xc0001c1040, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/filestats/filestats.go:72 +0x573
github.com/wakatime/wakatime-cli/pkg/apikey.WithReplacing.func1.1({0xc0001c1040, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/apikey/apikey.go:42 +0x1c7
github.com/wakatime/wakatime-cli/pkg/remote.WithDetection.func1.1({0xc0001c0f00, 0x1, 0x0?})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/remote/remote.go:103 +0x84f
github.com/wakatime/wakatime-cli/pkg/filter.WithFiltering.func1.1({0xc0002ea000, 0x1, 0x0?})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/filter/filter.go:41 +0x2df
github.com/wakatime/wakatime-cli/pkg/heartbeat.WithEntityModifer.func1.1({0xc0002ea000, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/heartbeat/entity_modify.go:24 +0x1ea
github.com/wakatime/wakatime-cli/pkg/heartbeat.WithFormatting.func1.1({0xc0002ea000, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/heartbeat/format.go:32 +0x272
github.com/wakatime/wakatime-cli/pkg/heartbeat.NewHandle.func1({0xc0002ea000, 0x1, 0x1})
 /home/runner/work/wakatime-cli/wakatime-cli/pkg/heartbeat/heartbeat.go:171 +0xd1
github.com/wakatime/wakatime-cli/cmd/heartbeat.SendHeartbeats(0xc000085860, {0xc00038a2e0, 0x1a})
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/heartbeat/heartbeat.go:127 +0x6f6
github.com/wakatime/wakatime-cli/cmd/heartbeat.Run(0xc9e220?)
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/heartbeat/heartbeat.go:36 +0xc6
github.com/wakatime/wakatime-cli/cmd.runCmd(0xc000085860, 0x0, 0x0, 0xbb2a48)
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:300 +0x122
github.com/wakatime/wakatime-cli/cmd.RunCmdWithOfflineSync(0xc0003f9fa0?, 0x2a?, 0x45?, 0x0?)
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:256 +0x26
github.com/wakatime/wakatime-cli/cmd.Run(0x0?, 0x0?)
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/run.go:118 +0x5d7
github.com/wakatime/wakatime-cli/cmd.NewRootCMD.func1(0xc00010a300?, {0xadec16?, 0xf?, 0xf?})
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/root.go:29 +0x1d
github.com/spf13/cobra.(*Command).execute(0xc00010a300, {0xc0000da010, 0xf, 0xf})
 /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xc00010a300)
 /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
 /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/wakatime/wakatime-cli/cmd.Execute()
 /home/runner/work/wakatime-cli/wakatime-cli/cmd/root.go:260 +0x1e
main.main()
 /home/runner/work/wakatime-cli/wakatime-cli/main.go:6 +0x17