Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled Exception Error when coding

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

    Unhandled Exception Error when coding

    Hello,

    I just updated to the newest version of Ninja and for some reason when I am coding in the Editor I keep getting this error and then my editor just breaks,

    "2025-01-26 22:43:02:881 Object reference not set to an instance of an object.
    2025-01-26 22:43:02:881 System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.Gui.NinjaScript.Editor.ActiproManager. FilteredCompletionProvider.IsFilteredCompletionIte m(ICompletionSession session, ICompletionItem item)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionFilter.Filter(I CompletionSession session, ICompletionItem item)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionSession.Dt8(Obj ect )
    at System.Windows.Data.ListCollectionView.PrepareLoca lArray()
    at System.Windows.Data.ListCollectionView.RefreshOver ride()
    at System.Windows.Data.CollectionView.RefreshInternal ()
    at System.Collections.Specialized.NotifyCollectionCha ngedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
    at System.Collections.ObjectModel.ObservableCollectio n`1.OnCollectionChanged(NotifyCollectionChangedEve ntArgs e)
    at ActiproSoftware.Windows.DeferrableObservableCollec tion`1.OnCollectionChanged(NotifyCollectionChanged EventArgs e)
    at ActiproSoftware.Windows.DeferrableObservableCollec tion`1.EndUpdate()
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionItemCollection. HP.Dispose(Boolean )
    at ActiproSoftware.Text.Utility.DisposableObject.Disp ose()
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionSession.SortIte ms(IComparer`1 comparer)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Inte lliPrompt.Implementation.CompletionSession.SortIte ms()
    at ActiproSoftware.Text.Languages.DotNet.Implementati on.DotNetCompletionProviderBase.OnSessionOpening(I CompletionSession session)
    at NinjaTrader.Gui.NinjaScript.Editor.ActiproManager. FilteredCompletionProvider.OnSessionOpening(ICompl etionSession session)
    at ActiproSoftware.Text.Languages.CSharp.Implementati on.CSharpCompletionProvider.RequestSession(IEditor View view, Boolean canCommitWithoutPopup)
    at ActiproSoftware.Text.Languages.CSharp.Implementati on.CSharpCompletionProvider.OnDocumentTextChanged( SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
    at ActiproSoftware.Text.Languages.CSharp.Implementati on.CSharpCompletionProvider.ActiproSoftware.Window s.Controls.SyntaxEditor.IEditorDocumentTextChangeE ventSink.NotifyDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.OnDocumentTextChanged(EditorSnapshotChang edEventArgs e)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.RaiseDocumentTextChangedEvent(EditorSnaps hotChangedEventArgs e)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.iSW(TextSnapshotChangedEventArgs )
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.ISE(Object , TextSnapshotChangedEventArgs )
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Synt axEditor.<>c.xJP(SyntaxEditor instance, Object source, TextSnapshotChangedEventArgs eventArgs)
    at ActiproSoftware.Text.Utility.WeakEventListener`2.O nEvent(Object source, TEventArgs eventArgs)
    at ActiproSoftware.Text.Implementation.TextDocumentBa se.OnTextChanged(TextSnapshotChangedEventArgs e)
    at ActiproSoftware.Text.Implementation.CodeDocument.O nTextChanged(TextSnapshotChangedEventArgs e)
    at ActiproSoftware.Text.Implementation.TextDocumentBa se.ApplyTextChange(TextChange textChange, Action`1 snapshotCreatedAction)
    at ActiproSoftware.Text.Implementation.TextChange.App ly()
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ReplaceSelectedText(ITextChangeT ype type, String text, IEditorViewTextChangeOptions options)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Edit Actions.TypingAction.Execute(IEditorView view)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ExecuteEditAction(IEditAction action)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.PerformTyping(String text)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.ProcessTyping(TextCompositionEve ntArgs e)
    at ActiproSoftware.Windows.Controls.SyntaxEditor.Prim itives.EditorView.OnTextInput(TextCompositionEvent Args 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.InputManager.ProcessInput(Inp utEventArgs input)
    at System.Windows.Input.TextCompositionManager.PostPr ocessInput(Object sender, ProcessInputEventArgs e)
    at System.Windows.Input.InputManager.RaiseProcessInpu tEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
    at System.Windows.Input.InputManager.ProcessStagingAr ea()
    at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
    at System.Windows.Input.TextCompositionManager.PostPr ocessInput(Object sender, ProcessInputEventArgs e)
    at System.Windows.Input.InputManager.RaiseProcessInpu tEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
    at System.Windows.Input.InputManager.ProcessStagingAr ea()
    at System.Windows.Input.InputManager.ProcessInput(Inp utEventArgs input)
    at System.Windows.Input.InputProviderSite.ReportInput (InputReport inputReport)
    at System.Windows.Interop.HwndKeyboardInputProvider.P rocessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    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)"

    This was found in my trace file. Not sure how to fix or what it means. Seems to be an issue with the Auto completion on the typing in the editor

    Thanks!


    #2
    Hello Vikuno1,

    I would suggest doing a clean install to make sure all the platform files were correctly installed.

    Use the following steps to do a clean install
    1. Exit NinjaTrader
    2. Use the windows add remove programs menu to uninstall NinjaTrader
    3. Check that the C:\Program Files\NinjaTrader 8 was removed, if not remove it
    4. Download the installer from https://account.ninjatrader.com/download
    5. Install the platform

    If that does not work use these steps to do a clean user folder
    1. Exit NinjaTrader
    2. Open the Documents folder
    3. Rename the NinjaTrader 8 folder to NinjaTrader 8 Old
    4. Download the installer from https://account.ninjatrader.com/download
    5. Install the platform, this will create a new user folder.
    6. Open the platform and import any of the items that you need

    Comment


      #3
      This was on a fresh install. Should I do another fresh install?

      Comment


        #4
        Hello Vikuno1,

        Yes, it may be that something did not get installed right. I would suggest to completely uninstall and remove the files and user folder and then reinstall.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        69 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        42 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        24 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        27 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X