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 use Reset Layer Properties to get PerLayerOverride to False on file create with ChituBox 2.1 #870

Open JoveToo opened 2 months ago

JoveToo commented 2 months ago

System

UVtools v4.3.2 X64
Operative system: Linux 6.8.7-300.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 17 19:21:08 UTC 2024 X64
Processor: AMD Ryzen 9 7950X3D 16-Core Processor
Processor cores: 32
Memory RAM: 12.77 / 30.55 GB
Runtime: fedora.40-x64
Framework: .NET 6.0.29
AvaloniaUI: 11.0.10
OpenCV: 4.8.1

Sreens, resolution, working area, usable area:
1: 3840 x 2160 @ 150% (Primary)
    WA: 3840 x 2113    UA: 2560 x 1409
2: 3840 x 2160 @ 150%
    WA: 3840 x 2113    UA: 2560 x 1409
3: 3840 x 2160 @ 150%
    WA: 3840 x 2113    UA: 2560 x 1409

Path:       /tmp/.mount_UVToolbJhIJv/usr/bin/
Executable: /tmp/.mount_UVToolbJhIJv/usr/bin/UVtools
Loaded file: UVtools_demo_file.sl1s [Version: 0] [Class: SL1File]

Printer and Slicer

Description of the bug

the M5S has a bug that it fails to print files with the PerLayerOverride settings. Previous advise was to he "Reset Layer Properties" before a save, to force PerLayerOverride to false. This is not working anymore.

How to reproduce

Generate a file with ChituBox 2.1.0 Work on it in UVTools

Files

No response

sn4k3 commented 2 months ago

Provide a test file with that behavior. I'm not seeing how slicer can glitch the reset. Also check if you have auto applied suggestions, I think the transition layer suggestion can trigger a true on that flag.

JoveToo commented 2 months ago

How do I check the auto applied suggestions?

I have several times closed and reopened the file to try the "Reset Layer Properties"

sn4k3 commented 2 months ago

They are set by you, under suggestion settings see if the check is enabled:

image

JoveToo commented 2 months ago

image

sn4k3 commented 2 months ago

Check if that is also disabled on all other wait time suggestions

JoveToo commented 2 months ago

All Auto-Apply settings in the Suggestion Settings are off.

JoveToo commented 2 months ago

I do see this:

image

sn4k3 commented 2 months ago

That would not affect. I will have a look into your file.

sn4k3 commented 2 months ago

Problem is related to chitubox, they have one layer (1035) with different heigth, possible due rounding errors:

image

They should all be 0.05, but that 0.049 is forcing flag to true, to respect the height on that layer as it is different from global. That's the reason the reset wont work, it don't mess with position, only with print settings.

To force all layers to be re-built (settings and height) you go to File - Terminal, and send the command: SlicerFile.RebuildLayersProperties() that will recalculate everything from globals. Note that method is the same called with File - Reset layer properties, however via menu it is called with a false argument that won't affect layer position.

JoveToo commented 2 months ago

Thanks for checking! I will attempt to report this on the ChituBox Discord.