apple / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frequent crashes on Windows with `Assertion failed: IDAndOffset.first.isValid() && "invalid FileID for transition"`

z2oh opened this issue · comments

Assertion failed: IDAndOffset.first.isValid() && "invalid FileID for transition", file C:\a\swift-build\swift-build\SourceCache\llvm-project\clang\lib\Serialization\ASTReader.cpp, line 6609

The assertion in question: https://github.com/apple/llvm-project/blob/51859f9280134994d482f8420619760409903585/clang/lib/Serialization/ASTReader.cpp#L6675

We're seeing this happen frequently enough to hit the 6 crashes in 3 minutes no-restart limit.

This may not be actually be a sourcekit-lsp issue, but as it materializes as a crash I figured it was worth flagging here.

Tracked in Apple’s issue tracker as rdar://125018783

Do you have a crash trace of the call stack that caused the assertion failure?