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

Error while trying compute issues #833

Closed niscrulez closed 5 months ago

niscrulez commented 5 months ago

System

UVtools v4.2.0 X64
Operative system: Microsoft Windows 10.0.22621 X64
Processor: Intel(R) Core(TM) i5-8600K CPU @ 3.60GHz
Processor cores: 6
Memory RAM: 6.24 / 15.90 GB
Runtime: win10-x64
Framework: .NET 6.0.26
AvaloniaUI: 11.0.7
OpenCV: 4.8.1

Path:       C:\Program Files\UVtools\
Executable: C:\Program Files\UVtools\UVtools.exe
Loaded file: big2.cws [Version: 0] [Class: CWSFile]

Printer and Slicer

Description of the bug

System.AggregateException: One or more errors occurred. (OpenCV: 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) ---> Emgu.CV.Util.CvException: OpenCV: 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows at Emgu.CV.CvInvoke.CvErrorHandler(Int32 status, IntPtr funcName, IntPtr errMsg, IntPtr fileName, Int32 line, IntPtr userData) at Emgu.CV.MatInvoke.cveMatCreateFromRect(IntPtr mat, Rectangle& roi) at UVtools.Core.Extensions.EmguExtensions.Roi(Mat mat, Rectangle roi, EmptyRoiBehaviour emptyRoiBehaviour) in UVtools.Core\Extensions\EmguExtensions.cs:line 794 at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_0.b11(Mat[] mats) in UVtools.Core\Managers\IssueManager.cs:line 665 at System.Threading.Tasks.Parallel.<>cDisplayClass19_0`1.b1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_01.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) at System.Threading.Tasks.TaskReplicator.Replica.Execute() --- End of inner exception stack trace --- at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action`1 localFinally)

How to reproduce

Captura de tela 2024-02-04 144204

Files

No response

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

Can provide the file so I can replicate?

niscrulez commented 5 months ago

Can provide the file so I can replicate?

Yes. Thank you. You need to delete the .zip from the file name (Shield.part1.rar + Shield.part2.rar).

Shield.part2.rar.zip

Shield.part1.rar.zip

sn4k3 commented 5 months ago

Your file have wrong resolution information and the last layer is empty. It will create last layer with file resolution instead of image resolution and that is why last layer is different in resolution. If you remove that last layer and run detection it will work.

It will be fixed on next release.

sn4k3 commented 5 months ago

Fixed

niscrulez commented 5 months ago

Thank you so much.

Em sáb., 10 de fev. de 2024 às 00:45, Tiago Conceição < @.***> escreveu:

Fixed

— Reply to this email directly, view it on GitHub https://github.com/sn4k3/UVtools/issues/833#issuecomment-1936843377, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARCDE75IQOHI4CXU3FABQYTYS3UNZAVCNFSM6AAAAABCZA3PNSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWHA2DGMZXG4 . You are receiving this because you authored the thread.Message ID: @.***>