builtin plugins don't work
Reported version
3.0
Priority
P0 - Critical
Type
Functional
Frequency
Once
Severity
S1 - Blocker
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project
came up in #283096: Plugins Not working, which was the wront project to track this in
The Notenames and Colornotes plugins, part of ther MuseScore package, don't work in the released MuseScore 3.0.2.5312 on Windows 10
Fix version
3.0.3
Comments
I'm 100% sure it worked in a develoment version yesterday afternoon, on Windows 7
Works both with the AppImage as expected (OS: openSUSE Leap 15.0, Arch.: x86_64, MuseScore version (64-bit): 3.0.2., revision: 8ca4d2c).
Does this apply for ABC import plugin? If so, did it work in 3.0 and 3.0.1 (I mean installed versions, not portable ones)? And which kind of "don't work" is this issue about? Do they show up in Plugins menu and do nothing on clicking on them? Or are they hidden from that menu at all after activating them in Plugin Manager?
Not sure if it was replied to me ;-), but after a short check (and internet research for a file) also the ABC-plugin seems to work with OpenSuse. Not with a good result, but not sure if it caused by the plugin or caused by the file themselves.
I realized I have a copy of MuseScore on my Windows 8.1 system so here are the results of my tests.
This issue does not concern ABC import, and it works both in 3.0.1 and 3.0.2 versions.
The source of the issue seems to be incorrect enumerations values. Printing enumerators values (at least for ElementType enum) reveals that all values are shifted by 1 so all type comparisons are bound to go incorrectly. For example,
console.log(Element.INVALID);
prints 1 in my Windows installation of MuseScore while the correct value is 0. The same goes for other element types: the value of
Element.CHORD
is larger by 1 than the value oftype
property returned by Chord objects. Also runningObject.keys(Element)
crashes MuseScore for that installation.Linux builds seem not to have this problem, and enumerators values are correct for them. I don't know currently what may be the reason for this issue.
A Qt bug? I'm pretty sure it worked in my self-builds, using Qt 5.12 (and MinGW I think)
AppImage is using QT 5.9.3
Could be a combination of MSCV, Windows, Qt
See https://github.com/musescore/MuseScore/pull/4632
It became a working PR so I change the status. See https://github.com/musescore/MuseScore/pull/4632.
Yay! This is it! Fixes #283233: Enabling certain plugins takes a long time, once and again on every subsequent start of MuseScore too!
Fixed in branch master, commit 1b445842fa
_fix #283105: delay enums QQmlPropertyMap initialization
Initializing QQmlPropertyMap directly at static variables creation
time seems to have negative side effects, such as shifting all
property keys by 1 which makes it impossible to use the values given
by such map for correct evaluations and comparisons. Perhaps
QQmlPropertyMap needs some other (Qt-specific?) static structures be
initialized properly before it can be correctly created itself._
Fixed in branch master, commit c09fcdbbe7
_Merge pull request #4632 from dmitrio95/plugin-enum-shift
fix #283105: delay enums QQmlPropertyMap initialization_
Automatically closed -- issue fixed for 2 weeks with no activity.