Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Enable verbose debugging or way to see WHY NT8 crashes

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

    Enable verbose debugging or way to see WHY NT8 crashes

    I am developing a indicator but when I try to load a chart, it will just randomly crash. The only logging that is produced is in Windows Event Manager and it states that a portion of the .NET library crashed. Real helpful.

    Is there a way that I can actually see WHY and WHERE it is causing NT to crash or if it is something in NT? I have all of my computations surrounded in try/catch and it still produced nothing.

    #2
    Hello WHICKED,

    Thank you for your post.

    Have you tried debugging using Visual Studio?

    https://ninjatrader.com/support/help..._debugging.htm

    I'd recommend attaching the debugger and running the indicator to see if that shows more information regarding the crashing behavior.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      WHICKED What is the fault being logged? The Event Viewer will have this in the General section of the event.

      For example:
      Faulting module name: KERNELBASE.dll, version: 10.0.19041.1387, time stamp: 0x0b9a844a
      Exception code: 0xc0000602
      The faulting module and exception code can often provide clues as to what is happening.

      Thanks.

      Comment


        #4
        Originally posted by jeronymite View Post
        WHICKED What is the fault being logged? The Event Viewer will have this in the General section of the event.

        For example:


        The faulting module and exception code can often provide clues as to what is happening.

        Thanks.
        Code:
        Faulting application name: NinjaTrader.exe, version: 8.0.25.0, time stamp: 0x616d7974
        Faulting module name: clr.dll, version: 4.8.4420.0, time stamp: 0x6109cbc8
        Exception code: 0xc00000fd
        Fault offset: 0x0000000000003208
        Faulting process id: 0x337c
        Faulting application start time: 0x01d7e798687cbd6c
        Faulting application path: C:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.exe
        Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\cl r.dll
        Report Id: 2c7d9002-03a9-43c3-adc9-b23d09cc3fca
        Faulting package full name:
        Faulting package-relative application ID:

        Comment


          #5
          I also attached to the process. When it crashes, it only states the following:

          System.StackOverflowException
          HResult=0x800703E9
          Message=Exception of type 'System.StackOverflowException' was thrown.

          Comment


            #6
            Hello WHICKED,

            Thank you for your reply.

            Sometimes an infinite loop can cause a crash, and there may not be a good way to trap the infinite loop unless you identify where the loop/recursion is entered.

            You could use prints or StreamWriter to walk through parts of your code and leave a message until the crash happens, that can help identify where the crash originates from. You could also comment\uncomment code sections to narrow down where the crash may stem from.

            Please let us know if we may be of further assistance to you.




            Kate W.NinjaTrader Customer Service

            Comment


              #7
              WHICKED Having been through this loop () myself a few times, NinjaTrader_Kate is right to point you in that direction.

              I suggest you look at all relevant loop constructs for boundary and exit conditions to see if any may not be doing what you intended.

              You may find this thread useful: https://ninjatrader.com/support/foru...nd-while-loops

              Thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by slimcactus, Today, 10:26 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by Monares, Today, 10:49 AM
              3 responses
              17 views
              0 likes
              Last Post NinjaTrader_JustinD  
              Started by d122y, Today, 10:20 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_ChrisL  
              Started by trader3000a, Today, 06:41 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by trader3000a, Today, 09:23 AM
              5 responses
              20 views
              0 likes
              Last Post trader3000a  
              Working...
              X