Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

unhandled exception: the calling thread cannot access this object because a different

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

    unhandled exception: the calling thread cannot access this object because a different

    Hello,

    Update: if I choose connect on startup for the playback connection, it doesn't crash, and I can switch to live connection without crashing. But if I switch back to playback, it crashes again.

    NT8 opens to live data just fine. But when I disconnect live connection and connect playback, it crashes and show the error in the tittle of this post.
    I tried to connect to playback with a empty workspace, same thing happens.
    I have also tried to use safe mode, which doesn't crash, but I can't open my workspace.

    Here are the trace files.

    Code:
    2017-02-18 10:19:33:220 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=LongStockValue currency=UsDollar value=*****
    2017-02-18 10:19:33:220 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=MaintenanceMargin currency=UsDollar value=*****
    2017-02-18 10:19:33:220 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=NetLiquidationByCurrency currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=PositionMargin currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=ShortOptionValue currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=ShortStockValue currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=SodCashValue currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=SodLiquidatingValue currency=UsDollar value=*****
    2017-02-18 10:19:33:221 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=TotalCashBalance currency=UsDollar value=*****
    2017-02-18 10:19:33:236 *************** unhandled exception trapped ***************
    2017-02-18 10:19:33:236 The calling thread cannot access this object because a different thread owns it.
    2017-02-18 10:19:33:236 System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
       at System.Windows.Threading.Dispatcher.VerifyAccess()
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at NinjaTrader.Gui.Chart.ChartPanel.HideFixedButton(ScaleJustification scaleJustification)
       at NinjaTrader.Gui.Chart.ChartScale.<>c__DisplayClass33_0.<.ctor>b__0(Object s, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
       at System.Collections.ObjectModel.Collection`1.Remove(T item)
       at NinjaTrader.Gui.Chart.ChartControl.OnPlaybackAdapterReset(Object sender, EventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at NinjaTrader.Adapter.PlaybackAdapter.<>c.<Reset>b__81_3(Object o)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
    2017-02-18 10:19:33:252 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Upgradeable lock may not be acquired with read lock held.'
    2017-02-18 10:19:33:292 Cbi.Instrument.RequestBars (to Provider): instrument='ES 03-05' from='11/30/2004 12:00:00 AM' to='12/12/2004 12:00:00 AM' period='Daily'
    2017-02-18 10:19:33:573 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'Upgradeable lock may not be acquired with read lock held.'
    2017-02-18 10:19:33:581 Cbi.Instrument.RequestBars (to Provider): instrument='ES 03-05' from='11/30/2004 12:00:00 AM' to='12/12/2004 12:00:00 AM' period='Daily'
    Code:
    2017-02-18 10:17:13:643 (Playback Connection) Cbi.Connection.Connect9 ok
    2017-02-18 10:17:14:247 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=BuyingPower currency=UsDollar value=*****
    2017-02-18 10:17:14:247 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=CashValue currency=UsDollar value=*****
    2017-02-18 10:17:14:247 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=Commission currency=UsDollar value=*****
    2017-02-18 10:17:14:247 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=Fee currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=GrossRealizedProfitLoss currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=InitialMargin currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=IntradayMargin currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=LongOptionValue currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=LookAheadMaintenanceMargin currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=LongStockValue currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=MaintenanceMargin currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=NetLiquidationByCurrency currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=PositionMargin currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=RealizedProfitLoss currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=ShortOptionValue currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=ShortStockValue currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=SodCashValue currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=SodLiquidatingValue currency=UsDollar value=*****
    2017-02-18 10:17:14:248 (Playback Connection) Cbi.Account.AccountItemCallback: account='Playback101' accountItem=TotalCashBalance currency=UsDollar value=*****
    2017-02-18 10:17:14:270 *************** unhandled exception trapped ***************
    2017-02-18 10:17:14:270 The calling thread cannot access this object because a different thread owns it.
    2017-02-18 10:17:14:270 System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
       at System.Windows.Threading.Dispatcher.VerifyAccess()
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at NinjaTrader.Gui.Chart.ChartPanel.HideFixedButton(ScaleJustification scaleJustification)
       at NinjaTrader.Gui.Chart.ChartScale.<>c__DisplayClass33_0.<.ctor>b__0(Object s, NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
       at System.Collections.ObjectModel.ObservableCollection`1.RemoveItem(Int32 index)
       at System.Collections.ObjectModel.Collection`1.Remove(T item)
       at NinjaTrader.Gui.Chart.ChartControl.OnPlaybackAdapterReset(Object sender, EventArgs e)
       at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
       at NinjaTrader.Adapter.PlaybackAdapter.<>c.<Reset>b__81_3(Object o)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
    2017-02-18 10:17:14:285 Cbi.Instrument.RequestBars (to Provider): instrument='ES 03-05' from='11/30/2004 12:00:00 AM' to='12/12/2004 12:00:00 AM' period='Daily'
    Last edited by emoryhu; 02-18-2017, 10:07 AM.

    #2
    Hello emoryhu,

    So that we may request further information 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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Johnny Santiago, 10-11-2019, 09:21 AM
    95 responses
    6,193 views
    0 likes
    Last Post xiinteractive  
    Started by xiinteractive, 04-09-2024, 08:08 AM
    2 responses
    11 views
    0 likes
    Last Post xiinteractive  
    Started by Irukandji, Today, 09:34 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by RubenCazorla, Today, 09:07 AM
    1 response
    5 views
    0 likes
    Last Post RubenCazorla  
    Started by TraderBCL, Today, 04:38 AM
    3 responses
    25 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X