Repeatable on Windows 10. Latest build.
Issue: Audacity crashes if you repeatedly split, change, join a track.
- Download and Install the latest version of audacity (for this test I used 2.4.1 but I confirmed it already existed in earlier versions)
- Download notepad++ (you could also just use notepad)
- Make sure all your settings are default
- Download some random audio material that’s longer than 40 minutes. (The longer the production the quicker you will confirm these results) And import this into a new empty project.
- Create a second track for your convenience.
- Save this project on your local drive somewhere.
- Open Windows explorer to the folder created in step 5
- Change your folder view settings to details in order to see the file size. (If file size is still not visible add the missing column)
- Set this folder aside but in a way you can keep an eye on the size of the project’s .aup file.
How to replicate the issue quickly:
To replicate you will use the Selection Tool and Time Shift tool. Also Split activity and Join activity & Save.
- Select some audio (a minute or two) on the track created during step 4 of the preparation and split the audio into a few pieces.
- Re-arrange those pieces using the Time Shift tool (using an empty track makes this easier as you can move a section of audio to the second track while you re-arrange)
- Once all audio has been re-arranged and placed back in the original track. Select the entire track and use the Join tool so the whole track is merged back into one track with no splits.
- Save the project
- Look at the size of the .aup file mentioned in step 9 in the preparation.
- Repeat steps 1 through 5 several times.
After following these steps you will at first notice the project growing by just a kilobyte here and there but soon the size of the project increases exponentially. If done enough times your .aup project size will grow to a few megabytes until saves or really doing any activity takes so long the program hangs (possibly crashing if you keep going) while trying to save such a large .aup file.
Upon inspection of the large .aup file you will see a section of envelope points as referenced below but thousands of them.
And each time you replicate steps 1-5
At no point was the envelope tool used.
Hope these details are enough to reproduce.