我有VS2015的一些問題:當我打開任何項目,並嘗試打開文件進行編輯 - VS2015崩潰。我嘗試重新安裝,所有/命令等等。Visual Studio 2015崩潰時在編輯器中打開任何文件
ActivityLog.xml:
<entry>
<record>430</record>
<time>2015/11/03 14:46:35.669</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.IO.FileFormatException: Input file or data stream does not conform to the expected file format specification. ---> System.IO.FileFormatException: Input file or data stream does not conform to the expected file format specification.
 at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)
 at MS.Internal.Text.TextInterface.Font.CreateFontFace()
 at MS.Internal.Text.TextInterface.Font.AddFontFaceToCache()
 at MS.Internal.Text.TextInterface.Font.GetFontFace()
 at System.Windows.Media.GlyphTypeface..ctor(Font font)
 at MS.Internal.FontFace.PhysicalFontFamily.GetGlyphTypeface(FontStyle style, FontWeight weight, FontStretch stretch)
 at MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.GetTypefaceMetrics(FontStyle style, FontWeight weight, FontStretch stretch)
 at System.Windows.Media.Typeface.ConstructCachedTypeface()
 at System.Windows.Media.Typeface.get_CachedTypeface()
 at System.Windows.Media.Typeface.get_Symbol()
 at MS.Internal.TextFormatting.TextStore.FetchTextRun(Int32 cpFetch)
 at MS.Internal.TextFormatting.TextStore.FetchLSRun(Int32 lscpFetch, TextFormattingMode textFormattingMode, Boolean isSideways, Plsrun& plsrun, Int32& lsrunOffset, Int32& lsrunLength)
 at MS.Internal.TextFormatting.LineServicesCallbacks.FetchRunRedefined(IntPtr pols, Int32 lscpFetch, Int32 fIsStyle, IntPtr pstyle, Char* pwchTextBuffer, Int32 cchTextBuffer, Int32& fIsBufferUsed, Char*& pwchText, Int32& cchText, Int32& fIsHidden, LsChp& lschp, IntPtr& lsplsrun)
 --- End of inner exception stack trace ---
 at MS.Internal.TextFormatting.TextMetrics.FullTextLine.FormatLine(FullTextState fullText, Int32 cpFirst, Int32 lineLength, Int32 formatWidth, Int32 finiteFormatWidth, Int32 paragraphWidth, LineFlags lineFlags, FormattedTextSymbols collapsingSymbol)
 at MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
 at MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak)
 at System.Windows.Media.FormattedText.LineEnumerator.FormatLine(TextSource textSource, Int32 textSourcePosition, Double maxLineLength, TextParagraphProperties paraProps, TextLineBreak lineBreak)
 at System.Windows.Media.FormattedText.LineEnumerator.MoveNext()
 at System.Windows.Media.FormattedText.DrawAndCalculateMetrics(DrawingContext dc, Point drawingOffset, Boolean getBlackBoxMetrics)
 at System.Windows.Media.FormattedText.get_Metrics()
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.TextFormatCache.UpdateTextHeight()
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.TextFormatCache.EnsureInitialized()
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.CodeLensInterLineAdornmentTagger.GetTags(NormalizedSnapshotSpanCollection spans)
 at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__38.MoveNext()</description>
</entry>
我發現了一個問題。 CodeLens壞了。如果我關閉它,那麼它就可以工作。我如何修復CodeLens?字體問題(ActivityLog.txt顯示一些字體方法)?
您的解決方案有沒有異常?字體,插件,DLL,擴展,...?它可能是任何東西。也許你也可以分享一些關於項目本身的東西:它是基於Web還是WPF,WinForms,...?一般來說更具體。 – hbulens
我發現了一個問題。 CodeLens壞了。如果我關閉它,那麼它就可以工作。我如何修復CodeLens?字體問題(ActivityLog.txt顯示一些字體方法)? – aikidos