sn4k3 / UVtools

MSLA/DLP, file analysis, calibration, repair, conversion and manipulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jleppert opened this issue · comments

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

  • Printer: Anycubic Photon M5S
  • Slicer: CHITUBOX Basic V2.0

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

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! 🙌

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.

Looks like fixed on new chitubox version v2.1