MuseScore 2.0 can't open certain files created with MuseScore 1.3
MuseScore 1.3, in particular on Mac OSX, can create files with invalid XML characters in text elements. I have seen files with the following characters 0x00, 0x03, 0x10, 0x11, 0x12, 0x0C, 0x1e, 0x1b.
See attached file.
Attachment | Size |
---|---|
stafftext.mscz | 1.48 KB |
Comments
An ugly fix. Add the following here
Unfortunately, it comes with a performance cost (around 100ms for the file I tested with). And it's executed even for files without this problem, especially MuseScore 2.0 files.
Fixed in cafc8a9b82
I added a patched version of QXmlStreamReader which is more tolerant to invalid characters. cafc8a9b82
that added 22 new string to be translated, do we really need those? Are they exposed to the end user?
It also caused some 120 new warnings to show up during compile:
redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
and
redeclared without dllimport attribute after being referenced with dll linkage [enabled by default]
Maybe we need to lose the Q_CORE_EXPORT in ...libmscore/xmlstream.h?
Or make them inline in ...libmscore/xmlstream.cpp?
I created a task to solve the remaining issue #25453: Move QXMLReader to 3rd party
Automatically closed -- issue fixed for 2 weeks with no activity.