sn4k3 / UVtools

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

[Bug] Breaks m5s .pm5s files #775

Closed aWildTomAppeared closed 11 months ago

aWildTomAppeared commented 11 months ago

System

UVtools v4.0.2 X64
Operative system: Microsoft Windows 10.0.19045 X64
Processor: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
Processor cores: 12
Memory RAM: 21.98 / 31.88 GB
Runtime: win10-x64
Framework: .NET 6.0.22
AvaloniaUI: 11.0.4
OpenCV: 4.8.0

Sreens, resolution, working area, usable area:
1: 2560 x 1440 @ 100% (Primary) (On this)
    WA: 2560 x 1400    UA: 2560 x 1400
2: 2160 x 3840 @ 150%
    WA: 2160 x 3780    UA: 1440 x 2520
3: 1920 x 1080 @ 100%
    WA: 1920 x 1040    UA: 1920 x 1040

Path:       C:\Users\Thomas B-B\My_Documents\Software\3D Printing\UVtools_win-x64_v4.0.2\
Executable: C:\Users\Thomas B-B\My_Documents\Software\3D Printing\UVtools_win-x64_v4.0.2\UVtools.exe
Loaded file: cones.pm5s [Version: 518] [Class: PhotonWorkshopFile]

Printer and Slicer

Description of the bug

Even if no changes are made to a .pm5s file in UVT, it's just opened and saved then the new file is a bit smaller and it doesn't print. After the transition layers the screen is black, sometimes it never moves to another layer, sometimes it flashes the layers in a fraction of a seconds, it just doesn't work past the transition layers. I tried to fix this by making every layer a transition layer and then manually changing the per layer properties so that they had normal exposures and that did let the layers display but they all had the transition layer exposures not the exposure I manually set. per-layer

How to reproduce

Open any .pm5s file with UVT, save it, then run it. I can get you in contact with my friend with the pm5s so he can run tests for you if you would like.

Files

File before saving from UVT: https://1drv.ms/u/s!AgdLT8UsgBfshwjDrJjMNWJZAGon?e=7vrqJ0

File after: https://1drv.ms/u/s!AgdLT8UsgBfshwltb63Zfd3rfQAs?e=1BeGpp

github-actions[bot] commented 11 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 11 months ago

The problem is caused because UVtools turn the per layer data flag due different value detection global vs layer. On this post (read whole) you can find the manual solution: https://github.com/sn4k3/UVtools/issues/742 which in short is File - Reset layer properties.

sn4k3 commented 11 months ago

Try the new release, should be fixed.