Open samsadatidds opened 4 months ago
This is your first time submitting an issue with UVtools 🥳Please review your issue and ensure that the submit template was followed, the information is complete, and not related to any other open issue. It will be reviewed shortly. Debugging is very important and make the program better. Thanks for contributing and making the software better! 🙌
Attach the test file
System
Printer and Slicer
Description of the bug
When opening the file on UV Tools (latest version), the Phrozen Sonic Mini 4K test file, the system crashes: System.OverflowException: Value was either too large or too small for a Decimal. at System.Number.ThrowOverflowException(TypeCode type) at System.Decimal.DecCalc.VarDecFromR4(Single input, DecCalc& result) at System.Decimal.op_Explicit(Single value) at UVtools.Core.FileFormats.FileFormat.RefreshPrintParametersModifiersValues() in UVtools.Core\FileFormats\FileFormat.cs:line 4916 at UVtools.Core.Operations.OperationEditParameters.InitWithSlicerFile() in UVtools.Core\Operations\OperationEditParameters.cs:line 163 at UVtools.Core.Operations.Operation.set_SlicerFile(FileFormat value) in UVtools.Core\Operations\Operation.cs:line 84 at UVtools.UI.MainWindow.ProcessFile(String fileName, FileDecodeType fileDecodeType, UInt32 actualLayer) in UVtools.UI\MainWindow.axaml.cs:line 1673 at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore()
at Avalonia.Threading.DispatcherOperation.Execute()
at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation job)
at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean fromExplicitBackgroundProcessingCallback)
at Avalonia.Threading.Dispatcher.Signaled()
at Avalonia.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
at UVtools.UI.Program.Main(String[] args) in UVtools.UI\Program.cs:line 173
Category: Application
File: _Phrozen_test_Sonic_Mighty_4K.ctb [Version: 4] [Class: ChituboxFile]
Machine date time: 3/5/2024 3:20:28 PM UTC date time: 3/5/2024 8:20:28 PM
How to reproduce
Got to Open File, open the test file Phrozen Sonic Mini 4k test file
Files
No response