ABC plugin not working on macOS 10.14 or later
Reported version
3.4
Type
Plugins
Frequency
Few
Severity
S3 - Major
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project
ABC input plugin is not working on 3.4.2.25137.
Since the latest update the ABC input plugin is not working. I have tried reloading the plugin and reinstalling Musescore, but neither has worked. I use ABC files from several sources, all of which have been working fine until this latest update. I know this happened back in 2018 but was resolved, but it seams to be back again.
Attachment | Size |
---|---|
Screenshot 2020-04-07 at 09.26.29.png | 105.84 KB |
Screenshot 2020-04-07 at 09.28.43.png | 42.78 KB |
Fix version
3.5.0
Comments
The plugin itself works, but the conversion service it calls (which in turn uses (from https://wim.vree.org/svgParse/abc2xml.html) delivers an invalid xml it seems.
#
Please copy the ABC file here
This is one from Nigel Gatherer's site that I know works fine in previous ABC plugins
X:501
T:Soldier's Joy
S:Various
Z:Nigel Gatherer
M:4/4
L:1/8
K:D
FG | AFDF AFDF | A2 d2 d2 cB | AFDF AFDF | G2 E2 E2
FG | AFDF AFDF | A2 d2 d2 e2 | fafd egec | d2 d2 d2 :|
de | f2 f2 fagf | edcd efge | f2 f2 fagf | edcB A2
de | f2 f2 fagf | edcd efge | fafd egec | d2 d2 d2 :|]
jojo
I coped this from the wim.vree.org site and tried to use it in Musescore with the same result.
X:1
T:Praeludium et Fuga BWV 539
T:Praeludium
C: J.S. Bach
Q:1/4=120
M:4/4
L:1/8
K:Dm
%%score (1 2) 3
V:1
z4d4-|d2^c=Bc4|zD^FA=c4-
&xx2 A A4-|c2 BA G=FED
&A2 xx x xxx|^CDEF G4-
&x xxx z2E2-|G2[E2G2]F4
&E2 x6 |
E4-EA^GA|=B4-BBAB|^c4-cA=Bc|d^cde[d4f4]-|[d4f4-]ffed|c=BA^G ABcA|d8-|
d2d2c4|=B4-B4-|Bdc=Be4-|edc=BA4-|Ac=BAd4-|dfed=b4-|b2a^ga2e2|
f8-|ffed c=BA^G|A3=BTB3A|A4A4-|Ac=BAd2F2-|F2E2c4-|cedcf2A2-|
A2G2e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,2|A,6^G,2
&F,2D,2E,4|A,4- x4
&A,,4A,A,=G,A,|=B,4-=B,B,A,B,|C2C,2zC=B,C|D4-DDCD|
E2E,2zEDE|F4-FFEF|GFED ED^C=B,|^C2A,2DD,E,F,|G,F,G,A, B,A,B,G,|A,G,A,=B, ^CA,B,C|D2D,2-D,D,^C,D,|E,4-E,E,D,E,|
^F,4-F,D,E,F,|G,^F,G,A,B,4-|B,4-B,B,A,G,|A,4-A,4
&F,E,D,^C, D,E,F,D,|z2=B,,2E,4-
&^G,,6G,,2 |E,2x4E,2
&A,,2^C,2D,2A,,2|D,6^C,2
&B,,2G,,2A,,4|D,8
&D,,8|]
The plugin hasn't changed though. So it got to be the backend, and that is not under our control, as far as i can tell.
Edit: actually it is under our control, @Anatoly_os's to be exact.
Jojo. I took Nigel's Soldier's Joy ABC and put it through the Nicolas Froment's online ABC to MusicXml converter, which gave me the attached Xml file. I was able to open this file in MuseScore with no problem. Hope this might be of some help.
The online site also states that "Willem Vree's command-line abc2xml tool converts from abc to MusicXML files. It serves as the basis for Nicolas Froment's web-based abc to MusicXML converter"
Also from the online converter website it links back to the ABC plugin for Musescore which states : "The plugin requires Internet access since it calls the ABC2XML webservice to convert the submitted ABC code to MusicXML and then opens the MusicXML file in MuseScore"
In reply to jojo I coped this from the… by mradson68@gmail.com
I understand that it would appear that it is a third parties software is at fault, as it would appear that their own ABC is not able to be converted also see above for more information.
JoJo
I have been using the online website abc2xml, this morning, to take a variety of abc files and creating a file.xml, which I am then able to open in Musescore without any problems, which is effectively what the ABC plugin should do.
I am inclined to think that the failure of the ABC plugin is more to do with the new revision of MuseScore's handling of the ABC plugin, as previous to that revision I had been using the ABC plugin on a regularly basis and it was working fine.
I remember a couple of years back a similar problem, with a revision of Musescore which was resolved, but cannot remember just what that entailed but it did cure this problem.
The import of both the above ABC work just fine via the ABC plugin on 3.4.2, Windows 7, for me and today, can you check again?
Jo Jo
I checked this morning and it is not working . I have just checked again and still not working for me
I can't reproduce then. As said, both ABC 'file', copy/pasted onto the ABC plugin work fine for me
Can you attach that 'invalid' xml file here?
What does 'Show details' show?
You're on a Mac? What version exactly?
In reply to I can't reproduce then. As… by Jojo-Schmitz
Jojo
I am not sure what you are asking for? I have cut and pasted Soldier's Joy that I posted above into Musescore and still get the message see screenshot below, with "Show details" I then pasted the same file into the online abc2xml and generated the below file.xml. That file opened fine in MuseScore without any errors.
I am using Mac with OS Mojave version 10.14.6
Hope that helps
So the conversion worked, your file.xml is OK. Question is why the plugin gives that error message then, and only to you, but not to me?
Maybe it reads it too early, before it has been fully written to disk (hence that premature end of document in line 1, column 0, which indicates a 0 bytes filesize)?
Also why is it called my_file.xml in the dialog, but file.xml on your attachment, is it really the same file?
Ah, no, I don't want the ABC that website generates (we know that this works), but the one MuseScore complains about, that "my_file.xml". Is it really 0 bytes in size?
Jojo
I cannot get the my-file.xml as the plug in fails before that is processed. If you chose the try load anyway you get a black screen. see attached my-file.mscz
That's the mscz MuseScore creates from the broken/empty xml (and of course that score is then blank), I need the xml. In the very moment you get that error message it should be exactly at the place that error message claims it to be. Actually it should be there permanently, the plugin does not delete it as far as I can tell (and it does not on Windows)
This is the file shown but as you see it is 0 bytes
In reply to This is the file shown but… by mradson68@gmail.com
Jo Jo
see #301928 this is the one I was talking about and then I rolled back my OS then loaded MuseScore 3 and the problem disappeared. I guess it must be something to do with the ABC plugin code and the OS. Unfortunately I cannot role back this time.
#301928: ABC input plugin not working... so that seems to prove this to be a macOS issue. Not sure we can do much about it then?
I'd suspect it might be due to stricter permissions checks or a tighter firewall maybe?
Similar issue came up in #300325: Problem with ABC plugin which allows for the import of abc files, macOS 10.15 "Catalina" there
One of the developers with a Mac would need to continue investigating this.
JoJo
I have rolled back to OS High Sierra and the ABC Plugin is now working fine. If I understand correctly all versions of Mac OS after High Sierra does not run older software code, something to do with 32 byte v 64 byte coding I think . A lot of my older programs will not run on the newer OS.
As the plugin coding is not under the control of MuseScore then unless the code is updated, the only way is for anyone, with the newer Mac OS, to be able to input ABC into MuseScore is for them to use the online website abc2xml. Then then can convert the abc code into a xml file, which is downloaded to a folder in their MAC and they then can open this xml file in MuseScore.
Maybe need a note about this in the Mac download area to warn about this and give them the workaround.
For me I use this plugin a lot, so I will be sticking with High Sierra OS on my MAC as I prefer the convienance the plugin offers.
Surely nor related to 32-bit vs. 64-bit, not in this case, as MuseScore is the same (and still works) and the plugin is basically a script that is just interpreted and executed by MuseScore.
The plugin code is very well under MuseScore's control, the website it calls too, as I found out meanwhile.
But I'm pretty sure neither is the real culprit for this failure, much more likely some new restriction in macOS, like stricter file permissions or firewall rules for communicating with a website outside of the standard Mac web browser.
But maybe MuseScore or the plugin code can get tweaked to work around this apparent macOS issue. As said earlier a developer with a Mac needs to have a look at this.
So 2 workarounds:
In reply to (No subject) by Jojo-Schmitz
Jojo
I am not that technical but I do not that a lot of older programs will not work with newer OS and the warning that comes up is to contact the software provider, who needs to update their software. This was true for all Adobe software and for Audacity.
Yes agree with the 2 workarounds
Yes, it might have to do with that indeed. Not with the bitness though.
Maybe the plugin needs to get notarized too
Maybe it is sufficient to use "https" rather than "http" to contact that webservice?
Can you try the attached or modify your one to change http to https?
Check https://osxdaily.com/2019/03/29/safari-not-secure-website-ios-mac/, seems at least Safari now warns about https, as of macOS 10.14.4. So maybe it also prevents access via http to other applications?
See https://github.com/musescore/MuseScore/pull/5914
Not tested on Mac, so not sure it solves this issue, but it still works on Windows, so it at least doesn't seem to break anything.
A development test version will be available at https://github.com/musescore/MuseScore/pull/5914/checks?check_run_id=57… now, testers wanted!
Heh. :-)
@Anatoly-os can't reproduce the issue on his Mac on macOS 10.15.x, so can't verify whether the fix is working... (it doesn't harm for him either though)
OS: macOS 10.14, Arch.: x86_64, MuseScore version (64-bit): 3.4.2.25137, revision: 148e43f
and
OS: macOS 10.14, Arch.: x86_64, MuseScore version (64-bit): 3.5.0.26221, revision: 5f82263
"Macbook Pro 2013 Retina"
(additional test of a single character change in the QML code)
(please create a new user and try the same thing with the new created one.)
Updated to Mac OS Catalina and downloaded new MuseScore revision and ABC plugin now working.
So this issue and the corresponding PR can both be closed, I think?
OK, so at least in one case the change to https helps, in several other cases it isn't needed but doesn't harm either, and using https is the way to go anyway, so I guess we have a winner.
Edit: @Andrew47: I take it you mean that development build, that artifact, works, right?
Or do you mean the normal standard 3.4.2?
great work from MuseScore l know not many use ABC but it's great we can continue use it on our MACs.
Can you please confirm whether the fix using https (either by using the modified plugin attach further up or by using the development build I linked to) helped in your case?
Fixed in branch master, commit 4788f9747c
_fix #303495: ABC plugin not working on macOS 10.14 or later + collect_artifacts
by making it using https.
Switch to using https in some other places too._
Fixed in branch master, commit b54e6be421
_Merge pull request #5914 from Jojo-Schmitz/https
fix #303495: ABC plugin not working on macOS 10.14 or later + collect_artifacts_
In reply to Can you please confirm… by Jojo-Schmitz
Both worked. By adding the s then deleting MuseScore an all associated files on Mac re-installing the new revision update. Both worked ok on OS high Sierra and Catalina
Automatically closed -- issue fixed for 2 weeks with no activity.