8000 [BUG] Error because of locked file, causes next save to be corrupted. · Issue #551 · sn4k3/UVtools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUG] Error because of locked file, causes next save to be corrupted. #551

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

Closed
l0rdbyte opened this issue Sep 14, 2022 · 3 comments
Closed
Assignees

Comments

@l0rdbyte
Copy link

If a file is still open in another program (in my case .ctb in Chitubox), UVTools will give an error message. Saving again (after closing the offending file) will create a corrupt file.
Save as... a different filename seems to fix it. Haven't tried with saving a third time.
100% reproducable.

Project file & How to reproduce
Any file (only know of .ctb though) will work. Make sure it is open in another program (like chitubox). Saving will then give an error. Saving again will create a corrupt file. I can send one of those (one was a layer cake of the original with multiple layers of 100% fill, another just had a few layers and nothing else).
Looks like it's something with Filestream that's not properly closed.

Version of UVTools
3.6.3

Operating system
Windows 10 x64

Printer model
Phrozen Sonic Mini 8k

@github-actions
Copy link

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
Copy link
Owner
sn4k3 commented Sep 14, 2022

I have a clue of what is happening (Full-encode flag is not getting reset in case of exception), but it's a good cath.
However i don't understand why Chitubox opens ctb with write privilege and keep it stream open after load, as far i know you can't change any data on ctb when reopening on slicer? And so it should be open and release to read-only.

I will get into it

sn4k3 added a commit that referenced this issue Sep 15, 2022
- **Windows MSI installer:**
   - (Add) UVtools folder to start menu with:
      - UVtools
      - UVtoolsCmd
      - Uninstall UVtools
   - (Add) Prompt for add open in UVtools when right-click on supported files
   - (Add) Prompt for create desktop shortcut
   - (Add) Prompt for launch UVtools after the installation
   - (Improvement) Cleanup and simplify the install project
- (Add) PrusaSlicer printer: Peopoly Phenom Forge
- (Upgrade) .NET from 6.0.8 to 6.0.9
- (Fix) Corruption in file after attempt to save to a locked file (#551)
@sn4k3
Copy link
Owner
sn4k3 commented Sep 15, 2022

fixed

@sn4k3 sn4k3 closed this as completed Sep 15, 2022
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

2 participants
0