Is there a way to repair a corrupted AUP3 file?

@ceauke

yes please, our developers would like to see your project - do you have access to a suitable file sharing service. You can contact me by PM on the Forum and that way I can get you my Audacity email.

Peter.

For future reference: when you make an important recording like this please make a safety copy of the raw audio data by exporting a WAV file copy of it before you do anything else.

Peter.

Hi waxcylinder, sorry, I can’t PM yet, can you PM me please? I’m trying to send through transfernow.net. I’ll make a multi-volume rar file to fit under the 5GB limit.

See attached the .zip file of the crash.
Audacity_dbgrpt-7792-20210517T120051.zip (15.3 KB)

Hi ceauke

I just sent you a PM with me Audacity email address

Peter.

I’ve received both parts and forwaded them on to the developers.

Many thanks for that ceauke - much appreciated.

Peter.

Hi Ceauke

Thanks for the 2x rar files. I did what I could do without a lot of extended digging and piecing together. That got back the labels and two undamaged tracks. The middle stereo track though is toast. There are still some unmatched audio blocks in there that are potentially recoverable, probably from before applying the effect, probably from the middle track. Will send tools to try out on this when we have better recovery tools written. This example has been helpful, as this example points to a problem we have with transactions. Specifically it looks like half an action happened and not the other half. If our code were correct that could not happen. We’d either have the whole effect completed or no effect applied.

Sent to you separately.

–James.

Hi @ceauke

I sent you off list a second attempt at recovery of the file. I actually think this one recovered everything. The main mix that was missing in the previous one looks to be there, and looks to be undamaged.

Can you let me and waxcylinder know if it is intact? If it is 100% intact with no drop outs (just perhaps a slightly earlier version) then that is extremely useful to know in terms of us sorting out the cause.

–James.

@james crook, @waxcylinder

James, you have magic skills, it’s all working! Now that you totally fixed the corrupted file, I’ll admit that it is saving me hours of works. So I’m super grateful.

I’ll use backup (https://manual.audacityteam.org/man/saving.html) in future to protect myself but if it corrupts again, I’ll give you a shout to sharpen your tools :slight_smile:

Thanks again for your efforts and time!

@ceauke - and thanks for sticking with us on this. :sunglasses:

Peter.

Hi @James
I also have problem with mine corrupted Aup3 file. Yesterday I was recording some tracks with no problem and then when I opened it today and tried to record something new, suddenly audacity just have crushed and file stopped working. It has a lot of short tracks but I was wondering it is possible to recover at least the latest of them?

The file is pretty old I created it using audacity 2.1.2, then month ago I stared using audacity 3.0.2. Everything have been alright up to now. It’s 622 MB.
I’m working on Windows 10.

Dear developers and community.

I have quite similar problem.
I have occasionally leaved my laptop with opened Audacity without power supply. And it was switched off due to low battary. After I had started it again Audacity offered to recover the project. I had agreed and continued to work and than in some time Audacity is crashed. After crashing there is no possibility to open the project file again.

After file opening the following error is coming:
Screenshot from 2021-08-10 21-58-27.png
Backtrace:
ASSERT INFO:
/build/audacity-U7bTxL/audacity-3.0.2/src/Sequence.cpp(1457): assert “pixel == len” failed in GetWaveDisplay().

BACKTRACE:
[1] Sequence::GetWaveDisplay(float*, float*, float*, int*, unsigned long, sampleCount const*) const
[2] WaveClip::GetWaveDisplay(WaveDisplay&, double, double) const
[3] WaveformView::DoDraw(TrackPanelDrawingContext&, WaveTrack const*, wxRect const&, bool)
[4] WaveformView::Draw(TrackPanelDrawingContext&, wxRect const&, unsigned int)
[5] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[6] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[7] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[8] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[9] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[10] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[11] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[12] CellularPanel::Visit(wxRect const&, std::shared_ptr<TrackPanelNode> const&, CellularPanel::Visitor&)
[13] CellularPanel::Visit(CellularPanel::Visitor&)
[14] CellularPanel::VisitPostorder(std::function<void (wxRect const&, TrackPanelNode&)> const&)
[15] CellularPanel::Draw(TrackPanelDrawingContext&, unsigned int)
[16] TrackPanel::DrawTracks(wxDC*)
[17] TrackPanel::OnPaint(wxPaintEvent&)
[18] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[19] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[20] wxEvtHandler::TryHereOnly(wxEvent&)
[21] wxEvtHandler::ProcessEventLocally(wxEvent&)
[22] wxEvtHandler::ProcessEvent(wxEvent&)
[23] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[24] wxWindow::GTKSendPaintEvents(_cairo*)
[25] g_closure_invoke
[26] g_signal_emit_valist
[27] g_signal_emit
[28] gtk_container_propagate_draw
[29] g_closure_invoke
[30] g_signal_emit_valist
[31] g_signal_emit
[32] gtk_container_propagate_draw
[33] g_closure_invoke
[34] g_signal_emit_valist
[35] g_signal_emit
[36] gtk_container_propagate_draw
[37] gtk_container_propagate_draw
[38] gtk_main_do_event
[39] g_signal_emit_valist
[40] g_signal_emit
[41] g_main_context_dispatch
[42] g_main_loop_run
[43] gtk_main
[44] wxGUIEventLoop::DoRun()
[45] wxEventLoopBase::Run()
[46] wxAppConsoleBase::MainLoop()
[47] wxEntry(int&, wchar_t**)
[48] main
[49] __libc_start_main
[50] _start

If to push “Continue” it is possible to notice for a moment a project (less, than a second, almost instantly) and then the following error comes:
Screenshot from 2021-08-10 22-02-08.png
All the advises from this topic https://forum.audacityteam.org/t/please-help-recover-aup3-file/61955/1 I already tried (of course on the copy of original file), unfortunately it doesn’t help.

If necessary, I will also give a link to a file. Now I’m uploading it to the Google-drive.

Thank you very much for your support.

P.S.
System Lunux Ubuntu 20.04
Audacity 3.0.2

data Build Information
The Build
Program build date:
Jul 23 2020
Commit Id:
No revision identifier was provided
Build type:
CMake Debug build (debug level 1), 64 bits
Compiler:
GCC 9.3.0 (Audacity)
Installation Prefix:
/usr
Settings folder:
/home/alexey/.audacity-data
Core Libraries
wxWidgets
(Cross-platform GUI library)
3.1.3 (Audacity)
PortAudio
(Audio playback and recording)
v19
libsoxr
(Sample rate conversion)
Enabled
File Format Support
libmad
(MP3 Importing)
Enabled
libvorbis
(Ogg Vorbis Import and Export)
Enabled
libid3tag
(ID3 tag support)
Enabled
libflac
(FLAC import and export)
Enabled
libtwolame
(MP2 export)
Enabled
QuickTime
(Import via QuickTime)
Disabled
ffmpeg
(FFmpeg Import/Export)
Enabled
gstreamer
(Import via GStreamer)
Disabled
Features
Theme
(Dark Theme Extras)
Disabled
Nyquist
(Plug-in support)
Enabled
LADSPA
(Plug-in support)
Enabled
Vamp
(Plug-in support)
Enabled
Audio Units
(Plug-in support)
Disabled
VST
(Plug-in support)
Enabled
LV2
(Plug-in support)
Enabled
PortMixer
(Sound card mixer support)
Enabled
SoundTouch
(Pitch and Tempo Change support)
Enabled
SBSMS
(Extreme Pitch and Tempo Change support)
Disabled

Here is the corrupted file: https://drive.google.com/file/d/1JTDViDlBCUJe4p_0rPziEi1VrxsmdvpA/view

I have looked at your file and have uploaded a rescued .aup3 file. I have PM’d a link to you.

I have looked at your file and have uploaded a rescued .aup3 file. I have PM’d a link to you.

What was wrong with the project and what did you do to rescue it?

@nealexey

Audacity offered to recover the project. I had agreed and continued to work

In my opinion that wasn’t the best idea. If the Project comes back, save a protection copy immediately and clean shutdown the machine. Shift+Shutdown, Wait, and then Start.

A bad or unexpected shutdown can leave Windows in an unstable state. It may seem OK, but half of Windows may be running on lifeboats and rubber rafts. Any further instability may cause serious problems.

If you use Network or Cloud drives, it’s even worse. There’s always a delay between what it thinks you’re doing and what’s actually happening. It’s Not Good to get those out of step.

Koz

Also a good idea to export each track as WAV files.

I have looked at your file and have uploaded a rescued .aup3 file. I have PM’d a link to you.

Thank you very much, dear jademan, for restoring the file! In general, I am simply amazed at how good the free programs are and how quickly and efficiently is it possible to receive a support here on the forums! For my hobby purposes, the capabilities of these programs are completely enough. This is the second program that I use for my hobbies and also the second apply to the forum, the first was regarding to FreeCad, and I always meet such amazing support on the forums! You are really all great!

All other comments about file restoring, I will take also of course into account, and I will also just backup more often. You know, it’s a joke: people are divided into three categories: those who don’t make backups, those who make backups, and those who already make backups :slight_smile:

One the interesting thing that I noticed: the file became about 1.3 GB larger. It was 2.4GB, and now it is 3.7GB. It’s interesting to know, why?
Everything was preserved in the file, the only thing that moved out was the positioning of one track, I just moved it whole to the right time and the file became completely in order.

Me (and I think that not only me, judging by the number of messages about corrupted project files) would be interesting to know, how the file was restored? If it’s not difficult, is it possible to write a small tutorial? I think, it would be very helpful for the future? Or is each case very individual?

And thank you very much once again for your time and your amazing support!!! Have a nice weekend!

This is a very good question. I was wondering the same thing too! When I get some time, I’ll research this for you.

Elbow grease. Source code. Elbow grease. Debugging tools. Elbow grease. DB Browser. Elbow grease. Visual Studio. Did I say elbow Grease?

Yes. That is correct.

Yes. You are welcome. We got lucky! Glad you got your data back. :smiley:

Ou… Than I have no more questions. :slight_smile: Moreover, thank you very much for your help!

Hi
If somebody could check if is possible to rescue my file I will be really grateful
Here is my file: https://drive.google.com/file/d/1Bfk1CgEMyjrf0AIU1H_WZzRjkOww0HFN/view?usp=sharing

Anna,
Your file gave me a failed to read from a file in C: error;
“sqlite3.rc”: “101”,“sqlite3.context”: “SqliteSampleBlock::Load::step”.

I was able to recover your file. :smiley: I uploaded it and am PM’ing a link to you. Let me know how it works. :smiley:

I have also suggested to the developers a way that Audacity might someday be able to recover from this error automatically. See: Failed To Read From a File In C: may not have to be fatal. · Issue #1745 · audacity/audacity · GitHub