# Audacity crashes when aligning Label tracks Align End to End

**URL:** <https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966>\
**Category:** Windows\
**Tags:** labels, bug\
**Created:** [February 18, 2025, 4:03pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966 "2025-02-18T16:03:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vishnu](https://forum.audacityteam.org/u/Vishnu)\
**Post date:** [February 18, 2025, 4:03pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/1 "2025-02-18T16:03:56Z")

</div>

**Description:**  
**App Name & Version:** Audacity

**App Source:** MS Store

**App Architecture:** X64

**App Version** : 3.7.1

**Pre-condition**

1.App should be installed and launched successfully.

**Steps to reproduce:**

1. Launch Audacity
2. Open audio file
3. Add Label Track
4. Go to Track → New → Label Track
5. Select label track
6. Align tracks → Align End to End

**Actual Results:**

Audacity application is crashing with Exceptional code 0xc0000005.

**Expected Results:**

Application should not crash.

**Reproducibility Rate:** 5/5

Is Audacity team aware about his issue? If yes, is there a plan to be fixed this issue on any upcoming releases?

---

<div class="post-metadata">

**Author:** ![waxcylinder](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/waxcylinder/32/37068_2.png) [@waxcylinder](https://forum.audacityteam.org/u/waxcylinder)\
**Post date:** [February 18, 2025, 5:21pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/2 "2025-02-18T17:21:43Z")

</div>

I suspect the the Track align commands were never designed to work with Label tracks.

For example if you have a couple of audio tracks and a label track, select all and then use Align End to End - then only the audio tracks get moved the label track is left alone unmoved.

I also tried:  
Audio Track1  
Label Track-1  
Audio Track2  
Label Track-2  
(to simulate a pair of Sync-locked track groups) - and selecting all of that and using Align End to End also aligned just the audio tracks and left the label tracks alone.

@Vishnu what precisely is your use case fir having the two label tracks, just the two label tracks?

_Having said that Audacity should never crash so I will log an issue on Muse’s Github bug-tracker using your STRs (Steps To Reproduce) - but I will wait until I hear back from you about your use case._

Peter

---

<div class="post-metadata">

**Author:** ![steve](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://forum.audacityteam.org/u/steve)\
**Post date:** [February 18, 2025, 5:46pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/3 "2025-02-18T17:46:17Z")

</div>

> [@waxcylinder](#):
>
> Having said that Audacity should never crash so I will log an issue on Muse’s Github bug-tracker

There is an easier way to reproduce the crash (tested on Linux):

1. Launch Audacity
2. “Tracks menu \> Add New \> Label Track”
3. “Tracks menu \> Align Tracks \> Align End to End”

---

<div class="post-metadata">

**Author:** ![steve](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/s/f19dbf/32.png) [@steve](https://forum.audacityteam.org/u/steve)\
**Post date:** [February 18, 2025, 6:08pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/4 "2025-02-18T18:08:36Z")

</div>

> [@waxcylinder](#):
>
> I suspect the the Track align commands were never designed to work with Label tracks.

As far as I remember, aligning label tracks has never been implemented. The Align commands should work with Audio tracks and Note tracks.

I do see some possible (but rare) use cases for aligning label tracks, but also practical implementation problems. In my opinion, Label tracks (and Time tracks) should be ignored by the Align commands, and the documentation should explicitly state that the Align commands operate (only) on Audio track and Note tracks.

---

<div class="post-metadata">

**Author:** ![Vishnu](https://forum.audacityteam.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vishnu](https://forum.audacityteam.org/u/Vishnu)\
**Post date:** [February 19, 2025, 11:56am UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/5 "2025-02-19T11:56:47Z")

</div>

Hi @waxcylinder,

Thanks for your response. We’ve noticed that when we select both Audio and Label tracks and use the “Align Track End to End” feature, everything works fine. However, if we select only Label tracks and use the same feature, the application crashes instead of showing a pop-up message instructing us to select one or more audio tracks, similar to how the Time Track feature works.

We are reporting this as a stability issue to prevent data loss due to crashes. While we understand that data can be recovered upon relaunching the application, it would be beneficial to fix this crash issue and provide an appropriate pop-up message to guide users in selecting the correct track combinations.

Thank you for your attention to this matter.

---

<div class="post-metadata">

**Author:** ![waxcylinder](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/waxcylinder/32/37068_2.png) [@waxcylinder](https://forum.audacityteam.org/u/waxcylinder)\
**Post date:** [February 19, 2025, 12:00pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/6 "2025-02-19T12:00:18Z")

</div>

> [@Vishnu](#):
>
> We are reporting this as a stability issue to prevent data loss due to crashes

Indeed - Audacity should **not** crash - so thanks for the bug report (and further feedback).

Good catch @Vishnu 🙂

And yes I did do some furter testing yesterday (after @steve 's comments in this thread) and observed, as you say, that the Time Track behaves much better in this regard.

_I will log this on Muse’s Github later today._

**UPDATE**  
Further testing shows that this is a regression on Audacity 2.3.0, introduced in 2.3.1 which was released on 18Nov22 - so we have had this bug for over two years now.

Peter

---

<div class="post-metadata">

**Author:** ![waxcylinder](https://forum.audacityteam.org/user_avatar/forum.audacityteam.org/waxcylinder/32/37068_2.png) [@waxcylinder](https://forum.audacityteam.org/u/waxcylinder)\
**Post date:** [February 19, 2025, 12:58pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/7 "2025-02-19T12:58:52Z")

</div>

@Vishnu@steve

Logged as:

> <https://github.com/audacity/audacity/issues/8286>
>
> \### Bug description
> 
> When a label track or label tracks are selected and with no… audio tracks selected if the used tries to use Align End to End or Align Together this will cause Audacity to crash.
> 
> Using the most of the other align commands with this use case causes the labels to be deleted from the label track.
> 
> This is a regression on Audacity 2.3.0
> 
> In the former case Recovery will restore the project, in the second use case Undo will restore the labels.
> 
> \_Basically Audacity's Align commands should always ignore any Label tracks that are in the selection - my understanding is that this was fundamentally part of the design concept from the outset.\_
> 
> \### Steps to reproduce
> 
> 1. Launch Audacity
> 2. Ctrl+B \_(to create a label track)\_
> 3. Tracks \> Align Tracks \> Align End to End
> 4. Observe: Crash
> 
> \_Although these STR's are a simple use case, the same occurs if the user has audio tracks and label tracks and just selects a label track or tracks.\_
> 
> \### Expected behavior
> 
> 1. Audacity should not crash
> 2. The user should receive a suitable error message informing them that audio tracks need to be selected
> 3. The Align commands should ignore Label Tracks (as they do Time Tracks.
> 
> This is what the user sees if a Time track is created at Step 2:
> 
> !\[Image\](https://github.com/user-attachments/assets/446a8d78-3294-4a70-9917-f19559b860fa)
> 
> \### Actual behavior
> 
> Audacity crashes (or destroys the users label data)
> 
> \### Audacity Version
> 
> Audacity 3.7.2
> 
> \### Operating system
> 
> Windows
> 
> \### Additional context
> 
> Initially reported on the Forum by user Vishnu:
> https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966

_And thanks Steve for the simpler STRs_ 🙂

Peter

---

<div class="post-metadata">

**Author:** ![system](https://forum.audacityteam.org/uploads/default/original/1X/81a69b20bcd548215067cfaceccc8a10bfa2d176.png) [@system](https://forum.audacityteam.org/u/system)\
**Post date:** [March 20, 2025, 4:04pm UTC](https://forum.audacityteam.org/t/audacity-crashes-when-aligning-label-tracks-align-end-to-end/131966/8 "2025-03-20T16:04:04Z")

</div>

Closed on March 20, 2025, 4:04pm UTC

This topic was automatically closed after 30 days. New replies are no longer allowed.
