Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8B6-Unhandled exception:Collection was disposed,enumerator operations are not valid

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

    NT8B6-Unhandled exception:Collection was disposed,enumerator operations are not valid

    I upgraded to B6.

    Imported my latest data from NT7.

    Changed my strategy to test a new idea.

    Restarted NT.

    Connected to Playback.

    In Strategies tab - Added strategy to ES 03-14 through ES 06-15. Accidentally enabled ES 06-15 perhaps? Added ES09-15 and ES 12-15.

    So now I have only 1 enabled strategy and 7 others that are NOT.

    I selected ALL the strategies in the Strategies TAB. I then right clicked and selected ENABLED.

    And got the error.

    Restarted and tried again, but no luck. Will have to try re-adding all strategies again.

    trace:

    2015-10-30 21:46:48:731 Starting server(s)...
    2015-10-30 21:46:48:778 Core.Globals.ApplicationStart: Commission and margin version min=1 max=3
    2015-10-30 21:46:48:778 Core.Globals.ApplicationStart: Instrument list version min=-20 max=20
    2015-10-30 21:46:48:778 Core.Globals.ApplicationStart: Master instrument version min=1 max=2684
    2015-10-30 21:46:48:778 Core.Globals.ApplicationStart: Risk version min=1 max=8
    2015-10-30 21:46:48:778 Core.Globals.ApplicationStart: Trading hours version min=1 max=599
    SimulatedOrder=''
    2015-10-30 21:46:48:825 SuperDomHotKeys: Center='' Columns='' Indicators='' ReloadAllHistoricalData='Ctrl+Shift+R' ReloadNinjaScript='F5'
    2015-10-30 21:46:48:825 Order entry hot keys disabled
    2015-10-30 21:46:48:825 Auto closed enabled = False
    2015-10-30 21:46:49:839 Starting server message polling timer with interval 300 seconds...
    2015-10-30 21:46:52:934 *************** unhandled exception trapped ***************
    2015-10-30 21:46:52:934 Collection was disposed, enumerator operations are not valid.
    2015-10-30 21:46:52:945 System.InvalidOperationException: Collection was disposed, enumerator operations are not valid.
    at System.Windows.Controls.RowDefinitionCollection.En umerator.PrivateValidate()
    at System.Windows.Controls.RowDefinitionCollection.En umerator.MoveNext()
    at System.Windows.Controls.Grid.GridChildrenCollectio nEnumeratorSimple.MoveNext()
    at System.Windows.DescendentsWalker`1.WalkLogicalChil dren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
    at System.Windows.DescendentsWalker`1.WalkFrameworkEl ementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
    at System.Windows.DescendentsWalker`1.IterateChildren (DependencyObject d)
    at System.Windows.DescendentsWalker`1._VisitNode(Depe ndencyObject d, Boolean visitedViaVisualTree)
    at System.Windows.DescendentsWalker`1.WalkLogicalChil dren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
    at System.Windows.DescendentsWalker`1.WalkFrameworkEl ementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
    at System.Windows.DescendentsWalker`1.IterateChildren (DependencyObject d)
    at System.Windows.DescendentsWalker`1._VisitNode(Depe ndencyObject d, Boolean visitedViaVisualTree)
    at System.Windows.DescendentsWalker`1.WalkLogicalChil dren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
    at System.Windows.DescendentsWalker`1.WalkFrameworkEl ementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
    at System.Windows.DescendentsWalker`1.IterateChildren (DependencyObject d)
    at System.Windows.DescendentsWalker`1._VisitNode(Depe ndencyObject d, Boolean visitedViaVisualTree)
    at System.Windows.DescendentsWalker`1.WalkLogicalChil dren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
    at System.Windows.DescendentsWalker`1.WalkFrameworkEl ementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
    at System.Windows.DescendentsWalker`1.IterateChildren (DependencyObject d)
    at System.Windows.DescendentsWalker`1._VisitNode(Depe ndencyObject d, Boolean visitedViaVisualTree)
    at System.Windows.DescendentsWalker`1.WalkLogicalChil dren(FrameworkElement feParent, FrameworkContentElement fceParent, IEnumerator logicalChildren)
    at System.Windows.DescendentsWalker`1.WalkFrameworkEl ementLogicalThenVisualChildren(FrameworkElement feParent, Boolean hasLogicalChildren)
    at System.Windows.DescendentsWalker`1.IterateChildren (DependencyObject d)
    at System.Windows.DescendentsWalker`1.StartWalk(Depen dencyObject startNode, Boolean skipStartNode)
    at System.Windows.TreeWalkHelper.InvalidateOnInherita blePropertyChange(FrameworkElement fe, FrameworkContentElement fce, InheritablePropertyChangeInfo info, Boolean skipStartNode)
    at System.Windows.FrameworkElement.OnPropertyChanged( DependencyPropertyChangedEventArgs e)
    at System.Windows.DependencyObject.NotifyPropertyChan ge(DependencyPropertyChangedEventArgs args)
    at System.Windows.DependencyObject.UpdateEffectiveVal ue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
    at System.Windows.DependencyObject.SetValueCommon(Dep endencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
    at System.Windows.DependencyObject.SetValue(Dependenc yPropertyKey key, Object value)
    at System.Windows.Controls.Primitives.Selector.OnIsKe yboardFocusWithinChanged(DependencyPropertyChanged EventArgs e)
    at System.Windows.UIElement.RaiseIsKeyboardFocusWithi nChanged(DependencyPropertyChangedEventArgs args)
    at System.Windows.FocusWithinProperty.FireNotificatio ns(UIElement uie, ContentElement ce, UIElement3D uie3D, Boolean oldValue)
    at System.Windows.ReverseInheritProperty.FireProperty ChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
    at System.Windows.ReverseInheritProperty.OnOriginValu eChanged(DependencyObject oldOrigin, DependencyObject newOrigin, IList`1 otherOrigins, DeferredElementTreeState& oldTreeState, Action`2 originChangedAction)
    at System.Windows.ReverseInheritProperty.OnOriginValu eChanged(DependencyObject oldOrigin, DependencyObject newOrigin, DeferredElementTreeState& oldTreeState)
    at System.Windows.Input.KeyboardDevice.ChangeFocus(De pendencyObject focus, Int32 timestamp)
    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.Interop.HwndKeyboardInputProvider.R eportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey)
    at System.Windows.Interop.HwndKeyboardInputProvider.P ossiblyDeactivate(IntPtr hwndFocus)
    at System.Windows.Interop.HwndKeyboardInputProvider.F ilterMessage(IntPtr hwnd, WindowMessage message, 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 MS.Internal.Threading.ExceptionFilterHelper.TryCat chWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
    2015-10-30 21:47:02:346 ERROR: Strategy 'some_strategy0/54772257': Error in loading strategy from the database: System.IndexOutOfRangeException: Index was outside the bounds of the array. at NinjaTrader.NinjaScript.StrategyBase.DbFromCommand (IDbCommand cmd)
    2015-10-30 21:47:39:993 (Playback Connection) Gui.ControlCenter.OnConnect
    2015-10-30 21:47:40:013 (Playback Connection) Cbi.Connection.Connect0: status=Disconnected assembly=8.0.0.6 date=2015-10-30 runAsProcess=False
    2015-10-30 21:47:40:041 (Playback Connection) Cbi.Connection.ConnectionStatusCallback: status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
    2015-10-30 21:47:40:052 (Playback Connection) Cbi.Connection.Connect1
    2015-10-30 21:47:40:061 (Playback Connection) Cbi.Connection.Connect2
    2015-10-30 21:47:40:061 (Playback Connection) Cbi.Connection.Connect3
    2015-10-30 21:47:40:066 (Playback Connection) Cbi.Connection.CreateAccount: account='Playback101' displayName='Playback101' fcm='' denomination=UsDollar forexLotSize=10000
    2015-10-30 21:47:40:075 (Playback Connection) Cbi.Account.OnConnectionStatus: account='Playback101' status=Connecting previousStatus=Disconnected message=''
    2015-10-30 21:47:40:087 (Playback Connection) Cbi.Connection.Connect4
    2015-10-30 21:47:41:641 (Playback Connection) Cbi.Connection.Connect5
    2015-10-30 21:47:41:643 (Playback Connection) Adapter.PlaybackAdapter.Connect
    2015-10-30 21:47:41:644 (Playback Connection) Cbi.Connection.ConnectionStatusCallback: status=Connected priceStatus=Connected previousStatus=Connecting previousPriceStatus=Connecting errorCode=NoError nativeError=''
    2015-10-30 21:47:41:645 (Playback Connection) Cbi.Account.OnConnectionStatus: account='Playback101' status=Connected previousStatus=Connecting message=''
    2015-10-30 21:47:41:647 (Playback Connection) Core.Connection.Statistics: connectAttempts=0/5.9ms
    2015-10-30 21:47:41:647 (Playback Connection) Cbi.Connection.ConnectionStatusCallback: autoClosePositionTime='10/30/2015 00:00:00' autoClosePosition=False
    2015-10-30 21:47:41:709 (Playback Connection) Cbi.Connection.Connect9 ok
    Attached Files

    #2
    Hello sledge,

    Thank you for informing us of this behavior. We will investigate this further and update this thread as soon as possible.

    Thank you for your continued patience in the meantime.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      I tried again from after a restart, redoing what I thought I had done to cause this.

      Add 6 of the same strategy from ES 03-14 to ES 06-15, Enabled ES 06-15, Add ES09-15,ES12-15,
      then selected all strategies and right click for enable, enabled them all.. no error.

      Comment


        #4
        Hello sledge,

        Thanks for your post.

        Please do update if you can create a repeatable condition.
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cre8able, 02-11-2023, 05:43 PM
        3 responses
        236 views
        0 likes
        Last Post rhubear
        by rhubear
         
        Started by frslvr, 04-11-2024, 07:26 AM
        8 responses
        113 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        10 responses
        46 views
        0 likes
        Last Post stafe
        by stafe
         
        Started by rocketman7, Today, 09:41 AM
        3 responses
        11 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by traderqz, Today, 09:44 AM
        2 responses
        10 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Working...
        X