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] Error while running detection pass #925

Open
clear62 opened this issue Sep 5, 2024 · 5 comments
Open

[Bug] Error while running detection pass #925

clear62 opened this issue Sep 5, 2024 · 5 comments
Assignees

Comments

@clear62
Copy link

clear62 commented Sep 5, 2024

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

  • Printer: Elegoo Saturn 3 Ultra
  • Slicer: Lychee Slicer 6.0.200

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.<>c__DisplayClass18_2.b__9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 651
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_01.<ForWorker64>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass20_01.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, Action1 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.b__0() 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

Copy link

github-actions bot commented Sep 5, 2024

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 12, 2024

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

clear62 commented Sep 12, 2024 via email

@sn4k3
Copy link
Owner

sn4k3 commented Sep 12, 2024

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

clear62 commented Sep 13, 2024 via email

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