我在 Windows 10 计算机上运行 SSMS 18.9.2。
当我开始输入 SQL 模板时,一旦自动完成列表弹出,SSMS 就会崩溃。
我从 Windows 事件查看器获得以下信息
Application: Ssms.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at LiteDB.StreamExtensions+<>c__DisplayClass4_0.<TryLock>b__0()
at LiteDB.FileHelper.TryExec(System.Action, System.TimeSpan)
at LiteDB.StreamExtensions.TryLock(System.IO.FileStream, Int64, Int64, System.TimeSpan)
at LiteDB.FileDiskService.Lock(LiteDB.LockState, System.TimeSpan)
at LiteDB.LockService.Write()
at LiteDB.LiteEngine.Transaction[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, Boolean, System.Func`2<LiteDB.CollectionPage,Int32>)
at LiteDB.LiteEngine.Insert(System.String, System.Collections.Generic.IEnumerable`1<LiteDB.BsonDocument>, LiteDB.BsonType)
at LiteDB.LiteEngine.Insert(System.String, LiteDB.BsonDocument, LiteDB.BsonType)
at LiteDB.LiteFileStream.WriteChunks()
at LiteDB.LiteFileStream.Flush()
at LiteDB.LiteFileStream.Dispose(Boolean)
还有以下内容
Faulting application name: Ssms.exe, version: 2019.150.18386.0, time stamp: 0x60e54ecb
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x03f493ae
Faulting process ID: 0x61d8
Faulting application start time: 0x01d7959a3013810d
Faulting application path: C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe
Faulting module path: unknown
Report ID: 80e0774c-ab69-472e-b26a-1ec055d65650
Faulting package full name:
Faulting package-relative application ID:
at LiteDB.LiteFileStream.Finalize()
我尝试重新安装 SSMS 几次,但没有任何变化。我还尝试了 MS 的 .NET 修复工具,但这并没有解决我的问题。
我在 StackExchange 和其他网站上搜索了这个问题的解决方案。我遇到过看似类似的问题,但没有遇到过涉及LiteDB.StreamExtensions
Application: Ssms.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
**at LiteDB.StreamExtensions**
我现在无法使用 SSMS,因为只要我开始输入语句它就会不断崩溃。
如果您有关于如何解决此问题的任何想法,我们将不胜感激。
谢谢