Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8B11-Playback-MR - stuck in error loop

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

    NT8B11-Playback-MR - stuck in error loop

    I couldn't get a screen image... I was getting a ton of popups "Object reference not set to an instance of an object."

    I had run a replay with 15 second chart with SamplaMACrossover_OPU ( to try to reproduce OnPositionUpdate error with exception : http://ninjatrader.com/support/forum...ad.php?t=86010 )

    I got bored after 1 month as it was taking a while.

    So I slid the slider back and changed to 3 minute charts.

    It looked like it replayed the entire ES03-16 and ES06-16 and had finished. But then a ton of errors started happening out of no where. The trace file shows where it started going bad. It was stuck in a loop and piling on the error window message. I couldn't take a screen shot for paint. I managed to end task NT8.

    I sent the full log and trace files via the help command.



    2016-06-02 21:11:33:562 ERROR: Chart style 'Candlestick': Error on calling 'OnRender' method: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException( ExceptionResource resource) at System.Collections.Generic.List`1.Enumerator.MoveN extRare() at System.Linq.Enumerable.WhereEnumerableIterator`1.M oveNext() at NinjaTrader.NinjaScript.ChartStyles.ChartStyle.Ren derTrades(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars) at NinjaTrader.NinjaScript.ChartStyles.ChartStyle.Ren der(RenderTarget pRenderTarget, ChartControl chartControl, ChartScale chartScale, ChartBars chartBars)
    2016-06-02 21:11:33:562 ERROR: Indicator 'SMA': Error on calling 'OnRender' method on bar 0: Object reference not set to an instance of an object.
    2016-06-02 21:11:33:562 ERROR: Indicator 'SMA': Error on calling 'OnRender' method on bar 0: Object reference not set to an instance of an object.
    2016-06-02 21:11:33:597 (Playback Connection) Cbi.Account.PositionUpdateCallback: instrument='ES 06-16' account='Playback101' avgPrice=2050 quantity=1 marketPosition=Short operation=Add
    2016-06-02 21:11:33:598 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Object reference not set to an instance of an object.'
    2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=CashValue currency=UsDollar value=*****
    2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=GrossRealizedProfitLoss currency=UsDollar value=*****
    2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
    2016-06-02 21:11:33:600 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
    2016-06-02 21:11:34:202 Gui.Chart.ChartPanel.OnRender: System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth)
    at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars)
    at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
    at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars)
    at NinjaTrader.Gui.Chart.ChartControl.InitSlotsPainte d()
    at NinjaTrader.Gui.Chart.Direct2DForm.RenderInit()
    2016-06-02 21:11:34:203 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Object reference not set to an instance of an object.'
    2016-06-02 21:11:34:204 ERROR: Error in realtime market data handling: System.NullReferenceException: Object reference not set to an instance of an object. at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth) at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars) at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func) at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars) at NinjaTrader.Gui.Chart.ChartControl.GetSlotIndexByX (Int32 x) at NinjaTrader.Gui.Chart.ChartBars.GetBarIdxByXBarCen tered(ChartControl chartControl, Int32 x) at NinjaTrader.Gui.Chart.ChartControl.UpdateCurrentSl otOrTime() at NinjaTrader.Gui.Chart.ChartControl.UpdateFormDataB oxCrossHair() at NinjaTrader.Gui.Chart.ChartControl.OnRealtimeDataT imerTick(Object s, EventArgs e) at NinjaTrader.Cbi.Instrument.<>c__DisplayClass187_0. <OnRealtimeDataTimerElapsed>b__1(SubscribedThrea d[] threads, Int32 i, RealtimeEvents evts)
    2016-06-02 21:11:35:217 Gui.Chart.ChartPanel.OnRender: System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth)
    at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars)
    at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
    at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars)
    at NinjaTrader.Gui.Chart.ChartControl.InitSlotsPainte d()
    at NinjaTrader.Gui.Chart.Direct2DForm.RenderInit()
    2016-06-02 21:11:35:217 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Object reference not set to an instance of an object.'
    2016-06-02 21:11:36:151 NinjaScript.StrategyBase.ExitOnSessionCloseHandlin g: nextExitOnSessionClose='04/13/2016 16:59:30'
    Followed by a lot of these:

    2016-06-02 21:24:18:427 *************** unhandled exception trapped ***************
    2016-06-02 21:24:18:427 Object reference not set to an instance of an object.
    2016-06-02 21:24:18:427 System.NullReferenceException: Object reference not set to an instance of an object.
    at NinjaTrader.NinjaScript.ChartStyles.CandleStyle.Ge tBarPaintWidth(Int32 barWidth)
    at NinjaTrader.Gui.Chart.ChartControl.<>c.<GetBarPain tWidth>b__398_1(Double current, ChartBars bars)
    at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func)
    at NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(ChartBars chartBars)
    at NinjaTrader.Gui.Chart.ChartControl.GetSlotIndexByX (Int32 x)
    at NinjaTrader.Gui.Chart.ChartBars.GetBarIdxByXBarCen tered(ChartControl chartControl, Int32 x)
    at NinjaTrader.Gui.Chart.ChartControl.UpdateCurrentSl otOrTime()
    at NinjaTrader.Gui.Chart.ChartPanel.OnMouseMove(Objec t sender, MouseEventArgs 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.HwndMouseInputProvider.Repo rtInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
    at System.Windows.Interop.HwndMouseInputProvider.Filt erMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.InputFilterMessa ge(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation( Object o)
    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)
    Attached Files
    Last edited by sledge; 06-02-2016, 07:52 PM. Reason: added link to other error

    #2
    Yeah this is easily reproduce-able.

    I let Playback-M.R. complete on a 3 minute chart.
    Move the slider to the start (12-14-2015).
    Changed the charts to 5 minute.
    Re-ran replay.
    It completed the replay. yeah!

    I turned on my laptop screen which had timed out and was greeted with disaster again.

    nt was consuming 1.8 gig before I end tasked.. so it was definitely out of control.

    Comment


      #3
      Hello sledge,

      Thank you for your post.

      Is this occurring when playing back historical data and/or replay data?

      Comment


        #4
        Originally posted by NinjaTrader_PatrickH View Post
        Hello sledge,

        Thank you for your post.

        Is this occurring when playing back historical data and/or replay data?
        Replay data

        Comment


          #5
          Hello sledge,

          Thank you for your patience.

          I am seeing the same behavior in my testing. This has been reported to development.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,406 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          98 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          160 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          9 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X