Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

[urgent] Ninja startup issue, windows event viewer, application error

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

    [urgent] Ninja startup issue, windows event viewer, application error

    Hi,
    Ninja 8 was working fine on my PC. Earlier today I was downloading some ES replay data (which I've done many times before). Closed Ninja down. Rebooted and went to restart ninja and nothing happened. No splash screen. No log files or trace files created (the last ones were from when I closed down the app earlier). Tried opening several times.

    last log (unrelated I believe):
    2022-02-28 00:01:30:600|3|2|Connection lost to the NinjaTrader Information Server: is-us-nt-001.ninjatrader.com
    2022-02-28 00:01:40:613|1|2|Using HDS (is-us-nt-001.ninjatrader.com/31658)
    2022-02-28 01:01:30:606|3|2|Connection lost to the NinjaTrader Information Server: is-us-nt-001.ninjatrader.com
    2022-02-28 01:01:40:614|1|2|Using HDS (is-us-nt-001.ninjatrader.com/31658)
    2022-02-28 01:33:16:591|1|4|Workspace Futures 1 not saved
    2022-02-28 01:33:18:823|1|4|Workspace Layout 1 not saved

    I subseqently went into Win10 Event Viewer -> administrative events; and found the following 2 errors (repeateable, each time I try to launch Ninja):
    1) Application: NinjaTrader.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.DirectoryNotFoundException
    at System.IO.__Error.WinIOError(Int32, System.String)
    at System.IO.FileStream.Init(System.String, System.IO.FileMode, System.IO.FileAccess, Int32, Boolean, System.IO.FileShare, Int32, System.IO.FileOptions, SECURITY_ATTRIBUTES, System.String, Boolean, Boolean, Boolean)
    at System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)
    at NinjaTrader.Cbi.ConfigSerializer.Serialize()
    at NinjaTrader.Core.Globals.get_ServerOptions()
    at NinjaTrader.Core.Globals.get_Now()
    at NinjaTrader.Core.Globals.get_NTConfig()
    at NinjaTrader.Cbi.LicenseData.GetDefaultProviders()
    at NinjaTrader.Cbi.LicenseData..ctor()
    at NinjaTrader.Cbi.License..cctor()

    Exception Info: System.TypeInitializationException
    at NinjaTrader.Cbi.License.get_IsServer()
    at NinjaTrader.Core.GeneralOptions.get_TimeZoneInfo()
    at NinjaTrader.Core.GeneralOptions..ctor()
    at NinjaTrader.Core.Globals.get_GeneralOptions()
    at NinjaTrader.App..ctor()
    at NinjaTrader.App.Main()

    2) Faulting application name: NinjaTrader.exe, version: 8.0.23.2, time stamp: 0x5fd39f66
    Faulting module name: KERNELBASE.dll, version: 10.0.19041.1466, time stamp: 0xe01c7650
    Exception code: 0xe0434352
    Fault offset: 0x0000000000034f69
    Faulting process id: 0x28a8
    Faulting application start time: 0x01d82c75afc5d376
    Faulting application path: C:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.exe
    Faulting module path: C:\Windows\System32\KERNELBASE.dll
    Report Id: eb260209-d8cd-45ad-b344-12479b39b361
    Faulting package full name:
    Faulting package-relative application ID:

    --

    I note that I diabled a few 3rd party startup apps between when the problem started ocuring. One was the oneDrive app, which is the only one that I thought may have a connection, as that syncs the Documents folder (which Ninja saves the user info in).
    I've subsequently enabled that, rebooted, but still the same issue as above.

    All the files are where they should be (ie: nothing was deleted when I disabled the oneDrive syncing above).

    --

    I've also tried to enter the Ninja safe mode by holding down control key on launch. This doesn't help, still same 2 errors above.

    --

    Can you advise what directory this is likely looking for and flagging the error? It's something immediately on startup as the splash screen isn't even coming up. Please let me know instructions how to reset or something.
    I have a lot of data and strategies so I don't want to mess with anything I have set up.

    Urgent as I'm logging data and feeding this into my active trading.
    thanks,
    Daniel


    #2
    I realized that one cause of the issue could have been that my internet connection was playing up, so I was actually trying to download replay data for the ES as my internet connection went down. That never finished and I closed Ninja to restart my PC and sort my internet connection.

    Comment


      #3
      Ok I figureed out how to fix. I'd still like NT staff to comment on what caused this, but it appears, some issue with paths.
      I found this thread: https://ninjatrader.com/support/foru...ath#post521946

      I created a new shortcut to NT8 and specified the direct path to my files as below.
      This appears to have solved the issue.

      --

      Target: "C:\Program Files (x86)\NinjaTrader 8\bin64\NinjaTrader.exe" /d "C:\trading\2021\_NT8 Folder 2021"
      Start in: "C:\Program Files (x86)\NinjaTrader 8\bin64"

      --

      thanks,
      daniel

      Comment


        #4
        Hello Polar Bear,

        Thanks for the post.

        An issue with file paths can certainly lead to the behavior you described above, particularly based on the " System.IO.DirectoryNotFoundException" error you received. NinjaTrader is programmed to look for installation (C:\Program Files (x86)) and user files (Documents\NinjaTrader 8) in two very specific paths. If you move those files/folders without re-mapping your documents appropriately and reinstalling the platform, it won't have any way to access its own folders which it needs to run.

        Please feel free to reach out with any further NinjaTrader inquiry you may have,

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        61 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        40 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        21 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        23 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        51 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X