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.