Skip to content

Save Project As corrupts projects and causes waveform loss (DBConnection.cpp line 473) #11244

Open

Description

@SHINOSTA

Bug description

A reproducible issue occurs when using "Save Project As" on an existing Audacity project.

The project can normally be opened, edited, saved and exported.

However, after using "Save Project As", Audacity reports write errors, waveform data disappears, and internal database errors are generated.

The issue has been reproduced multiple times on Audacity 3.7.8 under Windows 11 build 26200.

Steps to reproduce

  1. Open an existing working .aup3 project.
  2. Add a second audio track.
  3. Add an audio clip (a silent clip is sufficient).
  4. Select "Save Project As".
  5. Choose a new project name and save.

The problem occurs immediately after the Save Project As operation.

Expected behavior

The project should be saved under a new name while preserving all waveform data, tracks, labels and project contents.

Actual behavior

Audacity reports that the C: drive is not writable or that storage space is unavailable.

Waveform data disappears from the project.

Internal errors occur, including:

D:\a\audacity\audacity\libraries\lib-project-file-io\DBConnection.cpp line 473

Crash reports reference:

  • SqliteSampleBlock::Load::step
  • DBConnection::Prepare
  • sampleblocks table queries

The resulting project may become a shell project containing labels and track structure but no waveform data.

Additional observations:

  • Normal Save works.
  • WAV export works.
  • Windows Explorer file copy works.
  • The issue appears specifically when using "Save Project As".
  • The issue has been reproduced multiple times.

Audacity Version

Audacity 3.7.8

Operating system

Windows

Additional context

I am a Japanese user and used ChatGPT to help organize this report into English. All observations are based on actual testing performed on my system.

Additional observations:

  • A previous project became unreadable and generated SQLite-related errors.
  • Error reports included references to:
    • SqliteSampleBlock::Load::step
    • DBConnection::Prepare
    • sampleblocks table queries
  • A file named "(null)" (approximately 80-90 MB) is sometimes created when closing modified projects.
  • The "(null)" file appears only after modifications have been made and the project is closed.
  • Simply opening and closing a project does not create the "(null)" file.
  • Copying a working .aup3 file using Windows Explorer often results in a healthy copy that opens normally.
  • The issue was reproduced both inside and outside OneDrive-managed folders.
  • Windows version: 10.0.26200
  • Audacity version: 3.7.8

Activity

  1. added theissue type on Jun 24, 2026
  2. added
    AU3-bug
    on Jun 24, 2026
  3. dozzzzer commented on Jun 24, 2026

    @dozzzzer
    Contributor

    Cannot reproduce on either Windows 10 or 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AU3-bug

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions