Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unhandled exception. A write lock may not be acquired with a read lock held.

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

    Unhandled exception. A write lock may not be acquired with a read lock held.

    Hello, I'm running NT8 8.1.1.7 64-bit.

    I have two windows open. I have one chart open in each window.

    Both charts have the same instrument. Each chart is running different timeframes.

    After a while, one of the charts freezes up, but the other chart is still accessible.

    The only way to exit this situation is to kill the NT8 task.

    When I do that, I get the following popup message

    "Unhandled exception. A write lock may not be acquired with a 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 instead of the read lock."

    Have you seen this message before? Is this a known problem?​

    #2
    Hello SilverSurfer1,

    Thank you posting.

    This error occurs when there is a process NT is trying to complete, and a write lock is attempting to be performed while the same thread is in a read lock state.

    So I may look into this further please go to Help->Email Support and be sure to include Attn: Chris Jameson in the Subject line, a link to this thread in the body and a check in the box for "Log and trace files".

    Thanks in advance.

    Christopher J.NinjaTrader Customer Service

    Comment


      #3
      Hello Chris.

      I've sent the email.

      Regards,
      R. C.

      Comment


        #4
        Hi, Chris. Have you responded to this issue directly by email? If you have, I apologize for missing it. Could you post your response here? I'm still seeing this error condition. Thanks.

        Comment


          #5
          I'm tired of the two-year-old lock problem that freezes the charts.

          I have NT8 8.1.1.7 on a Windows Server 2012 VPS.

          I've moved over to a Windows Server 2022 with NT8 8.0.26.1 installed.

          That version is the last before the lock problems started.

          You can keep the latest releases.

          I'm only upgrading the NT platform once this lock problem has been fixed.​

          Comment


            #6
            Development has made changes within the latest release NinjaTrader Desktop version 8.1.3.0 addressing this error "Unhandled exception. A write lock may not be acquired with a read lock held." You may install the latest version at the link I have provided below. Keep in mind prior to installing the latest version please close NinjaTrader.Please let me know if you continue to see the same error with the latest version installed.
            Christopher J.NinjaTrader Customer Service

            Comment


              #7
              I will monitor the next three months of user response to 8.1.3.0. If the deadlock problem appears resolved, I'll give 8.1.3.0 a try.

              Comment


                #8
                I am encountering the same error with the same issues on version 8.1.3.1 (64-bit). Twice today. Any suggestions on how to resolve this?

                Comment


                  #9
                  Reach out to NT support. "Unhandled exception. A write lock may not be acquired with a 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 instead of the read lock."

                  Ask them if they have implemented an upgrade lock under NT 8.1.3.1.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  61 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  40 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  21 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  23 views
                  0 likes
                  Last Post TheRealMorford  
                  Started by Mindset, 02-28-2026, 06:16 AM
                  0 responses
                  51 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X