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

Comment