Cannot load 'MuseScore 4.0' QML module; 'View -> Console' missing (v4.5.1, Win)
Environment:
- MuseScore Version: MuseScore Studio 4.5.1 (Build: 250800846)
- OS: Windows 10 (Version 2009 or later, 64-bit)
- Installation Method: Initially via Muse Hub, later verified problem persists after clean reinstall via official stable standalone installer (including deep uninstall with Revo Uninstaller).
Observed Behavior:
- Any QML plugin attempting to
import MuseScore 4.0
fails to load immediately. - The standard menu item
View -> Console
is completely missing from the application menu. - Running MuseScore from CMD with the
-d
flag does not show any pluginconsole.log
output in the CMD window. - Application logs (
%LOCALAPPDATA%\MuseScore\MuseScore4\logs
) show the critical error message below when attempting to load a plugin. - Numerous other warnings and errors related to QML binding loops, missing resources/actions (
tours.json
,manage-plugins
), TypeErrors (iconColor
), translator loading (qt_de.qm
), and MuseSampler (MISSING INSTRUMENT ID
) appear in the application logs, suggesting potential general instability.
Expected Behavior:
- QML plugins using
import MuseScore 4.0
should load and execute correctly. - The
View -> Console
menu item should be present to view application/debug messages. - Running with
-d
should potentially show pluginconsole.log
output in the launching terminal.
Steps to Reproduce: (Likely environment-specific)
- Install MuseScore Studio 4.5.1 (Build 250800846) on Windows 10 (64-bit, German locale might be relevant).
-
Create a minimal QML plugin in
Documents\MuseScore4\Plugins\TestPlugin\TestPlugin.qml
:import QtQuick 2.0 import MuseScore 4.0 // <<< Fails here MuseScore { menuPath: "Plugins.TestPlugin" pluginType: "action" onRun: { console.log("Test plugin executed"); } }
- Activate the plugin.
- Restart MuseScore.
- Open any score.
- Attempt to run the "TestPlugin" from the Plugins menu. -> Nothing happens visibly.
- Check if
View -> Console
menu item exists. -> It is missing. - Check the latest application log file in
%LOCALAPPDATA%\MuseScore\MuseScore4\logs
for the error.
Key Error Message (from application log):
ERROR | ... ExtPluginRunner::run | Failed to load QML file: [Path_To_Plugin.qml]
ERROR | ... ExtPluginRunner::run | "[Path_To_Plugin.qml]:3 module \"MuseScore\" version 4.0 is not installed\n"
(Also noted: Attempting to load a component requiring import QtQuick.Dialogs 1.2
also failed with module "QtQuick.Dialogs" is not installed
)
Other Notable Errors/Warnings in Log:
ERROR ... Error loading translator ... qt_de.qm
ERROR ... failed read file: :/resources/tours.json
WARN ... not found action: manage-plugins
- Multiple
WARN/ERROR ... Binding loop detected...
inNotationStatusBar.qml
,FlatButton.qml
. - Multiple
ERROR ... TypeError: Cannot read property 'iconColor' of null
inStyledMenuItem.qml
.
Troubleshooting Performed:
- Verified issue persists after "Help -> Revert to Factory Settings".
- Verified issue persists after a complete uninstall using Revo Uninstaller (including registry cleanup) and reinstalling the official stable version 4.5.1 downloaded directly from musescore.org.
- Running MuseScore with
-d
flag does not produce expected plugin output in CMD.
Impact:
Complete inability to develop or run any QML plugin requiring the core MuseScore API. Missing standard diagnostic tools (View -> Console
). Suggests a fundamental issue with the QML environment or core module registration in this specific setup.
Attachment | Size |
---|---|
MuseScore_250409_231848.log_.docx | 29.19 KB |
MuseScore_250410_005252.log_.docx | 26.58 KB |
Comments
import MuseScore 4.0
? It still isimport MuseScore 3.0
and as of 4.4 you can even drop the version number and just useimport MuseScore