Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HRESULT: 0x80070057 (E_INVALIDARG)

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

    HRESULT: 0x80070057 (E_INVALIDARG)

    Hi,

    I have imported DT Range volume profile indicator successfully, but when I try to add the indicator on chart, actually as soon as I select the indicator (not even double clicked to add the indicator), NT8 crashes with HRESULT: 0x80070057 (E_INVALIDARG)

    I checked another thread with similar issue and I tried deleting config.xml from NT8 folder, but no success.

    Could you please let me know how do I resolve this issue?

    Thanks.

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

    You can do this by going to the Control Center-> Help-> Mail to Platform Support.
    Please reference the following in the email body: ATTN Ryan M

    Comment


      #3
      In my case it doesn't crash NT, just constantly spams this error in log/trace when OnRender event occurs.
      I can reproduce this: Draw.Text with SimpleFont that has 0 size. I know that's my mistake but maybe NT should have a bit more informative log output. idk

      Also trace:
      2023-04-07 10:59:10:780 ChartObject.Render.ERROR: Render exception on non finalized chart object 'NinjaTrader.NinjaScript.DrawingTools.Text' SharpDX.SharpDXException: HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: The parameter is incorrect.

      at SharpDX.Result.CheckError()
      at SharpDX.DirectWrite.Factory.CreateTextFormat(Strin g fontFamilyName, FontCollection fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, Single fontSize, String localeName, TextFormat textFormat)
      at NinjaTrader.Gui.Tools.SimpleFont.ToDirectWriteText Format()
      at NinjaTrader.NinjaScript.DrawingTools.Text.UpdateTe xtLayout(Single maxWidth) in c:\Users\Admin\Documents\NinjaTrader 8\bin\Custom\DrawingTools\@Text.cs:line 501
      at NinjaTrader.NinjaScript.DrawingTools.Text.OnRender (ChartControl chartControl, ChartScale chartScale) in c:\Users\Admin\Documents\NinjaTrader 8\bin\Custom\DrawingTools\@Text.cs:line 477
      at NinjaTrader.Gui.Chart.ChartObject.Render(RenderTar get renderTarget, ChartControl chartControl, ChartScale chartScale)





      Comment


        #4
        Hello Leeroy_Jenkins,

        Thanks for your note.

        Please send us your log and trace files to support[AT]ninjatrader.com so we may investigate this further. In the subject of your email include ATTN: Brandon H and in the body of the email include a link to this forum post.

        Follow the steps below to manually attach your log and trace files to your response so I may investigate this matter further.
        • Open your NinjaTrader folder under, "Documents" (sometimes called, "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.

        Also, send me a reduced copy of your script in the email so I may look into this on our end. Note that a reduced copy refers to a copy of the script that contains the minimum amount of code needed to reproduce the issue. All other code is commented out or removed.

        To create a copy of your script to modify, open a New > NinjaScript Editor, select your script, right-click in the Editor, select 'Save as', name the script, and click OK.​

        I look forward to assisting further.​
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        85 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        47 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        29 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        32 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        67 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X