Skip to content

[Bug] AnycubicZipFile System.InvalidOperationException: Sequence contains no elements #1023

@b005t3r

Description

@b005t3r

System

UVtools v5.1.0 Arm64
Operative system: Darwin 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 Arm64
Processor: Apple M1 Pro
Processor cores: 10
Memory RAM: 10.59 / 20.91 GB
Runtime: osx-arm64
Framework: .NET 9.0.4
AvaloniaUI: 11.3.0
OpenCV: 4.10.0

Sreens, resolution, working area, usable area:
1: 1512 x 982 @ 100% (Primary) (On this)
    WA: 1512 x 886    UA: 1512 x 886

Path:       /Applications/UVtools.app/Contents/MacOS/
Executable: /Applications/UVtools.app/Contents/MacOS/UVtools
Loaded file: lutnia_holes_fixed_11h31m_60ml_copy.pm4u [Version: 0] [Class: AnycubicZipFile]

Printer and Slicer

  • Printer: Anycubic Photon Mono 4 Ultra
  • Slicer: Lychee 7.4.100

Description of the bug

Exception at the end of file save operation.

How to reproduce

Save a file in p4mu format.

A popup with this message is displayed, file is not saved.

System.InvalidOperationException: Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.MaxFloat[TSource,TResult](IEnumerable1 source, Func2 selector)
at UVtools.Core.FileFormats.AnycubicZipFile.<>c__DisplayClass158_0.b__0(Int32 layerIndex) in UVtools.Core/FileFormats/AnycubicZipFile.cs:line 1657
at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.<ForWorker>b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion) --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__DisplayClass19_02.b__1(RangeWorker& currentWorker, Int64 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
at System.Threading.Tasks.TaskReplicator.Replica.Execute()

Files

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions