Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BUG - NINJA 7.17 Crashes

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

    BUG - NINJA 7.17 Crashes

    BUG - NINJA 7.17 Crashes: Environment is Windows 7 with Ninja 7 beta 17 with connection live to IB. Does not occur when not connected to IB.

    If you change Data Series to different time frames in the minute charts too many times the system crashes forcing you to restart Ninja and sometimes even reboot the system. Error message says something about a data base error. This bug has been around now for quite a few versions of the beta, so not something recent. This is what it said in the log:

    21/06/2010 05:26:31|0|4|Error on storing bars data (1): Le paramètre n'est pas valide.
    21/06/2010 05:26:31|0|4|Error on storing bars data (2): La référence d'objet n'est pas définie à une instance d'un objet.

    This happens a lot, but the work around is to just not change the time frames too much. After 17 beta versions a little suprised a bug like this still exsits on an operation quite basic, no?

    Following is the trace file;


    2010-06-21 05:26:30:917 in OnUnhandledThreadException
    2010-06-21 05:26:30:964 ********* exception trapped *********
    2010-06-21 05:26:30:964 Le paramètre n'est pas valide.
    2010-06-21 05:26:30:964 à System.Drawing.Pen.get_Width()
    à NinjaTrader.Gui.Chart.CandleStyle.GetBarPaintWidth (Int32 barWidth)
    à NinjaTrader.Gui.Chart.ChartControl.GetBarPaintWidt h(Bars bars)
    à NinjaTrader.Gui.Chart.ChartControl.InitBarsPainted ()
    à NinjaTrader.Gui.Chart.ChartControl.OnPaint(Object sender, PaintEventArgs e)
    à System.Windows.Forms.Control.PaintWithErrorHandlin g(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
    à System.Windows.Forms.Control.WmPaint(Message& m)
    à System.Windows.Forms.Control.WndProc(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
    à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    2010-06-21 05:26:31:276 Gui.Chart.ChartControl.SaveBarsDataToXml: System.ArgumentException: Le paramètre n'est pas valide.
    à System.Drawing.Pen.Clone()
    à NinjaTrader.Gui.Globals.Clone(Pen pen)
    à NinjaTrader.Gui.Chart.CandleStyle.Clone()
    à NinjaTrader.Gui.Chart.BarsData.CopyTo(BarsData ret)
    à NinjaTrader.Gui.Chart.BarsData.Clone()
    à NinjaTrader.Gui.Chart.ChartControl.SaveBarsDataToX ml(XmlDocument document, XmlElement element, Boolean asTemplate)
    2010-06-21 05:26:31:276 Gui.Chart.ChartControl.SaveBarsDataToXml: System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
    à NinjaTrader.Gui.Chart.ChartControl.SaveBarsDataToX ml(XmlDocument document, XmlElement element, Boolean asTemplate)
    2010-06-21 05:26:31:276 instrument='6S 09-10' from='2010-06-15' to='2010-06-21' period=4 Min splitAdjusted=False dividendAdjusted=False bars=1698
    2010-06-21 05:26:31:416 ---- ÉCHEC DE L'ASSERTION DE DÉBOGAGE----
    ---- Message court d'assertion ----
    Bars.ChildNodes.Count is 0
    ---- Message long d'assertion ----


    at ChartControl.SaveBarsDataToXml(XmlDocument document, XmlElement element, Boolean asTemplate)
    at ChartForm.Save(XmlDocument document, XmlElement element)
    at WorkspaceOptions.SaveForm()
    at WorkspaceOptions.SaveAll(Boolean confirm)
    at WorkspaceOptions.ApplicationExit(Boolean confirm)
    at Globals.OnUnhandledException(Object sender, String expMessage, String exceptionText)
    at Globals.OnUnhandledThreadException(Object sender, ThreadExceptionEventArgs e)
    at ThreadContext.OnThreadException(Exception t)
    at Control.WndProcException(Exception e)
    at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at Control.Update()
    at Control.OnEnabledChanged(EventArgs e)
    at Control.OnEnabledChanged(EventArgs e)
    at ChartControl.ReplaceBarsInMainThread(Object oldBarsObj, Object newBarsObj, Object newBarsDataObj)
    at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at Delegate.DynamicInvokeImpl(Object[] args)
    at Control.InvokeMarshaledCallbackDo(ThreadMethodEntr y tme)
    at Control.InvokeMarshaledCallbackHelper(Object obj)
    at ExecutionContext.runTryCode(Object userData)
    at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(Tr yCode code, CleanupCode backoutCode, Object userData)
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
    at Control.InvokeMarshaledCallbacks()
    at Control.WndProc(Message& m)
    at ControlNativeWindow.WndProc(Message& m)
    at NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at ComponentManager.System.Windows.Forms.UnsafeNative Methods.IMsoComponentManager.FPushMessageLoop(Int3 2 dwComponentID, Int32 reason, Int32 pvLoopData)
    at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at NTMain.Main()

    2010-06-21 05:27:27:689 Gui.WorkspaceOptions.ApplicationExit
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: deactivating hot keys
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: shutting down news timer
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: shutting down message timer
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: shutting down file type watcher
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: shutting down ATI server
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: disposing autoTrade component
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: shutting down data server
    2010-06-21 05:27:29:390 Gui.Globals.AppExit: shutting down SMTP server
    2010-06-21 05:27:29:405 Gui.Globals.AppExit: closing connections
    2010-06-21 05:27:29:421 (ib) Cbi.Connection.Close1
    2010-06-21 05:27:29:421 (ib) Cbi.Connection.Close2
    2010-06-21 05:27:29:437 (ib) Cbi.Connection.Close3
    2010-06-21 05:27:29:437 (ib) Cbi.Connection.Close4
    2010-06-21 05:27:30:029 (ib) Cbi.Connection.Close5
    2010-06-21 05:27:30:029 (ib) Cbi.Connection.Close6
    2010-06-21 05:27:30:045 Server.Client.Close
    2010-06-21 05:27:30:045 (ib) Cbi.Connection.Close8
    2010-06-21 05:27:30:045 (ib) IB.AccountUpdatesRequest.Send: account='' subscribe=False
    2010-06-21 05:27:30:107 (ib) Cbi.Connection.Close9
    2010-06-21 05:27:30:107 Cbi.Globals.ApplicationExit
    2010-06-21 05:27:30:107 (ib) Cbi.Connection.ProcessEventArgs.ConnectionStatusEv entArgs Disconnected Disconnected NoError
    2010-06-21 05:27:30:107 Db.Globals.ApplicationExit
    2010-06-21 05:27:30:123 Cbi.License.ApplicationExit
    Last edited by Bluepoint; 06-20-2010, 10:02 PM.

    #2
    Hi Bluepoint,

    Thank you for your post.

    Based on that error message can you please repair your NinjaTrader database.

    Please follow the instructions below to repair the NinjaTrader database.
    • Disconnect NinjaTrader from any open connections via File > Disconnect
    • From the NinjaTrader Control Center window select the menu Tools > Options
    • Select the "Data" tab
    • Press the "Repair DB" button
    • Press the "OK" button


    If the issue persists can you please forward your complete log and trace files for today's date to support[at]ninjatrader[dot]com.

    Trace files are located in the My Documents-->NinjaTrader 7-->trace-->trace.20100620.txt
    Log files are located in the My Documents-->NinjaTrader 7-->log.20100620.txt

    Please reference this forum post when sending those files.
    Ryan O.NinjaTrader Customer Service

    Comment


      #3
      Yes I have already done what you say for the repair, like I said it only happens when i keep changing the time period on a chart - I don't do this too often so there is a work around. I sent the files....

      Comment


        #4
        Hello Bluepoint,

        Please send a note to Support [AT] NinjaTrader [DOT] com with 'ATTN: Kyle' in the subject line.

        In the message, please include the following:

        1.) A link to this forum thread.

        2.) Your most current trace file.
        You will find the trace file in the My Documents > NinjaTrader 7 > Trace folder.
        Today's trace file would be named 'trace.20100623.txt'.

        3.) The version of TWS you are running. (Help > About Trader Workstation)
        KyleNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        599 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        344 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        557 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X