Closed Darantius closed 5 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! 🙌
Fixed
System
Printer and Slicer
Description of the bug
Since the most recent update, importing layers using the 'stack' method (to add an existing model next to another) often generates this error:
System.NullReferenceException: Object reference not set to an instance of an object. at UVtools.Core.Operations.OperationLayerImport.<>cDisplayClass61_5.b4(Int64 i) in UVtools.Core\Operations\OperationLayerImport.cs:line 518
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
I've attached two files as an example which most recently caused this issue. Have seen the issue with many other files however.
Files
Import bug example files.zip
![UVtools_y34kzUmgkX](https://github.com/sn4k3/UVtools/assets/139199830/eeefeaae-ac16-4afe-8554-a59ee16b931c)