Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Musescore not opening on Hyprland Linux #20499

Closed
leumaswein opened this issue Dec 14, 2023 · 8 comments
Closed

Musescore not opening on Hyprland Linux #20499

leumaswein opened this issue Dec 14, 2023 · 8 comments
Labels
awaiting reply from user needs info More information is required before action can be taken os: linux Potentially specific to Linux-based operating systems

Comments

@leumaswein
Copy link

Issue type

Accessibility issue (e.g. for keyboard-only or screen reader users)

Bug description

Screenshot_2023-12-14-23-31-37_8733

I'v installed hyprland and now I cannot load Musescore. Before it was ok on Sway (wayland). Pleas help, I am stuck...

Steps to reproduce

  1. install hyprland on garuda sway
  2. launch musescore

Screenshots/Screen recordings

No response

MuseScore Version

4

Regression

No.

Operating system

Garuda Sway with Hyprland

Additional context

No response

@muse-bot muse-bot added the accessibility Issues related to accessibility label Dec 14, 2023
@MarcSabatella
Copy link
Contributor

Is this the official AppImage, or a third-party build? Seems like it might be the latter - "mscore" isn't a proper command name for the installed AppImage, and I don't see a build number in the log. Those third-party builds are often problematic. Please try it with the official AppImage.

@cbjeukendrup cbjeukendrup removed the accessibility Issues related to accessibility label Dec 14, 2023
@cbjeukendrup cbjeukendrup added needs info More information is required before action can be taken os: linux Potentially specific to Linux-based operating systems labels Dec 16, 2023
@zacjansheski
Copy link
Contributor

Closing as stale / no response

@zacjansheski zacjansheski closed this as not planned Won't fix, can't repro, duplicate, stale Jan 3, 2024
@alejoguitar
Copy link

alejoguitar commented Aug 2, 2024

I'm having the same issue on NixOS hyprland. First with the NixOS package which is based on the Appimage. Now with the appimage itself

this is the log I get when starting the appimage from the command line:

[alejo@nixos-aero ~]$ appimage-run ./.local/bin/appimg/MuseScore-Studio-4.3.2.241630832-x86_64.AppImage
MuseScore-Studio-4.3.2.241630832-x86_64.AppImage installed in /home/alejo/.cache/appimage-run/6c5a28ea9fa697d38bcd006454af2c9a05da6215c38892545283dd33ba52c1a6
/nix/store/125damcm11wa5pg412zpfbkxz5v5hjjh-pipewire-1.0.7-jack/lib/libjack.so.0
/lib/libnss3.so
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
01:05:23.046 | INFO | main_thread | GlobalModule::onPreInit | log path: /home/alejo/.local/share/MuseScore/MuseScore4/logs/MuseScore_240802_010523.log
01:05:23.046 | INFO | main_thread | GlobalModule::onPreInit | === Started MuseScore 4.3.2, build number 241630832 ===
01:05:23.049 | INFO | main_thread | LanguagesService::effectiveLanguageCode | System language code: "en-US"
01:05:23.051 | WARN | main_thread | IpcSocket::connect | failed connect to server
01:05:23.051 | WARN | main_thread | IpcSocket::connect | failed connect to server
01:05:23.051 | INFO | main_thread | IpcSocket::connect | success connected to ipc server
01:05:23.051 | INFO | 140539072587456 | IpcServer::listen | id: "8bd6d5ce6c314393abf6813eeb0c497d"
01:05:23.142 | INFO | main_thread | DiagnosticsModule::onInit | success start crash handler
01:05:23.282 | ERROR | main_thread | MuseSamplerLibHandler::MuseSamplerLibHandler | Unable to open MuseSampler library, path: /home/alejo/.local/share/MuseSampler/lib/libMuseSamplerCoreLib.so
01:05:23.282 | ERROR | main_thread | MuseSamplerResolver::doInit | Incompatible MuseSampler library; ignoring
01:05:23.283 | ERROR | main_thread | MuseSamplerLibHandler::MuseSamplerLibHandler | Unable to open MuseSampler library, path: libMuseSamplerCoreLib.so
01:05:23.283 | ERROR | main_thread | MuseSamplerResolver::doInit | Incompatible MuseSampler library; ignoring
01:05:23.325 | WARN | main_thread | AbstractCloudService::readTokens | Could not find the tokens file: /home/alejo/.local/share/MuseScore/MuseScore4/musescorecom_cred.dat
01:05:23.325 | WARN | main_thread | AbstractCloudService::readTokens | Could not find the tokens file: /home/alejo/.local/share/MuseScore/MuseScore4/audiocom_cred.dat
01:05:25.530 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.530 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.531 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.531 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.533 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.533 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.534 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.534 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.535 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.536 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.536 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.537 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.537 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.538 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.539 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.539 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:25.540 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:25.540 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:27.238 | WARN | main_thread | QmlPlugin::setMenuPath | Not supported!! Use:title
01:05:27.241 | WARN | main_thread | QmlPlugin::setMenuPath | Not supported!! Use:title
01:05:27.264 | WARN | main_thread | QmlPlugin::setMenuPath | Not supported!! Use:title
01:05:27.273 | ERROR | main_thread | App::run | error: file:///home/alejo/Documents/MuseScore4/Plugins/System-Spacing-Tools-main/Evenly Distribute Systems Across Page.qml:266:4: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.

01:05:27.273 | WARN | main_thread | Qt | file:///home/alejo/Documents/MuseScore4/Plugins/System-Spacing-Tools-main/Evenly Distribute Systems Across Page.qml:266:4: QML RowLayout: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
01:05:27.280 | WARN | main_thread | AbstractMenuModel::makeMenuItem | not found action: Evenly Distribute Systems Across Page
01:05:27.280 | WARN | main_thread | AbstractMenuModel::makeMenuItem | not found action: Split Measure Across System
01:05:27.280 | WARN | main_thread | AbstractMenuModel::makeMenuItem | not found action: addCourtesyAccidentals
01:05:27.280 | WARN | main_thread | AbstractMenuModel::makeMenuItem | not found action: configCourtesyAccidentals
01:05:27.280 | WARN | main_thread | AbstractMenuModel::makeMenuItem | not found action: removeCourtesyAccidentals
01:05:27.486 | WARN | main_thread | Qt | virtual void Layouting::ItemBoxContainer::setSize_recursive(QSize, Layouting::ChildrenResizeStrategy) New size doesn't respect size constraints ; new= QSize(0, 770) ; min= QSize(87, 47) Layouting::ItemBoxContainer(0x55d2821f1210)
01:05:27.486 | WARN | main_thread | Qt | virtual void Layouting::ItemBoxContainer::setSize_recursive(QSize, Layouting::ChildrenResizeStrategy) New size doesn't respect size constraints ; new= QSize(0, -30) ; min= QSize(87, 47) Layouting::ItemBoxContainer(0x55d2821f1210)
01:05:27.504 | ERROR | main_thread | App::run | error: qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"

01:05:27.504 | WARN | main_thread | Qt | qrc:/qml/MuseScore/UiComponents/FlatButton.qml:179:5: QML Loader: Binding loop detected for property "itemImplicitWidth"
01:05:28.698 | ERROR | main_thread | UpdateScenario::doCheckForUpdate | Unable to check for update, error: [1701]

(after the checking for updates the program hangs and nothing else happens, so I have to interrupt it with ctrl +c )

@zacjansheski zacjansheski reopened this Aug 2, 2024
@alejoguitar
Copy link

Some progress on my end: sometimes I get musescore to work. I'm quite motivated because, frankly, without this I just can't work...

one of the errors complains about the qt_qpa_platform, so, trough some googling I realized problem might be there.
The flatpak app sometimes work. Some days, it's the appimage. I uninstalled the NixOS package. But starting musescore trough the comand line works pretty consistenly on the flatpak version when prepending QT_QPA_PLATFORM=wayland
So, for me, the full command is QT_QPA_PLATFORM=wayland flatpak run org. musescore.MuseScore

That same variable is set to "wayland" on my config, something which is quite standard to any wayland config. So, I'm guessing this is one of the annoyances coming from Wayland.
I know we Linux users are a small portion of Mscore users, but I really hope the open source gods will ask you to consider doing something with this info... thanks in advance!

@cbjeukendrup
Copy link
Contributor

We can only really comment about the AppImage, and not about the FlatPak because that is not made by us.

In the 4.2 and 4.3 AppImage, we excluded the Wayland libraries (#20391). The reason: without these libraries, MuseScore should fallback automatically to xcb (or whatever it's called) which worked at least to some extent. With the Wayland libraries, MuseScore would completely fail to launch (#18598). That issue is closed, but superseded by #24068.

Since recently, there is some hope, see the bottom of #24068. It looks like if we do package Qt's Wayland plugin, and not package some Wayland library so that the system library gets used, it might work.

@cbjeukendrup
Copy link
Contributor

There is a good chance that this fixed in 4.4 (RC downloadable at https://musescore.org/en/node/367322).

The Wayland platform plugin is packaged with the AppImage again, and the crash that happened with it (that was the reason for not packaging it in 4.2 and 4.3) was fixed in #24111.

Could you please try it out and let us know your findings? Thanks!

@alejoguitar
Copy link

Yes! It worked OOTB.
Not only that, but everything looks sharp as it's supposed. I sort of got used to the XWayland version that looked a little blurry. Now I'm amazed by the beauty of MuseScore.
I'll keep using this build and report if I find some other problems, but, as far as "Musescore not opening on Hyprland Linux", I think this can be closed as "solved". Thanks very much!

@cbjeukendrup
Copy link
Contributor

Thanks for testing! I'll close this indeed, and if you find new issues you're welcome to report them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reply from user needs info More information is required before action can be taken os: linux Potentially specific to Linux-based operating systems
Projects
Development

No branches or pull requests

7 participants