Closed mjf55 closed 3 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! 🙌
Verified as fixed. Thanks
System
Printer and Slicer
Description of the bug
Open the Lychee sliced CTB file in UVTools 4.3.1. Code runs and automatically detects an empty layer. Then I press 'Detect' and the following pop-up pops up. instantly. NOTE: Everything works fine in UVTools 4.3.0. Used the same file. I uninstalled previous versions switching between 4.3.0 <-> 4.3.1
System.AggregateException: One or more errors occurred. (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) (Index was outside the bounds of the array.) ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 239
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b 1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0b 0() in UVtools.UI\MainWindow.Issues.cs:line 609
---> (Inner Exception #1) System.IndexOutOfRangeException: Index was outside the bounds of the array.
at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 239
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b 1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
1.<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](ReplicatableUserAction
1 action, ParallelOptions options, Boolean stopOnFirstFailure) at System.Threading.Tasks.Parallel.ForWorker64[TLocal](Int64 fromInclusive, Int64 toExclusive, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Func4 bodyWithLocal, Func
1 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, Action
1 body, Action2 bodyWithState, Func
4 bodyWithLocal, Func1 localInit, Action
1 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__DisplayClass191_0.---> (Inner Exception #2) System.IndexOutOfRangeException: Index was outside the bounds of the array. at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 239
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b 1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
---> (Inner Exception #3) System.IndexOutOfRangeException: Index was outside the bounds of the array. at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 239
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b 1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
---> (Inner Exception #4) System.IndexOutOfRangeException: Index was outside the bounds of the array. at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 239
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b 1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
---> (Inner Exception #5) System.IndexOutOfRangeException: Index was outside the bounds of the array. at UVtools.Core.Managers.IssueManager.<>cDisplayClass18_2.b9(Int64 layerIndexInt) in UVtools.Core\Managers\IssueManager.cs:line 239
at System.Threading.Tasks.Parallel.<>cDisplayClass20_0`1.b 1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location ---
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_0`1.b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---
How to reproduce
1- Open *.CTB file in UVtools 2- Delete the empty layer 3- Press 'Detect' and the error happens.
DOES NOT happen in UVTools 4.3.1.
Checked old issues but none related to index out of bounds of the array.
Files
No response