Cannot load 'MuseScore 4.0' QML module; 'View -> Console' missing (v4.5.1, Win)

• Apr 10, 2025 - 00:10

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:

  1. Any QML plugin attempting to import MuseScore 4.0 fails to load immediately.
  2. The standard menu item View -> Console is completely missing from the application menu.
  3. Running MuseScore from CMD with the -d flag does not show any plugin console.log output in the CMD window.
  4. Application logs (%LOCALAPPDATA%\MuseScore\MuseScore4\logs) show the critical error message below when attempting to load a plugin.
  5. 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:

  1. QML plugins using import MuseScore 4.0 should load and execute correctly.
  2. The View -> Console menu item should be present to view application/debug messages.
  3. Running with -d should potentially show plugin console.log output in the launching terminal.

Steps to Reproduce: (Likely environment-specific)

  1. Install MuseScore Studio 4.5.1 (Build 250800846) on Windows 10 (64-bit, German locale might be relevant).
  2. 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"); }
    }
    
  3. Activate the plugin.
  4. Restart MuseScore.
  5. Open any score.
  6. Attempt to run the "TestPlugin" from the Plugins menu. -> Nothing happens visibly.
  7. Check if View -> Console menu item exists. -> It is missing.
  8. 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... in NotationStatusBar.qml, FlatButton.qml.
  • Multiple ERROR ... TypeError: Cannot read property 'iconColor' of null in StyledMenuItem.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.


Comments

Do you still have an unanswered question? Please log in first to post your question.