MuseScore fails on Save with error "Result too large"

• May 16, 2018 - 15:15

MuseScore 2.2.1 on Windows 10
OS: Windows , Arch.: x86_64, MuseScore version (32-bit): 2.2.1, revision: 51b8386

I made multiple changes to a small score (28 measures), but when I tried to Save the score MuseScore reported an eror with the Temp file "Result too large".

I have Autosave enabled (2 minute interval), and I had worked on the score for about 10 minutes before trying to save explicitly. What might I be doing to have triggered this error message?

MuseScore_error_Result_too_large.png


Comments

In reply to by mike320

      //
      // step 1
      // save into temporary file to prevent partially overwriting
      // the original file in case of "disc full"
      //
 
      QString tempName = info.filePath() + QString(".temp");
      QFile temp(tempName);
      if (!temp.open(QIODevice::WriteOnly)) {
            MScore::lastError = tr("Open Temp File\n%1\nfailed: %2").arg(tempName, strerror(errno));
            return false;
            }

strerror(errno) maps the errno number set by the prev QFile::open(OpenMode) to an error string. "Disk full" should give ENOSPACE though which in turn should give "No space left on device", here we seem to get ERANGE, for reasons I don't understand.
If the filename were too long, I'd expect a different error

In reply to by Jojo-Schmitz

@Jojo My laptop has 494Gb still free, so it isn't a disk space problem. And the folder structure (which does have multiple sub-folders} is excatly the same as I have been using for several months. After posting the original message I made the changes to the score a second time, being careful to Save and close the file after each bunch of changes. I didn't shorten the filename or make any changes to the folders - and the score saved perfectly every time. Is it possible that MuseScore was trying to buffer too many unsaved changes on the first attempt to Save?

Attached is the score as it was before I started work and received the error.

Funny, today I had the same problem. I then just deleted the score file (while still having it open in MuseScore) and then saved it successfully

In reply to by Marc Sabatella

The Z: drive is the net use of my NAS. I have used Z: because it was free on all PCs present at home and easy to remember by the family that they always have to save/work on the Z: to avoid losing work in case of laptop crashing and to be able to access it from any laptop and avoid fighting between children because "he has the laptop with my school homework!".

In reply to by frfancha

And this shouldn't be relevant, I had the issue with a fine in C:\Users\Jojo\Desktop and of course my C: drive is not full nor am I lacking access privileges to my own Desktop folder

But see also the very old issues #3032: Compatibility with 0.9.4 and #3047: reading file ............ failed: Result too large, there it happened on reading rather than writing, and only if the path to the file contained a diacrit. I don't see this here though.

Do you still have an unanswered question? Please log in first to post your question.