Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple crashes per day during development in VS

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

    #16
    I'm experiencing crashes while compiling or backtesting custom scripts within NT 8.
    I also managed to cause NT 8 to crash by testing the Sample MA Cross strategy.
    It took 100+ backtest, I stopped counting. But eventually NT 8 stopped working.

    I think there's a buildup of something which eventually causes NT to crash.

    Comment


      #17
      Any progress? Can you confirm you can reproduce this issue on your side?
      It can be easily done in a few minutes and it is reproducible each time.

      Comment


        #18
        Hello misova,

        So far, I have not been able to cause the crash.

        I am making small changes and recompiling and doing this as quickly as the compile is able to be triggered, to see if I am able to run out of memory. I am testing with a virtual machine that has the memory limited to 2GB.

        What I am finding is that when compiling (or saving so that the compile is triggered), the memory does increase a small amount as expected (the files themselves have to be pulled into memory to be able to be read and compiled). However, after these are compiled a short time later the .NET garbage collector cleans this up and the memory drops back down. I am unable to trigger the compile quick enough to run out of memory before the .NET garbage collector frees the memory.

        I've been able to do about 40 compiles in a row without any crash. However, this is time consuming. So I am only able to test this as resources allow. I am continuing to test for the issue and I will let you know what I find.

        As you were testing with a clean NinjaTrader 8 settings folder and you have no custom scripts in NinjaTrader at all, this would mean that a custom script would not be the cause the behavior and I will need to continue testing with a clean installation.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          Hi ChelseaB,

          that corresponds with my results too.
          I did 80 compilations and it increased memory by 100 MB. I can confirm also, I saw the same GC - it frees some memory sometimes, but despite GC, memory grows overally = more memory is allocated, than made free by GC.

          You did 40 compilations and logically, this is not enough to achieve crash on clean NT8 - about thousand compilations would be needed on clean NT8, to get to the crash.

          In my own workspace, it crashes until 50 compilations. It is so easy to reproduce.
          You just need more custom scripts, to see the effect faster.
          Last edited by misova; 12-06-2016, 05:40 AM.

          Comment


            #20
            Hello misova,

            I have received your email in our platform support email address and I will continue communicating with you through email.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            23 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            120 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            63 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            45 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X