NexusFi: Find Your Edge


Home Menu

 





Heap corrupt in NT 7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one rleplae with 15 posts (7 thanks)
    2. looks_two sam028 with 4 posts (0 thanks)
    3. looks_3 Rory with 3 posts (0 thanks)
    4. looks_4 UpsideDown with 1 posts (0 thanks)
    1. trending_up 6,384 views
    2. thumb_up 7 thanks given
    3. group 4 followers
    1. forum 22 posts
    2. attach_file 3 attachments




 
Search this Thread

Heap corrupt in NT 7

  #1 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

I'm struggling with a heap corruption in N 7.0
This only seems to happen in the night time and happens when an order is created through ATI.
A pop-up window appears, this application (N 7.0) has stopped working

Anybody any clue ?

Faulting application name: NinjaTrader.exe, version: 7.0.1000.31, time stamp: 0x56b21a0c
Faulting module name: ntdll.dll, version: 10.0.10586.306, time stamp: 0x571af2eb
Exception code: 0xc0000374
Fault offset: 0x00000000000ee6fc
Faulting process ID: 0x2cb90
Faulting application start time: 0x01d1bafdaf1bd7f3
Faulting application path: C:\Program Files (x86)\NinjaTrader 7\bin64\NinjaTrader.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report ID: 8116503f-1088-4411-a419-ef31b8421f2b
Faulting package full name:
Faulting package-relative application ID:

I will try to run NT without any workspaces open and do the same test and try to see if the problem persists or goes away.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
ZombieSqueeze
Platforms and Indicators
Are there any eval firms that allow you to sink to your …
Traders Hideout
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
60 thanks
Funded Trader platforms
43 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863

Support advices a re-install :

Quoting 
If the operating system is seeing the path to ntdll.dll as faulty it would be a good idea to correct that with a repair of the installation. Please follow the instructions below.
Close all running applications.
Uninstall NinjaTrader within Windows Control Panel.
Go to Documents\NinjaTrader 7\ > rename the 'Config.xml file to 'Prev.Config.xml'
Then you will need to clear your internet browser cache and history. You will clear this from within your internet browser (with IE, Tools-->Options, delete cookies and files, clear history).
Reboot your machine.
Once these steps are completed, download NT7 from the link below.
NinjaTrader Direct Download
Install NinjaTrader 7 and then start up NinjaTrader. It will start up without your configuration, this is intended to ensure all paths are correct in the installation.
Once NinjaTrader is fully started, shut it down. Then go to Documents\NinjaTrader 7\ > delete 'Config.xml' > rename 'Prev.Config.xml' to 'Config.xml'.
Start NinjaTrader.
Test the same scenarios you have previously with the AT interface submitting the orders. Let me know if the message is seen again and send over the Log and Trace with the message if it does occur after following the instructions above.


Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #3 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Unfortunately the problem stays the same :





Painful to have my platform crashing when I fire a few orders to the market...

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #4 (permalink)
Rory
 
Posts: 2,743 since May 2014
Thanks Given: 5,444
Thanks Received: 8,140


rleplae View Post
Unfortunately the problem stays the same :





Painful to have my platform crashing when I fire a few orders to the market...

Have you checked that there is no corruption in NTDLL in the syswow64 and/or system32?

I have fixed other apps by replacing this. Registry issues can also cause the problem but first I would CRC check the NTDLLs against identical versions (will be found in CAB files on a Windows search). Even failed virus attack could damage them.

SFC /scannow might help (probably won't) but its easy to run. One with a confirmed virus infection sfc /scannow failed to detect a problem but on manual replace of NTDLL it fixed the issue. Seems the infection had a few tricks up its sleeve.

Another time NT 7 was crashing faulting NTDLL I uninstalled & reinstalled (as per NT support's advice), painful and no use. I then uninstalled using Revo to really clean the system and it was ok on re-install.

I am not a coder but I have supervised industrial scale application repackaging for Win 7 corporate rollouts etc.

Nearly forgot.. SFC /scanfile <path> can be quicker as its specific (instead of scannow) ..

https://msdn.microsoft.com/en-us/library/windows/desktop/aa382541.aspx

Reply With Quote
  #5 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Rory View Post
Have you checked that there is no corruption in NTDLL in the syswow64 and/or system32?

I did a complete fresh re-install of NT.

The problem is sometimes/(not always!) happening when creating new orders.
The problem only happens when generating orders.

No charts are open/loaded, no indicators running.
I suspect an issue in the core.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
Rory
 
Posts: 2,743 since May 2014
Thanks Given: 5,444
Thanks Received: 8,140


rleplae View Post
I did a complete fresh re-install of NT.

The problem is sometimes/(not always!) happening when creating new orders.
The problem only happens when generating orders.

No charts are open/loaded, no indicators running.
I suspect an issue in the core.

Indeed, I knew I was writing a "teaching grandma to suck eggs" post with a developer haha.

I recall something similar of a report with on order crashes when my dev was creating a unmanaged order based strat. However I guess you can trace it.
@rleplae I remembered something.. We had a VMware dev environment and there was an error relating to NTs dependence on IE and a network problem. These might give an idea.

https://forum.ninjatrader.com/showthread.php?t=49164
https://www.tomshardware.com/answers/id-2152651/ntdll-dll-error-diagnosis.html

Reply With Quote
  #7 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Rory View Post
Indeed, I knew I was writing a "teaching grandma to suck eggs" post with a developer haha.

I recall something similar of a report with on order crashes when my dev was creating a unmanaged order based strat. However I guess you can trace it.
@rleplae I remembered something.. We had a VMware dev environment and there was an error relating to NTs dependence on IE and a network problem. These might give an idea.

how to connect without ie - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum
ntdll.dll error diagnosis [Solved] - Explorer - Windows 7

Nothng to do with all of that.
It's a bug in the ATI interface, i'm able to reproduce it very easily.

One can also see the handles growing through the roof


Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
Rory
 
Posts: 2,743 since May 2014
Thanks Given: 5,444
Thanks Received: 8,140


rleplae View Post
Nothng to do with all of that.
It's a bug in the ATI interface, i'm able to reproduce it very easily.

One can also see the handles growing through the roof


Interesting and useful to know.

You have NT execute trades (if I recall ATI is inbound?) Does that work for you? Kind of assumed it was just signal generating. We tried it but found NT was not stable over days and weeks.

Reply With Quote
  #9 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Rory View Post
Interesting and useful to know.

You have NT execute trades (if I recall ATI is inbound?) Does that work for you? Kind of assumed it was just signal generating. We tried it but found NT was not stable over days and weeks.

The ATI interface is awfully leaky.
Initially I ran into the same problem as you mentioned with stability.

Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #10 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


@rleplae, you should try to write you own ATI: a strategy listening to a socket port and executing the order with "normal" NinjaScript functions.
Not perfect on an intellectual point of view but not very difficult.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote




Last Updated on June 30, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts