2015-11-03 231 views
0

我有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. ---&gt; System.IO.FileFormatException: Input file or data stream does not conform to the expected file format specification.&#x000D;&#x000A; at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32 hr)&#x000D;&#x000A; at MS.Internal.Text.TextInterface.Font.CreateFontFace()&#x000D;&#x000A; at MS.Internal.Text.TextInterface.Font.AddFontFaceToCache()&#x000D;&#x000A; at MS.Internal.Text.TextInterface.Font.GetFontFace()&#x000D;&#x000A; at System.Windows.Media.GlyphTypeface..ctor(Font font)&#x000D;&#x000A; at MS.Internal.FontFace.PhysicalFontFamily.GetGlyphTypeface(FontStyle style, FontWeight weight, FontStretch stretch)&#x000D;&#x000A; at MS.Internal.FontFace.PhysicalFontFamily.MS.Internal.FontFace.IFontFamily.GetTypefaceMetrics(FontStyle style, FontWeight weight, FontStretch stretch)&#x000D;&#x000A; at System.Windows.Media.Typeface.ConstructCachedTypeface()&#x000D;&#x000A; at System.Windows.Media.Typeface.get_CachedTypeface()&#x000D;&#x000A; at System.Windows.Media.Typeface.get_Symbol()&#x000D;&#x000A; at MS.Internal.TextFormatting.TextStore.FetchTextRun(Int32 cpFetch)&#x000D;&#x000A; at MS.Internal.TextFormatting.TextStore.FetchLSRun(Int32 lscpFetch, TextFormattingMode textFormattingMode, Boolean isSideways, Plsrun&amp; plsrun, Int32&amp; lsrunOffset, Int32&amp; lsrunLength)&#x000D;&#x000A; at MS.Internal.TextFormatting.LineServicesCallbacks.FetchRunRedefined(IntPtr pols, Int32 lscpFetch, Int32 fIsStyle, IntPtr pstyle, Char* pwchTextBuffer, Int32 cchTextBuffer, Int32&amp; fIsBufferUsed, Char*&amp; pwchText, Int32&amp; cchText, Int32&amp; fIsHidden, LsChp&amp; lschp, IntPtr&amp; lsplsrun)&#x000D;&#x000A; --- End of inner exception stack trace ---&#x000D;&#x000A; at MS.Internal.TextFormatting.TextMetrics.FullTextLine.FormatLine(FullTextState fullText, Int32 cpFirst, Int32 lineLength, Int32 formatWidth, Int32 finiteFormatWidth, Int32 paragraphWidth, LineFlags lineFlags, FormattedTextSymbols collapsingSymbol)&#x000D;&#x000A; at MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)&#x000D;&#x000A; at MS.Internal.TextFormatting.TextFormatterImp.FormatLine(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak)&#x000D;&#x000A; at System.Windows.Media.FormattedText.LineEnumerator.FormatLine(TextSource textSource, Int32 textSourcePosition, Double maxLineLength, TextParagraphProperties paraProps, TextLineBreak lineBreak)&#x000D;&#x000A; at System.Windows.Media.FormattedText.LineEnumerator.MoveNext()&#x000D;&#x000A; at System.Windows.Media.FormattedText.DrawAndCalculateMetrics(DrawingContext dc, Point drawingOffset, Boolean getBlackBoxMetrics)&#x000D;&#x000A; at System.Windows.Media.FormattedText.get_Metrics()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.TextFormatCache.UpdateTextHeight()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.TextFormatCache.EnsureInitialized()&#x000D;&#x000A; at Microsoft.VisualStudio.Language.Intellisense.Implementation.CodeLensInterLineAdornmentTaggerProvider.CodeLensInterLineAdornmentTagger.GetTags(NormalizedSnapshotSpanCollection spans)&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__38.MoveNext()</description> 
    </entry> 

我發現了一個問題。 CodeLens壞了。如果我關閉它,那麼它就可以工作。我如何修復CodeLens?字體問題(ActivityLog.txt顯示一些字體方法)?

+0

您的解決方案有沒有異常?字體,插件,DLL,擴展,...?它可能是任何東西。也許你也可以分享一些關於項目本身的東西:它是基於Web還是WPF,WinForms,...?一般來說更具體。 – hbulens

+0

我發現了一個問題。 CodeLens壞了。如果我關閉它,那麼它就可以工作。我如何修復CodeLens?字體問題(ActivityLog.txt顯示一些字體方法)? – aikidos

回答

0

我修復了CodeLens。我開始通過CCleaner檢查註冊表錯誤並修復所有錯誤。

0

我遇到過類似的問題。使用wpf程序,如果安裝了非法字體,請使用字體錯誤,當我們使用屬性框選擇字體時,會使用每種字體,所以會出現錯誤。

我發現,在環境問題:WPF

希望有人

  • WIN7 32(86)
  • .net4.5
  • 可以徹底解決。

+0

這根本不回答問題 – grovina

相關問題