Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled exception while drawing line?

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

    Unhandled exception while drawing line?

    ​Hi I was wondering if anyone had issue like this, for some reason I am unable to draw at times - not all the time line as this popup will come up. It is standard line all im doing is pressing hotkey f2 to start drawing the line, clicking at specific candle high for example, but then this popup will not show until i press SHIFT key to keep it horizontal? Any clue how to fix it? Ive been clearing cache already, reinstalled NT8, no additional indicators are installed. And im not sure how to "debug" this error. Could someone suggest where I can see what is causing this error? Im sure NT has some sort of crash log with verbose to see and record all errors?

    Thanks in advance, SuperUserek.
    Click image for larger version

Name:	image.png
Views:	105
Size:	47.9 KB
ID:	1332595

    Another thing if I check Dashboard -> Log that is all i get (not much help at all to be fair - but I will post it anyway to have complete view of error messages) There is multiple errors due to several times I was trying to draw this line and make screenshot.
    Click image for larger version

Name:	image.png
Views:	72
Size:	27.7 KB
ID:	1332596

    #2
    Hello SuperUserek,


    Thank you for posting on the NinjaTrader forums.


    I'd like you to send your log and trace files for review to our Technical Support team for further assistance, please use the instructions below and send to clientservices@ninjatrader[dot]com.
    1. Press the "Windows Key + E" on your keyboard to open the Windows File Explorer.
    2. Go to Documents/NinjaTrader
    3. Left-click on the "log" folder to highlight it.
    4. Right-click and select "Compress to ZIP file"
    5. Repeat steps 3 and 4 with the "trace" folder
    6. Send these .zip files as attachments to your email response.


    Thank you in advance!​

    Comment


      #3
      Hi again, found log folder and zipped it like I said before doesnt show much there why this error has occurred, Ill zip Trace folder too and send it to You later on. Regards, SuperUserek.

      Code:
      2025-01-28 01:36:09:698 *************** unhandled exception trapped ***************
      2025-01-28 01:36:09:698 Object reference not set to an instance of an object.
      2025-01-28 01:36:09:699 System.NullReferenceException: Object reference not set to an instance of an object.
         at NinjaTrader.NinjaScript.DrawingTools.Line.Anchor45(ChartAnchor startAnchor, ChartAnchor endAnchor, ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale) in C:\Users\SuperUser\Documents\NinjaTrader 8\bin\Custom\DrawingTools\@Lines.cs:line 159
         at NinjaTrader.NinjaScript.DrawingTools.Line.OnMouseMove(ChartControl chartControl, ChartPanel chartPanel, ChartScale chartScale, ChartAnchor dataPoint) in C:\Users\SuperUser\Documents\NinjaTrader 8\bin\Custom\DrawingTools\@Lines.cs:line 542
         at NinjaTrader.NinjaScript.DrawingTools.Line.OnPreviewKeyDownUp(Object sender, KeyEventArgs e) in C:\Users\SuperUser\Documents\NinjaTrader 8\bin\Custom\DrawingTools\@Lines.cs:line 593
         at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
         at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
         at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
         at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
         at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
         at System.Windows.Input.InputManager.ProcessStagingArea()
         at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
         at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
         at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
         at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled)
         at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers)
         at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
      2025-01-28 01:39:07:914 (Simulation) Gui.ControlCenter.OnConnect​
      Found an issue. Looks like there is an issue with Lines.cs. Im quite sure its default.
      Attaching the file.
      Attached Files
      Last edited by SuperUserek; 01-29-2025, 02:23 AM.

      Comment


        #4
        SuperUserek,


        Thank you! Looking forward to assist further when received.

        Comment


          #5
          Hi Luis, just letting You know that I have cleaned Log and Trace folders first, then redone same thing, as:
          1. Pressing Keyboard HotKey F2 to start drawing the line.
          2. Clicking at low of the handle.
          3. Moved mouse slightly to the left, then held SHIFT key to make it horizontal.
          Then and only then Unhandled Exception message pops up.

          (Both Trace.zip and Log.zip files sent to customer services email - Case #05XXX713)

          Regards, SuperUserek.
          Last edited by SuperUserek; 01-30-2025, 09:58 AM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          65 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          41 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          23 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          26 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          52 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X