sn4k3 / UVtools

MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
GNU Affero General Public License v3.0
1.15k stars 103 forks source link

[Bug] Can't read CHITUBOX Basic V2.0 AnyCubic Files #849

Closed jleppert closed 2 months ago

jleppert commented 4 months ago

System

UVtools v4.2.4 X64
Operative system: Linux 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 X64
Processor: AMD Ryzen Threadripper 2990WX 32-Core Processor
Processor cores: 64
Memory RAM: 91.41 / 125.81 GB
Runtime: ubuntu.20.04-x64
Framework: .NET 6.0.27
AvaloniaUI: 11.0.7
OpenCV: 4.8.1

Sreens, resolution, working area, usable area:
1: 3840 x 2160 @ 150% (Primary)
    WA: 3775 x 2130    UA: 2517 x 1420
2: 2560 x 1440 @ 100%
    WA: 2560 x 1410    UA: 2560 x 1410

Path:       /tmp/.mount_UVtoolHQsAvV/usr/bin/
Executable: /tmp/.mount_UVtoolHQsAvV/usr/bin/UVtools

Printer and Slicer

Description of the bug

When opening the file, receive the following fatal error dialog box:

System.IO.FileLoadException: 'MACHINE' section expected, but got 'Photon' at UVtools.Core.FileFormats.PhotonWorkshopFile.AnycubicNamedTable.ValidateExpecting(Int32 length, Boolean validateName) in UVtools.Core/FileFormats/PhotonWorkshopFile.cs:line 289 at UVtools.Core.FileFormats.PhotonWorkshopFile.DecodeInternally(OperationProgress progress) in UVtools.Core/FileFormats/PhotonWorkshopFile.cs:line 2146 at UVtools.Core.FileFormats.FileFormat.Decode(String fileFullPath, FileDecodeType fileDecodeType, OperationProgress progress) in UVtools.Core/FileFormats/FileFormat.cs:line 4154 at UVtools.UI.MainWindow.<>c__DisplayClass96_0.b__1() in UVtools.UI/MainWindow.axaml.cs:line 1416

How to reproduce

Create any file with Chitubox Basic V2.0 and it crashes, file IS NOT CORRUPT

Files

No response

github-actions[bot] commented 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! 🙌

sn4k3 commented 4 months ago

This is a problem with Chitubox, they write "Photon" instead of "MACHINE" to label a section on file. While printer does not validate that it's a bug on thier side and not following the Anycubic spec. You should report this to Chitubox.

sn4k3 commented 2 months ago

Looks like fixed on new chitubox version v2.1