I'm converting a fairly complex strategy over to NT8. I'm getting a crash of Ninja pretty often. Here is some relevant trace info. It doesn't look obvious to me what is the problem. It discusses a null object reference but look at where that has come from. And it is not handled properly as it crashes Ninja.
Any ideas?
Thanks,
saltminer
7-11-27 16:44:55:426 Object reference not set to an instance of an object.
2017-11-27 16:44:55:435 System.NullReferenceException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at MS.Internal.TextFormatting.LineServicesCallbacks.R emapLSRuns(IntPtr* plsplsruns, Int32 plsrunCount)
at MS.Internal.TextFormatting.LineServicesCallbacks.G etGlyphsRedefined(IntPtr pols, IntPtr* plsplsruns, Int32* pcchPlsrun, Int32 plsrunCount, Char* pwchText, Int32 cchText, LsTFlow textFlow, UInt16* puGlyphsBuffer, UInt32* piGlyphPropsBuffer, Int32 cgiGlyphBuffers, Int32& fIsGlyphBuffersUsed, UInt16* puClusterMap, UInt16* puCharProperties, Int32* pfCanGlyphAlone, Int32& glyphCount)
--- End of inner exception stack trace ---
at MS.Internal.TextFormatting.TextMetrics.FullTextLin e.FormatLine(FullTextState fullText, Int32 cpFirst, Int32 lineLength, Int32 formatWidth, Int32 finiteFormatWidth, Int32 paragraphWidth, LineFlags lineFlags, FormattedTextSymbols collapsingSymbol)
at MS.Internal.TextFormatting.TextMetrics.FullTextLin e..ctor(FormatSettings settings, Int32 cpFirst, Int32 lineLength, Int32 paragraphWidth, LineFlags lineFlags)
at MS.Internal.TextFormatting.TextFormatterImp.Format LineInternal(TextSource textSource, Int32 firstCharIndex, Int32 lineLength, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak, TextRunCache textRunCache)
at MS.Internal.TextFormatting.TextFormatterImp.Format Line(TextSource textSource, Int32 firstCharIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Text Formatting.TextViewLineLayoutGroupFactory.#6lc(ITe xtView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, TextRange #I, Double #hpi)
at #m3b.#b4b.#8lc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, TextRange #I, Double #hpi)
at #m3b.#b4b.#cmc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, Int32 #Oqc, Double #hpi, Double #Dzf, Double #Ezf, Boolean #ipi)
at #m3b.#c4b.#pmc(ITextView #N5b, ITagAggregator`1 #y9b, ITagAggregator`1 #z9b, Size #Gzf, TextPosition #d9b, Boolean #Hzf, Boolean #ipi)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.PerformViewLineLayout()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCa llback(Object arg)
at System.Windows.Media.MediaContext.FireInvokeOnRend erCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHan dlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHan dler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
Comment