Skip to content

Projects fail to save on v0.1.568.0 #2032

@Gungyphant

Description

@Gungyphant

Acknowledgement

  • I have read Getting-Started and FAQ
  • If dealing with version 0.1.549 or higher, you have installed the .NET 8 runtime

🐛 Describe the bug

Projects cannot save to Documents on v0.1.568.0; an error pop-up appears
If you close a project, the Exit OpenUtau pop-up appears and, when clicking on the button to save, it opens the save location selection menu and, when the location in Documents is selected, the pop-up will appear but the application will close before the pop-up finishes loading, and all unsaved changes are lost

Explains how to reproduce the bug

Creating a new project:

  1. Create a new project
  2. Press Ctrl+S to save
  3. Select a location in Documents and a name for the file
  4. An error pop-up will appear saying it failed to save
  5. OpenUtau is unaware of this and believes there are no unsaved changes
    Error pop-up:
Failed to save: C:\Users\Gungyphant\Documents\abc.ustx
Could not find file 'C:\Users\Gungyphant\Documents\abc.ustx'.

System.IO.FileNotFoundException: Could not find file 'C:\Users\Gungyphant\Documents\abc.ustx'.
File name: 'C:\Users\Gungyphant\Documents\abc.ustx'
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.File.OpenHandle(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
   at OpenUtau.Core.Format.Ustx.Save(String filePath, UProject project) in D:\a\OpenUtau\OpenUtau\OpenUtau.Core\Format\USTx.cs:line 101

0.1.568.0

Opening a pre-existing project (created on a previous version):

  1. Open the project
  2. Make a change
  3. Press Ctrl+S to save
  4. An error pop-up will appear
  5. OpenUtau believes there are no unsaved changes
    Error pop-up:
Failed to save: C:\Users\Gungyphant\Documents\Videos\Tenna covers\WIP\Tenna SMOTS\smots gaming.ustx
Access to the path 'C:\Users\Gungyphant\Documents\Videos\Tenna covers\WIP\Tenna SMOTS\smots gaming.ustx' is denied.

System.UnauthorizedAccessException: Access to the path 'C:\Users\Gungyphant\Documents\Videos\Tenna covers\WIP\Tenna SMOTS\smots gaming.ustx' is denied.
   at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at System.IO.File.WriteToFile(String path, FileMode mode, String contents, Encoding encoding)
   at OpenUtau.Core.Format.Ustx.Save(String filePath, UProject project) in D:\a\OpenUtau\OpenUtau\OpenUtau.Core\Format\USTx.cs:line 101

0.1.568.0

OS & Version

Windows 10

Logs

I deleted all the log files and reproduced the bug; no log file was created

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions