musescore / musescore/MuseScore

Conversion job fails with audio only in certain order

Open
#31,998 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

community
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Issue type

Import/export issue

Description with steps to reproduce

A convertion job fails, when there is a wav conversion as the last (but not only) conversion in the batch

Reproduction:

  1. Write a job.json with a convertion to .wav as the last, but not only element.
  2. Run musescore --job job.json
  3. Observe

This is the error:

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
/tmp/.mount_MuseSchCfjEb/AppRun: line 26: 32532 Aborted                 (core dumped) "${APPDIR}/bin/mscore4portable" "$@"
Supporting files, videos and screenshots
Image
In which versions of MuseScore Studio is this issue present?

4.6.5 Linux x86_64

Regression

Choose option...

Operating system

Ubuntu 24.04

Additional context

No response

Checklist
  • This report follows the guidelines for reporting bugs and issues
  • I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • I have attached all requested files and information to this report
  • I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure on Linux with MuseScore 4.6.5 using a job.json containing multiple conversions, with .wav last, and run musescore --job job.json. Trace the batch conversion path and handling of the final audio conversion. Done means the same batch completes without the basic_string::_M_construct null not valid exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.