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?



    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.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      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.
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by algospoke, Today, 06:40 PM
              0 responses
              10 views
              0 likes
              Last Post algospoke  
              Started by maybeimnotrader, Today, 05:46 PM
              0 responses
              8 views
              0 likes
              Last Post maybeimnotrader  
              Started by quantismo, Today, 05:13 PM
              0 responses
              7 views
              0 likes
              Last Post quantismo  
              Started by AttiM, 02-14-2024, 05:20 PM
              8 responses
              168 views
              0 likes
              Last Post jeronymite  
              Started by cre8able, Today, 04:22 PM
              0 responses
              10 views
              0 likes
              Last Post cre8able  
              Working...
              X