Skip to content

NullPointerException with MangOS printer Lychee file #474

@bonezinger

Description

@bonezinger

OS: Windows 10 64-bit
Slicer: Lychee 3.7.1
Printer: MangOS printer profile
UVtools version: 3.3.2 X64

Steps to replicate:

  1. Open Lychee, create a new MangOS printer profile (it's at the bottom of the list)
  2. Load any 3d file
  3. Slice, save file with .cws extension
  4. Open the saved file in UVTools with Partial mode

Doing that, the following error occurs:

System.NullReferenceException: Object reference not set to an instance of an object.
   at UVtools.Core.FileFormats.FileFormat.Sanitize() in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.Core\FileFormats\FileFormat.cs:line 5312
   at UVtools.Core.FileFormats.FileFormat.Decode(String fileFullPath, FileDecodeType fileDecodeType, OperationProgress progress) in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.Core\FileFormats\FileFormat.cs:line 3343
   at UVtools.WPF.MainWindow.<>c__DisplayClass104_0.<ProcessFile>b__1() in D:\Tiago\Dropbox\Programming\C#\UVtools\UVtools.WPF\MainWindow.axaml.cs:line 1453

The error does NOT occur if you open the file normally. However, it asks for Layer height, Display width and Display height once you load the file, even if you have set up all values properly in Lychee.

I am not entirely sure whether this is a problem with how Lychee saves the .cws file or with UVTools, since files generated with the Nova printer profiles have no such problem. I've reported this on Lychee's Discord as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions