• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Resume after sleep chart error "Upgradeable lock may not be acquired..."

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

    Resume after sleep chart error "Upgradeable lock may not be acquired..."

    Hi! I'm getting some errors consistently after resuming the computer from sleep and reconnecting. I know which chart it is but I wish the error would indicate the context such as instrument/timeframe/indicator name(s) anyway if possible.


    2016-11-02 12:43:09:730|1|2|NT Continuum: Primary connection=Disconnecting, Price feed=Disconnecting
    2016-11-02 12:43:10:506|1|2|NT Continuum: Primary connection=Disconnected, Price feed=Disconnected
    2016-11-02 21:09:40:744|3|4|Unable to load server side config file: The remote name could not be resolved: 'license2.ninjatrader.com'
    2016-11-02 21:09:40:744|3|2|Connection lost to the NinjaTrader Information Server: is-us-003.ninjatrader.com
    2016-11-02 21:09:50:755|1|2|Using HDS (is-us-003.ninjatrader.com/31658)
    2016-11-02 21:09:50:968|1|2|Connection restored to the NinjaTrader Information Server: is-us-003.ninjatrader.com
    2016-11-02 21:10:24:993|1|2|NT Continuum: Primary connection=Connecting, Price feed=Connecting
    2016-11-02 21:10:33:917|1|2|NT Continuum: Primary connection=Connected, Price feed=Connected
    2016-11-02 21:10:34:768|1|2|Time to auto close position='12:00:00 AM', Enabled=False
    2016-11-02 21:10:34:768|1|2|Using HDS (hds-us-003.ninjatrader.com/31655)
    2016-11-02 21:10:41:727|3|16|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.'
    2016-11-02 21:10:42:166|3|16|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.'
    2016-11-02 21:10:42:177|3|16|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.'
    2016-11-02 21:10:42:177|3|16|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.'
    2016-11-02 21:10:42:178|3|16|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.'
    2016-11-02 21:10:42:178|3|16|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.'
    2016-11-02 21:26:23:258|3|16|Chart rendering to a software bitmap failed. There is likely a problem with a chart object's render method. D2D error = 'Upgradeable lock may not be acquired with read lock held.'
    2016-11-02 21:26:23:399|0|4|Unhandled exception: Object reference not set to an instance of an object.
    2016-11-02 21:26:23:406|3|16|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.'
    2016-11-02 21:26:23:410|3|4|There are no email share services defined. You need to define one and set "Default" to true for email to work.


    A dialog appears showing "Object reference not set to an instance of an object." then one of the charts stops working.

    Since the chart works fine for hours after a fresh startup, would you have any ideas what is it about either re-connecting or resuming from sleep that would cause such an issue? I always disconnect before I put it it in sleep.

    Thanks,
    Chris

    #2
    Hello crokusek,

    Please send an email to platformsupport [at] ninjatrader [dot] com with your log and trace files included as an attachment to the email, 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.



    Put 'Att Shawn', in the subject field and enable 'Log and trace files'. Also, give a reference of this thread in the body of the email.
    Shawn B.NinjaTrader Customer Service

    Comment


      #3
      I have never found Sleep mode to be reliable when using NT7 or 8. I will usually end up with some kind of error, missing chart data or whatever.

      Should this be a reliable mode of operation, or is it recommended to not use it?

      I am using Windows 10

      Comment


        #4
        Hi Shawn,

        After a few hours of debugging, I have luckily managed to isolate the issue by adding a small delay (sleep) to a built-in indicator SMA. Renamed to SMA_Test and it was included in the attachment to platform support as requested.

        Please start NT8, then open workspace BugTest9. Wait a bit for it to load completely, then connect to NT Continuum. Requires Tick and Trin indicies. Should not require computer to sleep to see the bug.

        Please let me know if you need anything else and how it goes.

        Thanks,
        Chris
        Last edited by crokusek; 11-06-2016, 11:48 PM.

        Comment


          #5
          Hi Shawn,

          For the test case and workspace (BugTest9) I sent to your attention, there is no need to sleep to see the bug. You should be able to follow the instructions of my previous using the SMA_Test indicator and the workspace I sent.

          It was quite tricky to locate the issue so I hope you can find some time to try it.

          Thanks,
          Chris


          In response to:

          Sent: Tuesday, November 08, 2016 10:38 AM
          Subject: Re: Support Request - Att Shawn (7D6E-9EEC-E22C-27F2-9912-54D4-6A67-81E3/8.0.0.14/Microsoft Windows NT 6.2.9200.0) {1599048}

          <snip>.
          At this time, the development team does not recommend allowing your PC to sleep or hibernate while NinjaTrader is in use. NinjaTrader will not function properly when your computer is allowed to sleep or hibernate.
          <snip>

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by xsgex, Yesterday, 09:46 PM
          0 responses
          2 views
          0 likes
          Last Post xsgex
          by xsgex
           
          Started by Steve L, Yesterday, 09:36 PM
          0 responses
          3 views
          0 likes
          Last Post Steve L
          by Steve L
           
          Started by krugman25, Yesterday, 09:34 PM
          0 responses
          4 views
          0 likes
          Last Post krugman25  
          Started by indy73, Yesterday, 04:42 PM
          0 responses
          15 views
          0 likes
          Last Post indy73
          by indy73
           
          Started by Italianforex, Yesterday, 06:20 AM
          2 responses
          13 views
          0 likes
          Last Post gplatis
          by gplatis
           
          Working...
          X