Unexplicable OverflowException in RibbonView

8 posts, 0 answers
  1. Ulrich
    Ulrich avatar
    10 posts
    Member since:
    Jul 2011

    Posted 12 Mar 2013 Link to this post


    I have an sporadically unexplicable OverflowException in RibbonView. 

    All information i have from the user is, they are scrolling or using the mousewheel inside the window 
    and a  small Stack Trace

    Exception:
    ########################################
    Message: UnhandledException OverflowException "Die arithmetische Operation hat einen Überlauf verursacht."(German)
    Source: Telerik.Windows.Controls.RibbonView
    Location: Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._HandleNCHitTest

    Stack Trace:
       bei Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._HandleNCHitTest(WM uxoMsg, IntPtr param, IntPtr legParam, Boolean& handled)
       bei Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr param, IntPtr legParam, Boolean& handled)
       bei System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    Any idees?

    WPF Telerik Version 2012.3.1129.40
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 15 Mar 2013 Link to this post

    Hello Ulrich,

    We tested the RadRibbonView/RadRibbonWindow in few scenarios and we were not able reproduce the exception based on the stack trace information. That is why we would appreciate if you could provide us a sample project reproducing the issue or more detailed information about the controls used in the application and steps to reproduce it.

    Kind regards,
    Kiril Vandov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Clint
    Clint avatar
    1 posts
    Member since:
    Apr 2014

    Posted 12 Oct 2015 Link to this post

    Hi,

     We're seeing client's that are able to reproduce this issue also, with an exception of:

     Error Type: OverflowException
    Class: WindowChromeWorker
    Method: _HandleNCHitTest
    Version: 1.4.1.0
    Message: Arithmetic operation resulted in an overflow.
    Stack Trace:
    at Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._HandleNCHitTest(WM uxoMsg, IntPtr param, IntPtr legParam, Boolean& handled)
    at Telerik.Windows.Controls.RibbonView.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr param, IntPtr legParam, Boolean& handled)
    at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
    --Start data--
    Key: System.Object Value: 
    --End data--

     We've tracked this down to users with a mouse supporting left/right tilt on the scroll wheel; when this is activated, the exception is thrown - all other use (scrolling / middle mouse pan etc) all work as expected.

     Thanks,

    Clint

  5. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 15 Oct 2015 Link to this post

    Hello Clint,

    We have tried to reproduce the issue with the updated information, but without success. We have tested to reproduce the issue with a Wireless Lenovo mouse with supporting Left/Right Tilt on the ScrollWheel and we have set the action of the tilts to different keys. We have tested the solution binaries from 2012.3.1129.40 and with latest binaries.
    Maybe there is something specific that triggers that exception (maybe one of the controls). If you have successfully reproduced this issue on your side could you please test with an isolated project (only with window), if the issue is not reproduced add more and more controls until it crashes. Also what is the exact Key/command that you have assigned to the Tilt.

    Looking forward to hearing from you.

    Kind regards,
    Kiril Vandov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Brian
    Brian avatar
    12 posts
    Member since:
    Feb 2014

    Posted 27 Apr Link to this post

    I also have one user of our software that is getting this exact same exception and stack trace. We don't yet know what triggers it. It apparently happens rarely and I think always after our app has been sitting for a long time (several days) on a screen with a RadRibbonBar and RadScheduleView.

    I've tried using a mouse with a left/right scrollwheel and haven't been able to trigger it myself. I'm also trying to get our QA department to test with that as well. I'll post again if we find a way to reproduce it. For now, just know that you're not alone--other people are having this problem too.

  7. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 02 May Link to this post

    Hi guys,

    Thank you for any information about the issue that you can provide. It will be useful for investigating this exception.

    Regards,
    Martin
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  8. Brian
    Brian avatar
    12 posts
    Member since:
    Feb 2014

    Posted 04 Aug Link to this post

    I was finally able to verify with the one user that keeps hitting this problem that he's using a Logitech MX Master mouse and that it happens when he uses the thumbwheel to scroll left and right over both a RadGridView and a RadScheduleView. Unfortunately, I have the exact same mouse and have not been able to reproduce it at all. Still trying to find a way though...

  9. Brian
    Brian avatar
    12 posts
    Member since:
    Feb 2014

    Posted 04 Aug in reply to Brian Link to this post

    A little more information I just gathered from a diagnostic data dump from the machine that fails. It is running a Xeon processor, which is different than most of our other users and test machines. I don't think this is the problem, but it's possible. Specifically, he's running a Dell Precision T1700 with "Xeon(R) processor E3-1200 v3/4th Gen Core processor PCI Express x16 Controller - 0C01 System" and the "AMD FirePro W5100 (FireGL V) Graphics Adapter Display".

    The other thing that stood out in the diagnostics is that he's running the "LogMeIn Mirror Driver Display". I wonder if this is the cause of the problem and why so few other people are able to reproduce it. Anyone else with this problem running LogMeIn or see anything else different than other systems that haven't been able to reproduce it?

Back to Top
UI for WPF is Visual Studio 2017 Ready