Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

LockRecursionException

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

    LockRecursionException

    I get this exception when connect to Simulated Datafeed. GC 04-19 10-sec


    Trace File (extract):

    2019-02-21 10:21:50:801 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Using args status=Disconnected
    2019-02-21 10:24:00:041 (Simulated Data Feed) Gui.ControlCenter.OnConnect
    2019-02-21 10:24:00:041 (Simulated Data Feed) Cbi.Connection.Connect0: status=Disconnected assembly=8.0.16.2 date=2019-02-21 runAsProcess=False
    2019-02-21 10:24:00:041 (Simulated Data Feed) Cbi.Connection.ConnectionStatusCallback: status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
    2019-02-21 10:24:00:041 (Simulated Data Feed) NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Simulator status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
    2019-02-21 10:24:00:041 (Simulated Data Feed) Cbi.Connection.Connect1
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Connection.Connect2
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Connection.Connect3
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Connection.CreateAccount: account='Sim101' displayName='Sim101' fcm='' denomination=UsDollar forexLotSize=10000
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Account.OnConnectionStatus: account='Sim101' fcm='' status=Connecting previousStatus=Disconnected message=''
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Account.OnConnectionStatus.PositionExecutions: account='Sim101'
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Connection.Connect4
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Connection.Connect5
    2019-02-21 10:24:00:042 (Simulated Data Feed) Adapter.SimulationAdapter.Connect: user='' mode=Live
    2019-02-21 10:24:00:042 (Simulated Data Feed) Cbi.Connection.ConnectionStatusCallback: status=Connected priceStatus=Connected previousStatus=Connecting previousPriceStatus=Connecting errorCode=NoError nativeError=''
    2019-02-21 10:24:00:043 (Simulated Data Feed) Cbi.Account.OnConnectionStatus: account='Sim101' fcm='' status=Connected previousStatus=Connecting message=''
    2019-02-21 10:24:00:043 (Simulated Data Feed) Cbi.Account.Restore.Start: account='Sim101' fcm=''
    2019-02-21 10:24:00:043 (Simulated Data Feed) NinjaTrader.Gui.ControlCenter.OnConnectionStatus.D ispatcherInvoke: Simulator status=Connecting priceStatus=Connecting previousStatus=Disconnected previousPriceStatus=Disconnected errorCode=NoError nativeError=''
    2019-02-21 10:24:00:043 (Simulated Data Feed) Gui.ControlCenter.OnConnectionStatus.Adding: provider=Simulator status=Connected priceStatus=Connected
    2019-02-21 10:24:00:043 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: foundPriceLoss=False foundTradeLoss=False foundConnectingStatus=False foundConnected=True
    2019-02-21 10:24:00:043 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Status=Connected
    2019-02-21 10:24:00:043 (Simulated Data Feed) Cbi.Account.Restore.End: account='Sim101' fcm=''
    2019-02-21 10:24:00:043 (Simulated Data Feed) Core.Connection.Statistics: connectAttempts=7/19.1ms
    2019-02-21 10:24:00:043 (Simulated Data Feed) Cbi.Connection.ConnectionStatusCallback: autoClosePositionTime='08/02/2018 00:00:00' autoClosePosition=False
    2019-02-21 10:24:00:043 Server.HdsClient.Connect: type=HDS server='hds-us-nt-001.ninjatrader.com' port=31655 system=''
    2019-02-21 10:24:00:044 (Simulated Data Feed) NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Simulator status=Connected priceStatus=Connected previousStatus=Connecting previousPriceStatus=Connecting errorCode=NoError nativeError=''
    2019-02-21 10:24:00:044 (Simulated Data Feed) Cbi.Connection.Connect9 ok
    2019-02-21 10:24:00:044 (Simulated Data Feed) NinjaTrader.Gui.ControlCenter.OnConnectionStatus.D ispatcherInvoke: Simulator status=Connected priceStatus=Connected previousStatus=Connecting previousPriceStatus=Connecting errorCode=NoError nativeError=''
    2019-02-21 10:24:00:044 (Simulated Data Feed) Gui.ControlCenter.OnConnectionStatus.Adding: provider=Simulator status=Connected priceStatus=Connected
    2019-02-21 10:24:00:044 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: foundPriceLoss=False foundTradeLoss=False foundConnectingStatus=False foundConnected=True
    2019-02-21 10:24:00:044 NinjaTrader.Gui.ControlCenter.OnConnectionStatus: Status=Connected
    2019-02-21 10:24:00:134 Cbi.Instrument.RequestBars (to Provider): instrument='GC 04-19' from='21/02/2019 10:00:00' to='21/02/2019 23:59:59' period='1 Tick'
    2019-02-21 10:24:17:722 Cbi.Instrument.RequestBars (to Provider): instrument='GC 04-19' from='21/02/2019 10:00:00' to='21/02/2019 23:59:59' period='1 Tick'
    2019-02-21 10:24:34:443 ERROR: Failed to call 'Add' method: System.Threading.LockRecursionException: Write lock may not be acquired with read lock held. This pattern is prone to deadlocks. Please ensure that read locks are released before taking a write lock. If an upgrade is necessary, use an upgrade lock in place of the read lock. at System.Threading.ReaderWriterLockSlim.TryEnterWrit eLockCore(TimeoutTracker timeout) at System.Threading.ReaderWriterLockSlim.TryEnterWrit eLock(TimeoutTracker timeout) at NinjaTrader.Data.BarsSeries.Add(Bars bars, Double open, Double high, Double low, Double close, DateTime time, Int64 volume, Double tickSize, Boolean isBar, Double bid, Double ask)

    #2
    Hello cls71 ,

    Thank you for your note.

    I would like to review the entirety of your Log and Trace files for further information regarding this error.

    Please follow the steps below to manually attach your log and trace files to an email to platformsupport[AT]ninjatrader[DOT]com with "ATTN CHRIS S 2085718" in the subject line so I may investigate this matter further.
    • Open your NinjaTrader folder under Documents.
    • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to this email.
    • Once complete, you can delete these compressed folders.

    I look forward to your reply.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by alifarahani, Today, 09:40 AM
    6 responses
    29 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    13 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Waxavi, Today, 02:00 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X