Forum Discussion

jamienorman's avatar
4 years ago
Solved

Overflow or underflow in the arithmetic operation.

Hi,


Whenever my customer tries to run a report they get this message "Overflow or underflow in the arithmetic operation."

 

Upon enabling diagnostic mode the following is outputted.

 

2021-03-19 14:09:41.0635,MYOB.Huxley.RF.Core.Services.AppService.RFLogService,Error,1,Failed to run report. : System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.OverflowException: The image data generated an overflow during processing. ---> System.ArithmeticException: Overflow or underflow in the arithmetic operation.
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.ColorConvertedBitmap.FinalizeCreation()
at System.Windows.Media.Imaging.ColorConvertedBitmap..ctor(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format)
at System.Windows.Media.Imaging.BitmapSource.CreateCachedBitmap(BitmapFrame frame, BitmapSourceSafeMILHandle wicSource, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapPalette palette)
at System.Windows.Media.Imaging.BitmapFrameDecode.FinalizeCreation()
at System.Windows.Media.Imaging.BitmapFrameDecode..ctor(Int32 frameNumber, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, BitmapDecoder decoder)
at System.Windows.Media.Imaging.BitmapDecoder.SetupFrames(BitmapDecoder decoder, ReadOnlyCollection`1 frames)
at System.Windows.Media.Imaging.BitmapDecoder.get_Frames()
at System.Windows.Media.Imaging.BitmapFrame.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy)
at System.Windows.Media.ImageSourceConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
--- End of inner exception stack trace ---
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at MYOB.Huxley.RF.Framework.Windows.ReportRibbonWindow.InitializeComponent()
at MYOB.Huxley.RF.Framework.Windows.ReportRibbonWindow..ctor(Boolean isReadonly)
at MYOB.Huxley.RF.Framework.Reports.ReportsFactory.RunReportAysnc(ReportTypes reportType, RFDataParameterCollection dataParms, Boolean showAsDialog, Boolean runWithNodata)
at MYOB.Huxley.RF.Framework.Reports.ReportsFactory.<>c__DisplayClass40_0.<RunReport>b__0()
at MYOB.Huxley.RF.Framework.Reports.ReportsFactory.InvokeReportAction(Action action, Boolean progressWindowRequired)
at MYOB.Huxley.RF.Framework.Reports.ReportsFactory.RunReport(ReportTypes reportType, RFDataParameterCollection dataParms, String& errMsg, Boolean showAsDialog, Boolean runWithNodata)
2021-03-19 14:09:41.0845,MYOB.Huxley.RF.Core.Services.AppService.RFLogService,Error,19, : System.Threading.ThreadAbortException: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort()
at MYOB.Huxley.RF.Framework.UI.ProgressWindowHelper.Close(Boolean final)

 

Any ideas, Windows is up to date, Uninstalled MYOB and reinstalled, repaired .NET.

  • Managed to resolve this. Incase anyone else gets the message when running reports. Go into Control Panel > Color Management > Advanced Tab and ensure System Default is selected all the way down.

5 Replies

Replies have been turned off for this discussion
  • Managed to resolve this. Incase anyone else gets the message when running reports. Go into Control Panel > Color Management > Advanced Tab and ensure System Default is selected all the way down.

    • SouthEast_IT's avatar
      SouthEast_IT
      Contributing Partner

      This was so helpful. Client was grateful and so was I for this support note. You saved potentially hours of time into 15 minutes. Thank-you. FYI what a strange and random issue!

    • HQtax's avatar
      HQtax
      User

      Thank you for posting this fix. It has been an absolute time waster, going to a separate machine to print a report! I've tried this fix and worked a charm!

  • Hi jamienorman 

     

    I'm glad to hear you were able to resolve your issue. Thanks for letting us know and providing the solution, I'm sure other users will find this helpful.

     

    Please don't hesitate to post again if you need help in the future.