Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exception into NinjaScript Editor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Exception into NinjaScript Editor

    While I am writing code in the NinjaScript Editor, these exceptions are suddenly thrown. Copy and paste the extract from the trace file. Version NT 8.0.8.0

    2017-08-01 10:39:16:404 *************** unhandled exception trapped ***************
    2017-08-01 10:39:16:404 Object reference not set to an instance of an object.
    2017-08-01 10:39:16:404 *************** unhandled exception trapped ***************
    2017-08-01 10:39:16:404 Object reference not set to an instance of an object.
    2017-08-01 10:39:16:406 System.NullReferenceException: Object reference not set to an instance of an object.
    at MS.Internal.TextFormatting.TextMetrics.FullTextLin e.DrawTextLine(DrawingContext drawingContext, Point origin, MatrixTransform antiInversion)
    at MS.Internal.TextFormatting.TextMetrics.FullTextLin e.Draw(DrawingContext drawingContext, Point origin, InvertAxes inversion)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Text Formatting.TextViewLineLayout.#p3b.#2hc(ITextView #N5b, Rect #adc)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Text Formatting.TextViewLineLayout.#2hc(ITextView #N5b, Rect #adc)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.RenderLines()
    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)
    2017-08-01 10:39:16:406 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.S etChpFormat(TextRunProperties runProp, LsChp& lschp)
    at MS.Internal.TextFormatting.LineServicesCallbacks.F etchRunRedefined(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.FullTextLin e.FormatLine(FullTextState fullText, Int32 cpFirst, Int32 lineLength, Int32 formatWidth, Int32 finiteFormatWidth, Int32 paragraphWidth, LineFlags lineFlags, FormattedTextSymbols collapsingSymbol)
    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.OnViewLineLayoutManagerLayoutReq uired(Object sender, EventArgs e)
    at #m3b.#c4b.#Ekc(ITextSnapshot #I7b, ITextChange #g7b)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Impl ementation.EditorViewManager.#Jaj.#ugj(Object #axf)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Impl ementation.EditorViewManager.NotifyDocumentTextCha nged(TextSnapshotChangedEventArgs #yhb)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.OnDocumentTextChanged(Object sender, TextSnapshotChangedEventArgs e)
    at ActiproSoftware.Text.Implementation.TextDocumentBa se.OnTextChanged(TextSnapshotChangedEventArgs e)
    at ActiproSoftware.Text.Implementation.TextDocumentBa se.#O7c(#g7b #g7b)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.BasicReplaceSelectedText(ITextCh angeType type, String text, IEditorViewTextChangeOptions options)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ExecuteEditAction(IEditAction action)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Impl ementation.EditActionBase.#Bfc(Object #xhb, ExecutedRoutedEventArgs #yhb)
    at System.Windows.Input.CommandBinding.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
    at System.Windows.Input.CommandManager.ExecuteCommand Binding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
    at System.Windows.Input.CommandManager.FindCommandBin ding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
    at System.Windows.Input.CommandManager.FindCommandBin ding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
    at System.Windows.Input.CommandManager.OnExecuted(Obj ect sender, ExecutedRoutedEventArgs e)
    at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
    at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
    at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
    at System.Windows.Input.RoutedCommand.ExecuteImpl(Obj ect parameter, IInputElement target, Boolean userInitiated)
    at System.Windows.Input.CommandManager.TranslateInput (IInputElement targetElement, InputEventArgs inputEventArgs)
    at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
    at System.Windows.RoutedEventArgs.InvokeHandler(Deleg ate handler, Object target)
    at System.Windows.RoutedEventHandlerInfo.InvokeHandle r(Object target, RoutedEventArgs routedEventArgs)
    at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.UIElement.RaiseTrustedEvent(RoutedE ventArgs args)
    at System.Windows.Input.InputManager.ProcessStagingAr ea()
    at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
    at System.Windows.Interop.HwndKeyboardInputProvider.P rocessKeyAction(MSG& msg, Boolean& handled)
    at System.Windows.Interop.HwndSource.CriticalTranslat eAccelerator(MSG& msg, ModifierKeys modifiers)
    at System.Windows.Interop.HwndSource.OnPreprocessMess age(Object param)
    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)

    #2
    Hello cls71,

    Please send an email to platformsupport [at] ninjatrader [dot] com. In the email please include a link to this forum thread.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea

      I already sent you the trace file.

      Every day I still have these exceptions several times as I write code - both in the Ninjascript editor and VisualStudio 2015 - that cause NT 8.0.8.0 shutdown.

      Comment


        #4
        Hello cls71,

        Thank you for your response.

        Based on the excerpt you provided from the trace file, I would suggest a repair of the installation. The ActiPro items listed in the exception would suggest ActiPro needs to be reinstalled, which is performed when NinjaTrader installed.

        Please follow the steps listed below to completely uninstall and reinstall NinjaTrader.
        • Close all running applications.
        • Uninstall NinjaTrader within Windows Control Panel.
        • Reboot your machine.
        • Once these steps are completed, download and install NT8 from the link below.
        • http://ninjatrader.com/PlatformDirect

        Please let me know if the exceptions occur and if so please send us your full log and trace files.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by judysamnt7, 03-13-2023, 09:11 AM
        4 responses
        57 views
        0 likes
        Last Post DynamicTest  
        Started by ScottWalsh, Today, 06:52 PM
        4 responses
        36 views
        0 likes
        Last Post ScottWalsh  
        Started by olisav57, Today, 07:39 PM
        0 responses
        7 views
        0 likes
        Last Post olisav57  
        Started by trilliantrader, Today, 03:01 PM
        2 responses
        19 views
        0 likes
        Last Post helpwanted  
        Started by cre8able, Today, 07:24 PM
        0 responses
        9 views
        0 likes
        Last Post cre8able  
        Working...
        X