-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
[Bug] Can't save files since last update. (MacOS) System.NullReferenceException: Object reference not set #857
Comments
The error line does not make sense to trigger the problem. Can you try downgrade 1 version and try again? |
I can try that. I normally use the auto install command with terminal to upgrade. How do I install an older image? Also, I did a little more testing. If I do a quick open and save of the .ctb file using the windows version of UV Tools 4.2.5 I can then open the file, do my edits, and save using the Mac version. Basically there is something about the files generated by Lychee that the mac version doesn't like. |
Try with:
There are no different conditions for OS-specific under UVtools core code. Which make me thing error come from UI framework. |
It looks like you're likely on the right track. I reverted to version 4.2.4. Everything functioned normally. |
As the stack trace is no useful and present the wrong cause, I have no way to debug this (No mac machine to run under debugger). Let's hope next release of the UI framework fix this issue. |
I am seeing this issue (well an error with a trace that is very very similar). Happens when trying to convert a cxdlpv4 file format to any of the ctb type formats. I am running the latest release. Linux appimage version. Stack trace:
|
@pattonwebz Can provide the cxdlpv4 you trying to convert? |
Hey @sn4k3, It's happening with all the sliced files I tried in the last few weeks (I hadn't tried to convert to ctb format till just 2 weeks back). Here's the simplest I tested: I haven't tried converting other file formats to ctb since my slicer only produces cxdlpv4 for my printer. But I can test that tomorrow. |
Found the problem within the convert, it only affect version 5 of the format. |
Amazing, thanks for looking at this so fast! That is working after setting the empty string in terminal. For me the issue is present when converting to both v4 and v5 ctb files. Running the command resolves the issue for both though. Peek.2024-09-15.02-34.mp4 |
After this statement I inspected the code and found that version selector have a bug causing your convertion to always use CTBv5 no matter what version you selected. Will fix both on next release. |
- **File formats:** - (Change) Rename file and class from `PhotonSFile` to `AnycubicPhotonSFile` - (Change) Rename file and class from `PhotonWorkshopFile` to `AnycubicFile` - (Change) Rename file and class from `CXDLPFile` to `CrealityCXDLPFile` - (Change) Rename convert menu group from `CXDLP` to `Creality CXDLP` - (Fix) CTB (Version 5): `NullReferenceException` when trying to convert from a file with a `null` MaterialName (#857) - (Fix) Sanitize file version before convert the file to ensure capabilities (#934) - (Fix) Unable to set the format version when converting from files with a version that match it own default version (#857)
Closing as fixed |
System
Printer and Slicer
Description of the bug
The app functions normally until it comes time to save. When a save is attempted the app returns the following error.
"Error while saving the file"
System.NullReferenceException: Object reference not set to an instance of an object.
at UVtools.Core.FileFormats.ChituboxFile.EncodeInternally(OperationProgress progress) in UVtools.Core/FileFormats/ChituboxFile.cs:line 1908
at UVtools.Core.FileFormats.FileFormat.Encode(String fileFullPath, OperationProgress progress) in UVtools.Core/FileFormats/FileFormat.cs:line 4102
at UVtools.Core.FileFormats.FileFormat.SaveAs(String filePath, OperationProgress progress) in UVtools.Core/FileFormats/FileFormat.cs:line 5558
at UVtools.UI.MainWindow.<>c__DisplayClass102_0.b__0() in UVtools.UI/MainWindow.axaml.cs:line 2078
How to reproduce
I've reinstalled my slicer and UVtools. No change in behavior. This error only seems to be present on the MacOS version.
Files
Example file can be downloaded here:
https://memoryvault.myds.me:5001/d/s/xmBg1iKmrCa3Bf8L5JPA9OO5EzdrTlub/Jg4MRW1nzMslPptg2yiffN-NRELDIUv4-rLuAppDbPQs
The text was updated successfully, but these errors were encountered: