Hello Infragistics Team,
we have detected an Object Reference Exception in the Toolbar Version 8.2 CLR 2.0...
Is this a known issue?
at Infragistics.Win.UltraWinToolbars.RibbonGroup.PreventMouseInputNotification(UIElementInputType inputType)
at Infragistics.Win.UltraWinToolbars.RibbonGroupUIElement.WantsInputNotification(UIElementInputType inputType, Point point) at Infragistics.Win.UIElement.PointInElement(Point point, Boolean excludeOverlappingSiblings, Boolean ignoreClipping, Boolean honorInputType, UIElementInputType inputType) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) at Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType) at Infragistics.Win.UIElement.ElementFromPoint(Point point, UIElementInputType inputType) at Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly, UIElementInputType inputType, Boolean ignoreLastElementEntered) at Infragistics.Win.ControlUIElementBase.ProcessVisibleChanged(Object sender, EventArgs e) at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) at Infragistics.Win.UltraControlBase.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnParentVisibleChanged(EventArgs e) at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e) at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Form.OnVisibleChanged(EventArgs e) at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ScrollableControl.WndProc(Message& m) at System.Windows.Forms.ContainerControl.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
This is not a known issue. I would recommend submitting this to the support group: http://ko.infragistics.com/gethelp.
We are seeing exactly the same crash in NetAdvantage 2010.2, did this issue get investigated?
This post is 12 years old, and it does not appear that the original customer who reported it, or anyone else along the line, ever followed up and reported it directly to us, so it doesn't looks like it's ever been investigated.
From the call stack here, it appears that a RibbonGroup is becoming visible (or invisible) and the ToolbarsManager is trying to determine if it should be processing the mouse input notification. It does this in case it becomes visible (or is hidden) directly under the mouse so it can synch up whether it should be hot-tracked or not. Is your application using threads? This could be getting out of synch if your application is using multiple threads and not properly marshalling the data. I can't immediately see any case in which it should be blowing up, but the RibbonGroup in question is referencing it's own Ribbon and ToolbarsManager, so it's possible that there's a bug here. Is the call stack your users are getting exactly the same as the one listed here? It's tough to fix a problem we cannot reproduce, but I don't think it could hurt for us to put some null checks into this method to ensure it doesn't blow up.
Hello Mike,
the stack trace from our client is nearly the same as in the old post above:
<InnerExceptions> <InnerException ExceptionType="System.NullReferenceException"> <Number>0</Number> <Message>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</Message> <Source>Infragistics4.Win.UltraWinToolbars.v19.2</Source> <TargetSite>Boolean PreventMouseInputNotification(Infragistics.Win.UIElementInputType)</TargetSite> <Class>Infragistics.Win.UltraWinToolbars.RibbonGroup</Class> <Assembly>Infragistics4.Win.UltraWinToolbars.v19.2, Version=19.2.20192.198, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</Assembly> <Method>PreventMouseInputNotification</Method> <StackTrace> <StackTraceElements Count="1"> <StackTraceElement Number="1"> bei Infragistics.Win.UltraWinToolbars.RibbonGroup.PreventMouseInputNotification(UIElementInputType inputType) bei Infragistics.Win.UltraWinToolbars.RibbonGroupUIElement.WantsInputNotification(UIElementInputType inputType, Point point) bei Infragistics.Win.UIElement.PointInElement(Point point, Boolean excludeOverlappingSiblings, Boolean ignoreClipping, Boolean honorInputType, UIElementInputType inputType) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.UIElement.ElementFromPoint(Point point, Boolean ignoreClipping, UIElementInputType inputType, Boolean honorInputType, Boolean excludeOverlappingSiblings) bei Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly, UIElementInputType inputType, Boolean ignoreLastElementEntered) bei Infragistics.Win.ControlUIElementBase.ProcessVisibleChanged(Object sender, EventArgs e) bei Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) bei Infragistics.Win.UltraControlBase.OnVisibleChanged(EventArgs e)
Maybe that helps.
Thanks and regards
Thorsten
Hi Thorston,
I have asked our support team to create a case for this issue and write up a bug for developer review so we can add some null checks to this message. Since we cannot reproduce the exception or test it, there's a small chance that this is just a symptom of a larger problem. But it seems likely that this is just a rare edge case where the controls is hitting this code before the RibbonGroup has had it's backward pointers to the ribbon or ToolbarsManager initialized and the null checks should fix it.
Hi Mike, we have seen in the latest version that the problem is unfortunately still not fixed. The scenario described above still occurs with us from time to time. Can you say something about the current status and whether there are still plans to implement the security check against null?
Is it possibly better to create an official support request as a customer?
Yours sincerely, Thorsten Pontow.
Hello Thorsten,
My apologies for the delay in the creation of the support case and resolution of this issue. I have since created you a support case and have logged this issue in our internal tracking systems with a development ID of 272949. The private support case I have created for you has an ID of CAS-212416-J7D3Z1 and I will be linking development issue 272949 to it. You can access that support case after signing into your account, here: https://ko.infragistics.com/my-account/support-activity.
Please let me know if you have any other questions or concerns on this matter.