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

Can't import layers right after exporting them[Bug] #841

Closed yaroslaw closed 5 months ago

yaroslaw commented 5 months ago

System

UVtools v4.2.2 X64
Operative system: Microsoft Windows 10.0.19045 X64
Processor: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
Processor cores: 4
Memory RAM: 10.03 / 15.88 GB
Runtime: win10-x64
Framework: .NET 6.0.27
AvaloniaUI: 11.0.7
OpenCV: 4.8.1

Sreens, resolution, working area, usable area:
1: 1920 x 1080 @ 100% (Primary) (On this)
    WA: 1920 x 1040    UA: 1920 x 1040

Path:       C:\Program Files\UVtools\
Executable: C:\Program Files\UVtools\UVtools.exe
Loaded file: m4_nut_m4_thumb_nut1.pws [Version: 1] [Class: PhotonWorkshopFile]

Printer and Slicer

Description of the bug

I'm exporting layers to images, moving model on a plate and run a script processing layers, then importing images. It gives an error "Could not import and fit 1 out of 1 format(s) (Insufficient or unequal build space)." No matter of what import method I use or number of images.

Layer resolution: w=1440, h=2560

exported image size confirmed to be the same.

How to reproduce

  1. Export layers to images (PNG, rotation 90 or rotation 0 doesn't matter)
  2. import layers (parameters don`t matter)

Files

image image image layer000 m4_nut_m4_thumb_nut1.pws.zip

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

Will fix on next release. But what is the complete objective? Maybe you don't need to process that outside UVtools (export/import)

yaroslaw commented 5 months ago

I was trying to put several pieces of the same thing processed by [ScriptCompensateCrossBleeding.cs] to find out what level of compensation do I need. Firstly I tried using pattern tool and ROI to hopefully apply different level of compensation to different regions, but it didn't work as script processes everything disregarding ROI. So my next idea was to move object around, run script with diferent levels and than combine all test in one print.

Fixing script would be more beneficial in future, but I'm just beginning to learn UVTools so don`t now much about scripting, conventions and technical limitations of script (and never touched C# in my life, but learned c++ and some other languages so probably can make some sense of a code)

sn4k3 commented 5 months ago

Fixed