Skip to content

[Bug] Can't save files in ctb format. (MacOS) System.NullReferenceException: Object reference not set #972

@SirKliv

Description

@SirKliv

System

UVtools v5.0.3 Arm64
Operative system: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 18:40:14 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8103 Arm64
Processor: Apple M1
Processor cores: 8
Memory RAM: 5.84 / 9.98 GB
Runtime: osx-arm64
Framework: .NET 9.0.0
AvaloniaUI: 11.2.3
OpenCV: 4.9.0

Sreens, resolution, working area, usable area:
1: 1440 x 900 @ 100% (Primary) (On this)
    WA: 1440 x 840    UA: 1440 x 840

Path:       /Applications/UVtools.app/Contents/MacOS/
Executable: /Applications/UVtools.app/Contents/MacOS/UVtools
Loaded file: jackal_treasure_island_1.ctb [Version: 4] [Class: ChituboxFile]
UVtools v5.0.3 X64
Operative system: Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 18:41:43 PST 2024; root:xnu-11215.61.5~2/RELEASE_X86_64 X64
Processor: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Processor cores: 12
Memory RAM: 8.80 / 13.94 GB
Runtime: osx-x64
Framework: .NET 9.0.0
AvaloniaUI: 11.2.3
OpenCV: 4.9.0

Sreens, resolution, working area, usable area:
1: 1792 x 1120 @ 100% (Primary) (On this)
    WA: 1792 x 1057    UA: 1792 x 1057

Path:       /Applications/UVtools.app/Contents/MacOS/
Executable: /Applications/UVtools.app/Contents/MacOS/UVtools
Loaded file: Hornet_jackal_1.ctb [Version: 4] [Class: ChituboxFile]

Printer and Slicer

  • Printer: Hardlight Black 2K
  • Slicer: Lychee 7.2.0

Description of the bug

Same as #857
Screenshot 2024-12-31 at 17 19 45

How to reproduce

File => Convert to => Chitubox => Chitubox CTB => v1 is work, v2-v5 doesn't

I tried using the terminal command

SlicerFile.MaterialName = string.Empty;

but no effect.

I generated a small ctb file. With it the error also appears.

Files

poussin.ctb.zip

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