• 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

HRESULT: 0x88990006 Module SharpDX.Direct2D1 D2ERR_DISPLAY_STATE_INVALID

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

    HRESULT: 0x88990006 Module SharpDX.Direct2D1 D2ERR_DISPLAY_STATE_INVALID

    Win10 64 bit pro, latest updates, probably a system burp.

    Connected to Market Replay and let machine sit - left machine on to get announcement popups to let them stack up and see what happens.

    I was also making a video in Pinacle Studio 21. I'm not sure if that interfered in some way. So display was on the whole time.


    2017-12-12 21:33:30:305|1|2|Playback Connection: Primary connection=Connecting, Price feed=Connecting
    2017-12-12 21:33:31:781|1|2|Playback Connection: Primary connection=Connected, Price feed=Connected
    2017-12-12 21:33:31:787|1|2|Time to auto close position='12:00:00 AM', Enabled=False
    2017-12-12 21:33:32:194|1|2|Simulation account 'Playback101' reset

    2017-12-13 09:33:19:458 Server.HdsClient.Connect: type=IS server='is-us-001.ninjatrader.com' port=31658 system='NT'
    2017-12-13 09:34:24:857 ERROR: Unable to load server side config file: The operation has timed out
    2017-12-13 10:33:19:460 Server.HdsClient.Connect: type=IS server='is-us-001.ninjatrader.com' port=31658 system='NT'
    2017-12-13 10:48:30:289 Loss of DirectX device detected. Attempting to recreate...
    2017-12-13 10:48:30:317 Successfully recreated DirectX device. Device Type: Hardware
    2017-12-13 10:48:30:368 Loss of DirectX device detected. Attempting to recreate...
    2017-12-13 10:48:30:503 Successfully recreated DirectX device. Device Type: Hardware

    2017-12-13 11:33:19:461 Server.HdsClient.Connect: type=IS server='is-us-001.ninjatrader.com' port=31658 system='NT'
    Code:
    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.
    
    ************** Exception Text **************
    SharpDX.SharpDXException: HRESULT: [0x88990006], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_DISPLAY_STATE_INVALID/DisplayStateInvalid], Message: A valid display state could not be determined.
    
       at SharpDX.Result.CheckError()
       at SharpDX.Direct2D1.WindowRenderTarget.Resize(Size2 ixelSizeRef)
       at NinjaTrader.Gui.Chart.Direct2DForm.OnResize(EventArgs e)
       at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
       at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
       at System.Windows.Forms.Control.UpdateBounds()
       at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Form.WndProc(Message& m)
       at NinjaTrader.Gui.Chart.Direct2DForm.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    Attached Files

    #2
    Hello,

    Thank you for posting.

    I'm happy to check into this with you if you would please email us at PlatformSupport [AT] NinjaTrader [DOT] com. In your message please include a link to this forum thread and a copy of today's trace files. You will find these diagnostic files in the Documents > NinjaTrader 8 > Trace folder. I will need to review a copy of the files which are named 'trace.20171213.XXXXX.txt'. There will likely be multiple files for each day.
    Drew O.NinjaTrader Customer Service

    Comment


      #3
      Nope. Sorry.

      All pertinent information is posted other than my NT Version. It does look like I'm on 8.0.9.0

      I doubt anyone will have any reproduceability with this issue anyways..but just in case 0x88990006 starts to show up, people will find it.

      2017-12-11 19:32:59:961|2|4|Session Break (Version 8.0.9.0)
      2017-12-11 19:33:01:347|1|4|Verifying license at primary server...
      2017-12-11 19:33:01:614|1|4|Type=Simulation State=Verified Start Date=12/31/2004 End Date=11/30/2099
      2017-12-11 19:33:02:812|1|4|Global simulation mode enabled
      2017-12-11 19:33:04:327|1|2|Using IS (is-us-001.ninjatrader.com/31658)
      2017-12-11 19:33:04:347|1|4|Automated trading disabled
      2017-12-11 19:33:04:413|1|32|Order entry hot keys disabled
      2017-12-11 19:33:04:413|1|4|Auto close enabled=False
      2017-12-11 19:33:05:825|1|4|Restoring workspace 'NT8030'...

      p.s. My Intel graphics drivers are under 2 months old, so I doubt anything has changed that would cause such an issue recently...although windows did install some stupid update.

      I'm on win 10 pro version 1709 / os build 16299.64.

      Comment


        #4
        Hello Slege,
        Can you confirm that no items such as hibernate/sleep mode are active on your PC during this time?
        you can check the following items to confirm:
        Windows start menu > Settings > power and sleep settings
        Change all options to 'never'
        Additional power settings > Change plan settings
        Change all options to 'never'
        Change advanced power settings > PCI Express -> Link State Power Management -> On battery: off -> Plugged in : off
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_RyanM View Post
          Hello Slege,
          Can you confirm that no items such as hibernate/sleep mode are active on your PC during this time?
          Yes, I can confirm no hibernate/sleep enabled.

          I did notice something.


          This user also had the same 0x88990006 error:
          https://ninjatrader.com/support/foru...ght=0x88990006

          I can't prove it entirely yet - but I suspect Windows10 updated my Intel Video driver while NT8 was running, which caused the crash.

          I had problems later that night on external monitor with mini displayport connection when viewing photos - the color depth was lacking. I figured I needed a reboot.

          Well next day - I finally reboot and tried the photos viewing again - color depth lacking again. Switch to HDMI - fine. Verified monitor wasn't bad with another laptop. Was able to duplicate mini display port issue with another monitor.

          I finally decided to try to roll back the Intel video driver back to summer 2017. 32 bit Color depth has returned on external monitor.

          I'm sort of swamped at the moment - but when I get a chance I'll try to run NT8, update the driver and see if it happens. I might have to do it multiple times.

          Comment


            #6
            Regarding the multiple pop-ups for the same item which you reported in your original post, this has been addressed in NTEIGHT-12331 and should no longer occur once that fix makes it into a release.
            Patrick G.NinjaTrader Customer Service

            Comment


              #7
              I have similar issue sometimes when I open a workspace. One pop up for any chart as soon as it appears on the monitor

              Click image for larger version

Name:	2018-02-18 08_25_34-Program Manager.png
Views:	1
Size:	33.2 KB
ID:	886230

              Details.txt

              What can I do?

              Win7 64 bit and Ninja 8.0.12.0
              Last edited by BMM73; 02-18-2018, 01:53 AM.

              Comment


                #8
                Hello BMM73,
                Please send me your log and trace files so that I may look into what occurred to platformsupport[at]ninjatrader[dot]com.

                - Open your NinjaTrader folder under My 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.

                Within the body of the email please add:
                ATTN RyanM
                https://ninjatrader.com/support/foru...d.php?t=106502
                Ryan M.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by CopyPasteGhost, Today, 11:22 AM
                0 responses
                1 view
                0 likes
                Last Post CopyPasteGhost  
                Started by 1001111, Today, 10:23 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_PaulG  
                Started by NinjaCustomer, Today, 11:07 AM
                0 responses
                4 views
                0 likes
                Last Post NinjaCustomer  
                Started by NtFan, Today, 10:47 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by dmking, Today, 10:55 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_ChrisL  
                Working...
                X