sn4k3 / UVtools

MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
GNU Affero General Public License v3.0
1.19k stars 103 forks source link

[Bug] Error while running detection pass #925

Open clear62 opened 1 week ago

clear62 commented 1 week ago

System

UVtools v4.4.1 X64
Operative system: Microsoft Windows 10.0.22631 X64
Processor: AMD Ryzen 7 5800H with Radeon Graphics         
Processor cores: 16
Memory RAM: 9.16 / 15.35 GB
Runtime: win10-x64
Framework: .NET 6.0.33
AvaloniaUI: 11.1.3
OpenCV: 4.9.0

Path:       C:\Program Files\UVtools\
Executable: C:\Program Files\UVtools\UVtools.exe
Loaded file: ALL - 1 of each folder.goo [Version: 0] [Class: GooFile]

Printer and Slicer

Description of the bug

While running a scan to detect issues in a print file, toward the end of the detection pass, the following error was generated.

System.AggregateException: One or more errors occurred. (External component has thrown an exception.) ---> System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at Emgu.CV.CvInvoke.cveConnectedComponentsWithStats(IntPtr image, IntPtr labels, IntPtr stats, IntPtr centroids, LineType connectivity, DepthType type, ConnectedComponentsAlgorithmsTypes cllType) at Emgu.CV.CvInvoke.ConnectedComponentsWithStats(IInputArray image, IOutputArray labels, IOutputArray stats, IOutputArray centroids, LineType connectivity, DepthType labelType, ConnectedComponentsAlgorithmsTypes cclType) at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 651 at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>cDisplayClass20_01.<ForWorker64>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.ForWorker64[TLocal](Int64 fromInclusive, Int64 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException) at System.Threading.Tasks.Parallel.ForWorker64[TLocal](Int64 fromInclusive, Int64 toExclusive, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Func4 bodyWithLocal, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.For(Int64 fromInclusive, Int64 toExclusive, ParallelOptions parallelOptions, Action`1 body) at UVtools.Core.Managers.IssueManager.DetectIssues(IssuesDetectionConfiguration config, OperationProgress progress) in UVtools.Core\Managers\IssueManager.cs:line 237 at UVtools.UI.MainWindow.<>c__DisplayClass192_0.b0() in UVtools.UI\MainWindow.Issues.cs:line 609

UVTools Error

How to reproduce

Load .goo file into UV tools activate pixel editor activate difference tool run a detect pass with default settings

Files

https://wetransfer.com/downloads/9535b0d77407250995b4cdc827c515d920240905002533/f3aff86904dfcfafb35ebd8ed7a297e220240905002533/773901?trk=TRN_TDL_01&utm_campaign=TRN_TDL_01&utm_medium=email&utm_source=sendgrid

email link sent to self. Hope it lets others download. Never used wetransfer.com before

github-actions[bot] commented 1 week 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 days ago

I was unable to reproduce your problem. Does it happen everytime with the file? I notice a bug on Difference tool but both pixel editor and difference does not link with issue detection.

clear62 commented 5 days ago

I have gotten the same/similar error on multiple different files. I have even used RevoUninstaller to clean UVtools completely from my system/registry after uninstall. Then did a clean reinstall of UVtools software. The issue continued to present.

On Thu, Sep 12, 2024 at 9:07 AM Tiago Conceição @.***> wrote:

I was unable to reproduce your problem. Does it happen everytime with the file? I notice a bug on Difference tool but both pixel editor and difference does not link with issue detection.

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

sn4k3 commented 5 days ago

I think your problem is lack of RAM, at some point your file takes more RAM than you actually have. With a peak of 18GB of RAM in first 18s. Your best bet is to upgrade RAM to 32GB or decrease core count in UVtools settings.

image

clear62 commented 4 days ago

Ok, I will attempt to make that change. Thanks!

On Thu, Sep 12, 2024 at 10:15 AM Tiago Conceição @.***> wrote:

I think your problem is lack of RAM, at some point your file takes more RAM than you actually have. With a peak of 18GB of RAM in first 18s. Your best bet is to upgrade RAM to 32GB or decrease core count in UVtools settings.

image.png (view on web) https://github.com/user-attachments/assets/58e564f8-a948-486e-a974-b02b9233562e

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