Post by Peter SampsonI can change the error message to be more concise. That is easy enough.
I thought that the error message should at least include some indication of
which device runs out of space.
+1 the device (and probably only the device) should be mentioned
The complete path is too much information though.
+1 I agree
+1. But if this message appears only when as per the log
"(error 112: there is not enough space on the disk.)"
then it should say explicitly that there is not enough space to
write the file, ideally in the Title Bar "Out of disk space".
Can we get a Help button in this dialogue, Paul?
Post by Peter SampsonOnce this message is made more user-friendly, I think from my early-doors
testing
that you should be ready to mark this as Devel Fix-Made as James suggested
earlier.
The error from libsndfile is put up by code in ExportPCM.cpp that I did
not touch. This is not reaching the places where I throw exceptions.
Nonetheless I agree with Peter that it would be better for failed export
not to leave partial results behind, whether it takes an exceptional path or
not. I was independently concluding that this is a gap in the project.
It would be nice if this could be done :-)
What do we mean by "leave partial results behind"?
We looked before into Audacity checking if it had enough disk space
before exporting. It was deemed this was infeasible because available
space is dynamic.
So the response as I understand it was, just for libsndfile formats,
check if what was exported was the same as what was expected.
When disk space runs out during export, Audacity does for several
formats write properly headered but incomplete files. WAV is one
such format, MP3 is another (for FLAC it seems a corrupted file is
exported instead but I would have to test further to see if it depends
how much space was available).
I always thought writing an incomplete file was more of a feature than
a bug, but the real problem is that except for libsndilfe, no error is
reported when a valid short file or corrupt file is exported due to
lack of disk space. But I don't see how Audacity could refuse to write
a file or delete a partial file unless it can do the sort of checks we
thought infeasible. I actually think we could say "Right now, you
don't have the disk space to export this file. If you continue, the file
may be shortened or unplayable."
Anyway, the above shows us that the libsndfile message is a little
misleading - it implies no file was written, which will not always be
the case. Can the check Audacity already does identify if a partial
file was written and change the message accordingly?
Gale
Post by Peter SampsonIt makes sense that Repeat might succeed where Amplify does not, because
the first can re-use existing block files, just adding pointers to them to
accomplish the repetition in a track. Whereas Amplify really must make new
block files for the entire duration, while still saving the old files so
that you can undo.
I figured that was the underlying case.
On Wed, Apr 5, 2017 at 1:38 PM, Peter Sampson
Post by Peter Sampson3) Import with disk fairly full
Free a little room on the USB E: drive
Launch Audacity
Open the truncated project from the USB E: drive
Try Imporrting a three minute WAV file
Audacity failed to write to a file at
E:\runoutofspacetest_data\e00\d00\e0000fce.au
,Attempt this operation after removing unnecessary files.
One way to do that is with the Discard buttonsin the History dialog.
See the View menu.
Dismiss the error message.
Nothing is imported.
4) Generate with disk fairly full
Free a little room on the USB E: drive
Launch Audacity
Open the truncated project from the USB E: drive
Try Generating a three minute stereo tone
I get the same error message as in 1) earlier and 4) above.
Dismiss the error message.
Nothing is Generated.
5) Apply an effect with disk fairly full
Free a little room on the USB E: drive
Launch Audacity
Open the truncated project from the USB E: drive
Ctrl+A to select all
Effect>Repeat for 10 tests
Zoom to fit
Looks to repeat ok
now
Ctrl+A to select all
Effect Amplify
I get the same error message as in 1) earlier and 4) above.
Dismiss the error message.
Nothing is amplified.
Apart from the clunky error message this is looking good so far :-)
Peter.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
audacity-devel mailing list
https://lists.sourceforge.net/lists/listinfo/audacity-devel