sn4k3 / UVtools

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

[Crash] System.InvalidOperationException: Collection was modified; enumeration operation may not execute. #768

Closed sashok1337 closed 12 months ago

sashok1337 commented 12 months ago

System

UVtools v4.0.2 X64
Operative system: Darwin 23.0.0 Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020 X64
Processor: Apple M2 Max
Processor cores: 12
Memory RAM: 25.94 / 65.22 GB
Runtime: osx.14-x64
Framework: .NET 6.0.22
AvaloniaUI: 11.0.4
OpenCV: 4.8.0

Path:       /Applications/UVtools.app/Contents/MacOS/
Executable: /Applications/UVtools.app/Contents/MacOS/UVtools

Printer and Slicer

Description of the bug

System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at Avalonia.Rendering.Composition.Server.ServerCompositor.NotifyBatchesProcessed()
   at Avalonia.Rendering.Composition.Server.ServerCompositor.RenderCore()
   at Avalonia.Rendering.Composition.Server.ServerCompositor.Render()
   at Avalonia.Media.MediaContext.SyncCommit(Compositor compositor, Boolean waitFullRender)
   at Avalonia.Rendering.Composition.CompositingRenderer.Paint(Rect rect)
   at Avalonia.Controls.TopLevel.HandlePaint(Rect rect)
   at Avalonia.Native.WindowBaseImpl.WindowBaseEvents.Avalonia.Native.Interop.IAvnWindowBaseEvents.Paint()
   at Avalonia.Native.Interop.Impl.__MicroComIAvnWindowBaseEventsVTable.Paint(Void* this)
--- End of stack trace from previous location ---
   at Avalonia.Native.DispatcherImpl.RunLoop(CancellationToken token)
   at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
   at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
   at UVtools.UI.Program.Main(String[] args) in UVtools.UI/Program.cs:line 174
Category: Application
File: Barn_Damage_2.2s.dlp  [Version: 515] [Class: PhotonWorkshopFile]

Machine date time: 10.10.2023 20:58:09
    UTC date time: 10.10.2023 18:58:09

How to reproduce

  1. Open file
  2. Open "Issues" tab
  3. Sometimes it will crash

Files

Barn_Damage_2.2s.dlp.zip

github-actions[bot] commented 12 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 12 months ago

Duplicate of https://github.com/sn4k3/UVtools/issues/762 Try the solution given on bottom of the post and report back.