-
-
Notifications
You must be signed in to change notification settings - Fork 119
[BUG] Error while saving file #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you send me your file? |
Sure, I tried this test file from nova3d homepage: https://drive.google.com/file/d/1Tp683sfSi4242i36GVXQn7AYT8k1bIJe/view But I also tried another file that I sliced and exported with lychee slicer. |
Thx, now I could save the file. But upon closing and reopening uvtools now I cannot open the saved file again: I get this when I try to open it: 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.) ---> (Inner Exception #2) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #3) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #4) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #5) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #6) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #7) System.IndexOutOfRangeException: Index was outside the bounds of the array. |
Same when I convert it to a "bene4 mono file". Converting and saving works but upon reopening the file I get this: 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.) ---> (Inner Exception #2) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #3) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #4) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #5) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #6) System.IndexOutOfRangeException: Index was outside the bounds of the array. ---> (Inner Exception #7) System.IndexOutOfRangeException: Index was outside the bounds of the array. |
It works for me after fix your file resolution, maybe the actual dev version fixed that. |
Maybe I messed sth. else up... Save as gets me a different file than -> convert to and choosing Nova3d Bene4 Mono / Elfin2 Mono SE file. |
Never use convert, that is only for compatible formats or to use with prusaslicer but require to know what you are doing, source and target format must have same printer properties or it will fail. |
Yes. Ok, I now just named the file "exposure time test" and reopening works fine. |
Ok keep that way for now, i will fix it next patch |
i would like to simplify filenames and have a template like: layer{number}.png |
* **Core:** * Write "Unhandled Exceptions" to an "errors.log" file at user settings directory * Increase layer height max precision from 2 to 3 decimals * **Settings - Layer Preview:** * Allow to set hollow line thickness to -1 to fill the area * Add tooltip for "Auto rotate on load": Auto rotate the layer preview on file load for a landscape viewport * Add option to masks outline color and thickness * Add option to clear ROI when adding masks * Add option "Auto flip on load": Auto flip the layer preview on file load if the file is marked to print mirrored on the printer LCD * **Layer preview:** * Add selectable rotation directions 90º (CW and CCW) * Add preview flip (CTRL+F) horizontally and/or vertically * Add maskable regions to process on a layer (SHIFT + Alt + Click) on a area * ROI: Shortcut "Shift + left click" now also selects hollow black areas inside a white perimeter * ROI: Shortcut "ESC + Shift" to clear only the ROI and leave masks in * Fix a crash when using the pixel picker tool outside image bounds * **Pixel editor:** * Change drawings brush diameter limit from 255 to 4000 maximum * When using layers below go lower than layer 0 it no longer apply the modifications * **File formats:** * Add an internal GCodeBuilder to generate identical gcode within formats with auto convertion, managing features and parsing information * Internally rearrange formats properties and pass values to the base class * Fix "Save As" filename when using formats with dual extensions * CBDDLP and CTB: "LightPWM" was setting "BottomLightPWM" instead * CWS: Fix problem with filenames with dots (.) and ending with numbers (#171) * CWS: Improved the enconding and decoding performance * CWS: Implement all available print paramenters and per layer, missing values are got from gcode interpretation * CWS: Use set "light off delay" layer value instead of calculating it * CWS: Get light off delay per layer parsed from gcode * CWS - RGB flavour (Bene4 Mono): Warn about wrong resolution if width not multiples of 3 (#171) * ZCode: Allow to set Bottom and Light intensity (LightPWM) on paramters and per layer * ZCode: Allow to change bottom light pwm independent from normal light pwm * LGS: Light off and bottom light off was setting the value on the wrong units * UVJ: Unable to set per layer parameters * **Issues:** * When computing islands and resin traps together, they will not compute in parallel anymore to prevent CPU and tasks exaustion, it will calculate islands first and then resin traps, this should also speed up the process on weaker machines * Gather resin trap areas together when computing for other issues to spare a decoding cycle latter * When using a threshold for islands detection it was also appling it to the overhangs * Fix the spare decoding conditional cycle for partial scans * Change resin trap search from parallel to sync to prevent fake detections and missing joints at cost of speed (#13) * **Tools:** * Add layer selector: 'From first to current layer' and 'From current to last layer' * I printed this file: Multiplier - Number of time(s) the file has been printed. Half numbers can be used to consume from a failed print. Example: 0.5x if a print canceled at 50% progress * Pixel dimming: Increase wall thickness default from 5px to 10px * Import layers: Importing layers was not marking layers as modified, then the save file won't save the new images in, to prevent other similar bugs, all layers that got replaced will be auto marked as modified
Fixed |
I just tried to create 12 exposure tests with different exposure times for my bene 4 mono and get errors while trying to save the file.
loaded a .cws file I printed on the bene4 mono.
Open -> calibration -> exposure time finder -> set up everything -> file -> save as or -> convert to
I get these errors:
System.AggregateException: One or more errors occurred. (Index was outside the bounds of the array.)
---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at UVtools.Core.FileFormats.CWSFile.<>c__DisplayClass98_0.b__0(Int64 layerIndex) in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.Core\FileFormats\CWSFile.cs:line 613
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()
--- 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, Action
1 body, Action2 bodyWithState, Func
4 bodyWithLocal, Func1 localInit, Action
1 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, Action
2 bodyWithState, Func4 bodyWithLocal, Func
1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.For(Int64 fromInclusive, Int64 toExclusive, ParallelOptions parallelOptions, Action
1 body)at UVtools.Core.FileFormats.CWSFile.EncodeInternally(String fileFullPath, OperationProgress progress) in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.Core\FileFormats\CWSFile.cs:line 609
at UVtools.Core.FileFormats.FileFormat.Encode(String fileFullPath, OperationProgress progress) in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.Core\FileFormats\FileFormat.cs:line 1193
at UVtools.Core.FileFormats.CWSFile.SaveAs(String filePath, OperationProgress progress) in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.Core\FileFormats\CWSFile.cs:line 1064
at UVtools.WPF.MainWindow.<>c__DisplayClass95_0.b__0() in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.WPF\MainWindow.axaml.cs:line 1269
I checked the preview window and everything is within be black space, green print volume boundary line too and nothing is cut off.
No idea what's wrong.
The text was updated successfully, but these errors were encountered: