Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Can't use Reset Layer Properties to get PerLayerOverride to False on file create with ChituBox 2.1 #870

Closed
JoveToo opened this issue Apr 29, 2024 · 27 comments
Assignees

Comments

@JoveToo
Copy link

JoveToo commented Apr 29, 2024

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

  • Printer: AnyCubic M5S
  • Slicer: Chitubox 2.1.0

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
Copy link
Owner

sn4k3 commented Apr 29, 2024

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
Copy link
Author

JoveToo commented Apr 30, 2024

How do I check the auto applied suggestions?

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

@sn4k3
Copy link
Owner

sn4k3 commented Apr 30, 2024

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

image

@JoveToo
Copy link
Author

JoveToo commented Apr 30, 2024

image

@sn4k3
Copy link
Owner

sn4k3 commented Apr 30, 2024

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

@JoveToo
Copy link
Author

JoveToo commented Apr 30, 2024

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

@JoveToo
Copy link
Author

JoveToo commented Apr 30, 2024

I do see this:

image

@sn4k3
Copy link
Owner

sn4k3 commented Apr 30, 2024

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

@sn4k3
Copy link
Owner

sn4k3 commented Apr 30, 2024

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
Copy link
Author

JoveToo commented Apr 30, 2024

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

sn4k3 added a commit that referenced this issue Jul 30, 2024
- **File formats:**
  - (Add) File format: Klipper zip
  - (Add) Properties:
    - `Pause` and `ChangeResin` to layers
    - `BottomLiftAcceleration`
    - `BottomLiftAcceleration2`
    - `LiftAcceleration`
    - `LiftAcceleration2`
    - `BottomRetractAcceleration`
    - `BottomRetractAcceleration2`
    - `RetractAcceleration`
    - `RetractAcceleration2`
  - (Add) PrusaSlicer Keywords:
    - `FILECLASS_xxx` to define the file class directly instead of a file extension
    - `BottomLiftAcceleration`
    - `BottomLiftAcceleration2`
    - `BottomRetractAcceleration`
    - `BottomRetractAcceleration2`
    - `LiftAcceleration`
    - `LiftAcceleration2`
    - `RetractAcceleration`
    - `RetractAcceleration2`
  - (Add) Property `HaveTiltingVat` to know if the printer have a tilting vat
  - (Add) Compatibility with tilting vat Saturn 4 Ultra which also fixes print time estimate (#906)
  - (Add) Encrypted CTB: Tries to predict tilting vat printers from set parameters
  - (Change) CWS: Append `;<Slice>` as first line in the layer instead when required
  - (Change) VDT: Move FTL previews to top to be used as first in conversion
  - (Improvement) Anycubic: Write the image color table based on the AntiAliasing level (#899)
  - (Improvement) Encrypted CTB: Implement the `ModifiedTimestampMinutes` and `AntiAliasLevel` field
  - (Fix) nanoDLP `slicer.json` deserialize problem on some files
  - (Fix) SL1: The keyword `TransitionLayerCount_xxx` not being set on the file (#902)
  - (Fix) PHZ: Generated invalid thumbnail data (#903)
- **Tools:**
  - (Improvement) Pixel arithmetic: Add extra checks to ignore empty size and layers
  - (Change) Edit print parameters: Allow set lift and retract speeds to 0 (#906)
- **UI:**
  - (Add) Menu - File - Copy parameters to files: Allow to copy parameters from current file to another file(s) (#852)
  - (Improvement) Menu - File - Reset layer properties: Hold SHIFT key to also rebuild layers position with the file layer height (#870)
  - (Improvement) Save as and convert file save dialog: Force the correct file extension if been tampered (#909)
  - (Improvement) Exposure time finder: Disable incompatible panels instead of hide them
  - (Add) Layer preview shortcuts: A/W/S/D to pan the layer image and Q/E to go to previous/next layer (#871)
  - (Fix) Prevent CTRL + SHIFT + Up/Down (Issue navigation shortcut) from change layer
- (Add) PrusaSlicer printer: Elegoo Saturn 4 Ultra
- (Fix) Linux AppImage: Failed to change to directory "~" (No such file of directory) (#891)
- (Upgrade) OpenCV from 4.8.0 to 4.9.0
- (Upgrade) AvaloniaUI from 11.0.10 to 11.1.1 (Fixes #872)
- (Upgrade) .NET from 6.0.29 to 6.0.32
@sn4k3 sn4k3 closed this as completed Jul 30, 2024
@epareja2
Copy link

epareja2 commented Sep 1, 2024

Hello @sn4k3 ,
I've read multiple issues on Anycubic printers not working with the layer exposure times, and the solutions seems to Reset the layer properties.

I have an Anycubic M5s and I'm using Chitubox 2.2 as the slicing software and UV tools 4.4.1 x64
I tried to reset the layers but I still get the "PerLayerOverride" = "True".

I also tried to run the terminal with the command SlicerFile.RebuildLayersProperties() but nothing happens.

What is the procedure I should check if the file is generating correctly?

My problem is that the base layers work but the normal layers get a 0s exposure time.

Thank you

@sn4k3
Copy link
Owner

sn4k3 commented Sep 1, 2024

Check if you have any suggestion with auto-apply enabled. If so it will always change the properties.

@epareja2
Copy link

epareja2 commented Sep 2, 2024

Thank you for your answer.
It seems all are turned off
image
image
image

I tried to upload a new file from Chitubox and the flag is always false. I have processed all the succestions (islands, traps and suction sections, and the flag remains false.

I will try this with a very small file to test i it works.

Is there a way to open the result file and check something before starting the print and find out that it didn't work?

Thank you

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

About the other file, it can be due slicer rounding problems, like this: #870 (comment)

Is there a way to open the result file and check something before starting the print and find out that it didn't work?

What did you mean?

@epareja2
Copy link

epareja2 commented Sep 2, 2024

I mean that I can check the exposure time for normal layers is not going to be 0 as it has happened to me the two times I've tried to print a UVTools repaired file. Or checking the flag PerLayerOverride as False, it's the only confirmation one needs to be confident that the exposure time won't be 0?

And let me thank you for this great tool!!!

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

PerLayerOverride flag can be checked just after you save the file with UVtools, the save action is the only thing will change the flag.

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

In any case you can always force full reset using the reset layers button while holding SHIFT, that will rebuild everything, including height and solve round problems

@epareja2
Copy link

epareja2 commented Sep 2, 2024

I did that several times and also run the command in the terminal, but the flag always remained to TRUE. This didn't happen when I started processing the same fresh file though.

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

Did you run it as last operation before save?

@epareja2
Copy link

epareja2 commented Sep 2, 2024

I think I did after saving, because I started printing and it failed in the normal layers so I decided to search for this problem in google, so I think I didn't do any further modifications.
I tried to Reset Layer Properties with Shift and the terminal command, but the flag didn't change to False.
After your answer, I did load the original file and tried to fix automatically all the suggestions, and the flag was always False.

@JoveToo
Copy link
Author

JoveToo commented Sep 2, 2024

I tried to Reset Layer Properties with Shift and the terminal command, but the flag didn't change to False.

The flag only changes to False if you save.

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

I tried to Reset Layer Properties with Shift and the terminal command, but the flag didn't change to False.

The flag only changes to False if you save.

This is correct.
The only way to check for flag current status without save is using Terminal with a command

@epareja2
Copy link

epareja2 commented Sep 2, 2024

I've run a test saving the file and the flag was false before saving, and after saving the flag is true.

image

I reseted the layers properties, but the flag still remains in TRUE.
image

Given this data, it seems that if I run the print, it will fail in the normal layers exposure time.

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

In that case you can send the file for I review, send the original only.

@sn4k3
Copy link
Owner

sn4k3 commented Sep 2, 2024

Your file works to me, where I reset properties and after save flag is false, see:
image

@epareja2
Copy link

epareja2 commented Sep 2, 2024

Yes, you are right. I reopened the file again and it has the flag = true on that moment, and after running the command, it's getting to False. I don't know what I did yesterday as I executed the same procedure. The only command I didn't run was SlicerFile.UsingPerLayerSettings to display the flag value, but I can see it's synchronized with the left panels value.

Thank you very much @sn4k3. I will try to print this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants