-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch conversion silently fails (and buggy MSCX conversion) #23458
Comments
How do you generate parts individually using |
Could you provide us with a score that fails most of the time and the json ?? |
I have a similar issue and believe the batch conversion silently fails as I get no output at all. I am using a MacBook Air and the version Here is how I invoke MS4:
In addition to "IconCode", other elements such as "MusicalSymbolCode" or "ContainerType" are flagged. The text doesn't look like it is an error when it says When I try to add the option The conversion file
No output is written to the |
I'm having the same issue with MuseScore 4.4.4. This works: [
{
"in": "MyScore.mscx",
"out": "MyScore.pdf"
}
] (The above produces the same "Invalid QML" messages that @jmh-git mentioned above, but it successfully produces the pdf file.) This also works: [
{
"in": "MyScore.mscx",
"out": "MyScore.musicxml"
}
] (same as above) But this does not work: [
{
"in": "MyScore.mscx",
"out": [
"MyScore.pdf",
"MyScore.musicxml"
]
}
] As others have noted, it fails silently (apart from the same "Invalid QML" messages that are also produced when it succeeds). In linux, the exit code is 0. But it doesn't produce any output file. Crucially for what I'm trying to do, this also doesn't work: [
{
"in": "MyScore.mscx",
"out": [
[
"MyScore-",
".pdf"
]
]
}
] This also exits with 0, gives no error messages, but produces no output files. As @ThePython10110 noted in the Bug Description, you can work around using an array of output files (if you're not trying to export individual parts), by just using the But as @bemain 's question implies, there is no such work-around for exporting the individual parts. (At least as far as I know. If anyone has a solution, I'd love to hear about it!) |
Interestingly, it also doesn't work if [
{
"in": "MyScore.mscx",
"out": [
"MyScore.pdf"
]
}
] Even though this works: [
{
"in": "MyScore.mscx",
"out": "MyScore.pdf"
}
] So it seems that it's not about the number of output files, but about the fact that it's an array. |
I have a patch that makes this syntax work:
And also this one:
So, if this is the issue I can create the pull request to accept this syntax. |
I have created a pull request to allow an array of output files such as:
I expect this solves the initial problem |
By creating this PR ( #26229) I have discovered a way to make MuseScore crash always. Example set of files: Score_23458_alwasyfails.zip If you uncompress the zip:
You have to run it with this PR applied, but I double checked and it doesn't seem to have nothing in common with the PR itself. Sorry to bother @cbjeukendrup , but I don't know how to report it because I can only crash the program with this PR applied. Sorry to repeat myself, but I think the problem isn't in the PR itself. Could you please check it?. Last log files:
I have tried to find where the problem is but this seems a bit complex to me and I would like to focus on other issues. Anyway, if you consider that I could also try to fix it let me know |
… as an array of files
@pacebes Indeed it seems almost certain that this crash is not caused by a mistake in your code. That always gives us a bit of a dilemma: should we merge code that is fine in itself, but exposes a bug? I will look into this case when I can, but I am quite busy the coming week. |
I have seen that the bug is already exposed without this code. I have found a simple way to get a crash when you create a bunch of tasks this way (already supported without this code):
You always get a crash. I have created the issue: #26237
Thanks for the info. |
Issue type
Import/export issue
Bug description
Attempting to run a batch convert does absolutely nothing. It must have at some point, because I have converted files in MS4 previously, but not anymore. The JSON file is formatted correctly, and there is no error code. There's no way I can find to get any kind of debug information (
-d
/--debug
doesn't work).Fortunately, I was generating the JSON file with a Python script, so I just skipped the JSON and made my script convert every file individually with
-o
. This led me to another issue: Converting to .mscx files randomly fails sometimes. Retrying the conversion (sometimes multiple times) seems to work. It's not VST related, since it happened to a score that didn't have VST's (unless the built-in reverb counts). It doesn't happen with MP3, MIDI, PDF, MXL, or MusicXML file types (I haven't tested any others). It does seem to depend on the score, since some seem to fail most of the time, and some never fail. It doesn't seem to matter which instruments the score includes (one score only had guitar, and one only had piano and strings).Steps to reproduce
Batch convert issue
<path to MuseScore4.exe> -j <path to JSON file>
Other conversion issue
Screenshots/Screen recordings
No response
MuseScore Version
4.3.2
Regression
Yes, this used to work in a previous version of MuseScore 4.x
Operating system
OS: Windows 10 Version 2009, Arch.: x86_64
Additional context
No response
The text was updated successfully, but these errors were encountered: