You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.<>c__DisplayClass61_5.b__4(Int64 i) in UVtools.Core\Operations\OperationLayerImport.cs:line 518
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()
How to reproduce
Open sliced object 'A' in UVtools, detect issues and resolve, save file, close
Open sliced object 'B' in UVtools, detect issues and resolve, save file
Use import layers function with 'stack' method to try to add save object A next to B (or other way around) to be printed together.
Error returned after import calculation. Object not added
I've attached two files as an example which most recently caused this issue. Have seen the issue with many other files however.
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! 🙌
- **UI:**
- **Pixel editor:**
- (Add) Shortcut: Ctrl/⌘+E to de/activate pixel editor
- (Add) Profiles (#604, #831)
- (Improvement) Use DataGrid row header to show the operation count instead of process and store indexes for the objects
- (Fix) Drawings and Text controls are not stretched to fill the available space to the right
- (Improvement) macOS: Shortcuts Ctrl+0, Ctrl+R, Ctrl+F changed to use command key(⌘) instead of control key
- (Improvement) Dynamic layer height, Lithophane, PCB exposure and Phased exposure: Use better performant `HasNonZero` instead of `CountNonZero` to check if there are any pixels to process
- (Improvement) Update demo file with the newest version of the format and use SL1S printer instead
- (Change) Extract file contents shortcut: From Ctrl+E to Ctrl+Shift+E
- (Fix) Files with different resolution information from empty layers were generating wrong image creation for such layers (#833)
- (Fix) Possible throw an exception about invalid roi when using Roi and/or masks under some tools
- (Fix) Skeletonize memory leak
- (Fix) System.NullReferenceException when accessing reallocated layers (#835)
- (Fix) Unable to save profiles for "Light bleed compensation", "Phased exposure"
- (Fix) PrusaSlicer printer "UVtools Prusa SL1S SPEED": Fix the display width and height, they were flipped
- (Upgrade) AvaloniaUI from 11.0.7 to 11.0.9
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.<>c__DisplayClass61_5.b__4(Int64 i) in UVtools.Core\Operations\OperationLayerImport.cs:line 518
at System.Threading.Tasks.Parallel.<>c__DisplayClass20_0
1.<ForWorker64>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
The text was updated successfully, but these errors were encountered: