Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

read locks error

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

    read locks error

    HI i am getting this error
    2023-11-28 10:58:31:609 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.​

    Where do i look to fix it in the strategy?

    2023-11-28 10:54:30:762 (Playback) Cbi.Account.PositionUpdateCallback: instrument='NQ 12-23' account='Playback101' avgPrice=15164.5 quantity=1 marketPosition=Long operation=Add
    2023-11-28 10:58:31:571 ERROR: Chart rendering failed. There is likely a problem with a chart object's OnRender method. D2D error = 'HRESULT: [0x88990001], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_WRONG_STATE/WrongState], Message: The object was not in the correct state to process the method. '
    2023-11-28 10:58:31:606 *************** unhandled exception trapped ***************
    2023-11-28 10:58:31:606 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.
    2023-11-28 10:58:31:609 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.Dispose()
    at NinjaTrader.Data.Bars.Dispose(Boolean disposing)
    at NinjaTrader.NinjaScript.NinjaScriptBase.SetState(S tate state)
    at NinjaTrader.Gui.NinjaScript.IndicatorRenderBase.Se tState(State state)
    at NinjaTrader.Gui.Chart.ChartControl.Cleanup()
    at NinjaTrader.Gui.Chart.ChartTab.Cleanup()
    at NinjaTrader.Gui.Tools.NTWindow.CleanTabs(TabContro l tabControl, Int32 idx)
    at NinjaTrader.Gui.Tools.NTWindow.OnClosed(EventArgs e)
    at System.Windows.Window.WmDestroy()
    at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.PublicHooksFilte rMessage(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)​

    #2
    Hello tkaboris,

    Thank you for your post.

    This error may or may not be caused by the strategy. Please email our support team from the platform to send your diagnostic files so we may try to isolate the potential cause. You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

    This error is also discussed in the following thread:
    I upgraded to from 8.0.26.1 to 8.0.27.1 a couple of days ago. My charts are freezing regularly, and when I close Ninjatrader I get the following error: ​ ​ ​I'm struggling to reproduce the issue and I've not been able to narrow it down to any specific indicator. Is there a known issue at the moment?


    We look forward to further investigating this item with you.​

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    66 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    141 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    76 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    47 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    51 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X