Skip to content

LSP - invalid memory address or nil pointer dereference - findOrCreateDefaultConfiguredProjectWorker #1630

@lukpsaxo

Description

@lukpsaxo

Stack trace

[12:32:06.312] 
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x1 addr=0x8 pc=0x7ff771c39192]

goroutine 432537 [running]:
internal/sync.(*Mutex).Lock(...)
	internal/sync/mutex.go:63
sync.(*Mutex).Lock(...)
	sync/mutex.go:46
github.com/microsoft/typescript-go/internal/project/dirty.(*SyncMapEntry[...]).Value(0xc019b253e0?)
	github.com/microsoft/typescript-go/internal/project/dirty/syncmap.go:58 +0x32
github.com/microsoft/typescript-go/internal/project.(*projectCollectionBuilder).findOrCreateDefaultConfiguredProjectWorker.func2({{0xc019b253e0?, 0x0?}, 0xc019b253e0?, 0x0?})
	github.com/microsoft/typescript-go/internal/project/projectcollectionbuilder.go:543 +0x209
github.com/microsoft/typescript-go/internal/core.BreadthFirstSearchParallelEx[...].func3(0xc2187d54d0)
	github.com/microsoft/typescript-go/internal/core/bfs.go:114 +0x149
created by github.com/microsoft/typescript-go/internal/core.BreadthFirstSearchParallelEx[...].func1-range1 in goroutine 10
	github.com/microsoft/typescript-go/internal/core/bfs.go:99 +0x22f
[Error - 12:32:21 PM] The typescript.native-preview-lsp server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Steps to reproduce

Unsure - happened every 20 seconds 5 times in a row, just doing normal file editing.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions