-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 4.4 on windows - error in rendering #22369
Comments
I re-compiled musescore master, replacing the following:
This fixed the problem. I checked my display devices, found the following:
This appears to be the same problem as: Need further information as to what might need to be changed to solve this problem correctly in MuseScore |
have also determined that commenting out the line:
and setting the following environment variable also works:
|
I think the time signature issue on the "Additional score information" is not related to this, as that happened on other OSs as well while the rest seems Windows-specific. That issue has been fixed recently by #21876. The rest seems related to the switch to Qt 6. It's interesting that switching to software-based OpenGL fixes the issue, but I believe that that may have negative effects on performance. I don't know all about it though, and can't easily find more information about the implications of it. |
see
On Windows, ANGLE, a third-party OpenGL ES to Direct 3D translator, is no longer included in Qt 6. This means Qt::AA_UseOpenGLES and the environment variable QT_OPENGL=angle no longer has any effect. In dynamic OpenGL builds there is no automatic fallback to ANGLE in case OpenGL-proper fails to initialize. For QWindow or QWidget based applications using OpenGL directly, for example via QOpenGLWidget, this means that OpenGL-proper is the only option at runtime. However, the use of a pure software OpenGL implementation, such as Mesa llvmpipe that is shipped with the pre-built Qt packages, is still available. This means that the line
doesn't do anything now. I believe that we will need to track down where we QWindow and QWidget might be in error? |
Thanks for that resource. So basically the one problem here is that the content is visually offset w.r.t. the actual window; therefore, the mouse doesn't work correctly and the bottom bar falls below the border of the window. The code in src/appshell/internal/platform/win/winframelesswindowcontroller.cpp might be relevant. Edit: #8270 and the corresponding pull request seem most relevant. |
am looking at app.cpp:
I believe that this may be a potential source of the error, am going to look more into it. |
Have found that removing both of these references to OPENGL fixes this problem:
and
not sure if there are other implications if this is done, but it is a solution. |
Good work! Unfortunately, that comment about QQuickWidget is still actual as far as I know; without that line, the app crashes when opening the Format > Style dialog, which makes use of QQuickWidget.
Ultimately, we want the second option, but that is a lot of work, so we'd rather combine it with a redesign (instead of recreating the current design in QML now and then doing it yet again later when the redesign comes). So the second option is not feasible in the short term. Hopefully the first option is possible. |
Is the problem only seen with that widget or more generally?
…________________________________
From: Casper Jeukendrup ***@***.***>
Sent: Thursday, April 18, 2024 8:36:46 PM
To: musescore/MuseScore ***@***.***>
Cc: Steven Warwick ***@***.***>; Author ***@***.***>
Subject: Re: [musescore/MuseScore] musescore 4.4 on windows - error in rendering (Issue #22369)
Good work!
Unfortunately, that comment about QQuickWidget is still actual as far as I know; without that line, the app crashes when opening the Format > Style dialog, which makes use of QQuickWidget.
There are two things we can do:
* find a way to embed QML into the EditStyle dialog without using QQuickWidget
* rebuild the whole EditStyle dialog in QML.
Ultimately, we want the second option, but that is a lot of work, so we'd rather combine it with a redesign (instead of recreating the current design in QML now and then doing it yet again later when the redesign comes). So the second option is not feasible in the short term. Hopefully the first option is possible.
—
Reply to this email directly, view it on GitHub<#22369 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB3A2Y3NYSNPTPBQ375U4KLY6BRJ5AVCNFSM6AAAAABGEX2DPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRVGU2DENRRGU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Yes, currently |
am seeing different behavior - Format -> Style actually is working for many of the settings ( this is even using the 6.2.4 version of Qt) , however there are some that DO crash the program. I'm seeing the following Debug error show up when the crash happens:
It's looking like the OpenGL rendering support is a real issue. Perhaps it can be activated only for this widget, or the problem is addressed in a later version of Qt. I'd also look at replacing QQuickWidget with a different window type. |
Indeed, it crashes only on certain pages of EditStyle; namely exactly those that contain a QQuickWidget :) Since the Qt documentation states explicitly that QQuickWidget is only functional with OpenGL, which is not the default anymore in Qt 6, it's quite certain that it just won't work, also not with a higher version of Qt. |
Update: I later found that QQuickWidget is supported again when not using OpenGL in Qt 6.5. Compare these: So updating to Qt 6.5 would allow us to remove
|
@sdwarwick Could you check if this was working correctly in MuseScore 4.3, and thus whether it would be a regression in 4.4? We'll need that info to determine how to prioritise this. Switching to Qt 6.5 seems not a viable option right now, because it has significant inexplainable bugs and we're getting a bit too close to the 4.4 release date to do anything experimental. So for now, we'll have to try to avoid the usage of QQuickWidget, so that we can still remove that offending |
Format -> Style seems to be working, I tried a complete compile of the latest version and was able to make changes in some of the style settings.
The footer, window offset and mouse movement are still broken.
[cid:3ba8f966-a841-4d1d-a8d5-45c36fd8401b]
…________________________________
From: Casper Jeukendrup ***@***.***>
Sent: Monday, July 1, 2024 7:07 AM
To: musescore/MuseScore ***@***.***>
Cc: Steven Warwick ***@***.***>; Mention ***@***.***>
Subject: Re: [musescore/MuseScore] musescore 4.4 on windows - error in rendering (Issue #22369)
@sdwarwick<https://github.com/sdwarwick> Could you check if this was working correctly in MuseScore 4.3, and thus whether it would be a regression in 4.4? We'll need that info to determine how to prioritise this.
Switching to Qt 6.5 seems not a viable option right now, because it has significant inexplainable bugs and we're getting a bit too close to the 4.4 release date to do anything experimental. So for now, we'll have to try to avoid the usage of QQuickWidget, so that we can still remove that offending setGraphicsApi call.
—
Reply to this email directly, view it on GitHub<#22369 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB3A2Y5QOOGW4AUR4P3R4EDZKE2APAVCNFSM6AAAAABGEX2DPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJZHA2TQNZXGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
My question was rather: did the window offset issue (and mouse movement issue and bottom bar issue, which are consequences of that) already occur in MuseScore 4.3, or is it a new problem in 4.4? |
The current release version, which I just downloaded, marked
OS: Windows 10 Version 2009 or later, Arch.: x86_64,
Muse Score Studio version (64-bit): 4.3.2-241630831, revision:
github-musescore-musescore-22b46f2
Does NOT show the problem.
The current source version downloaded from github and compiled locally DOES show the problem.
…________________________________
From: Casper Jeukendrup ***@***.***>
Sent: Monday, July 1, 2024 11:06 AM
To: musescore/MuseScore ***@***.***>
Cc: Steven Warwick ***@***.***>; Mention ***@***.***>
Subject: Re: [musescore/MuseScore] musescore 4.4 on windows - error in rendering (Issue #22369)
My question was rather: did the window offset issue (and mouse movement issue and bottom bar issue, which are consequences of that) already occur in MuseScore 4.3, or is it a new problem in 4.4?
—
Reply to this email directly, view it on GitHub<#22369 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB3A2Y577LUN52TIS4TBR2DZKFWAVAVCNFSM6AAAAABGEX2DPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGQYTGNRRGU>.
You are receiving this because you were mentioned.
|
…terface::OpenGL) Eliminating the former was a requirement for eliminating the latter (at least with Qt 6.2.x); and removing the latter should resolve musescore#22369.
…terface::OpenGL) Eliminating the former was a requirement for eliminating the latter (at least with Qt 6.2.x); and removing the latter should resolve musescore#22369.
@sdwarwick Could you please try if #23438 does indeed solve the problem and that the format > style dialog still works correctly? |
…terface::OpenGL) Eliminating the former was a requirement for eliminating the latter (at least with Qt 6.2.x); and removing the latter should resolve musescore#22369.
This PR DOES fix the problem with both the footer and style rendering!
…________________________________
From: Casper Jeukendrup ***@***.***>
Sent: Tuesday, July 2, 2024 7:12 PM
To: musescore/MuseScore ***@***.***>
Cc: Steven Warwick ***@***.***>; Mention ***@***.***>
Subject: Re: [musescore/MuseScore] musescore 4.4 on windows - error in rendering (Issue #22369)
@sdwarwick<https://github.com/sdwarwick> Could you please try if #23438<#23438> does indeed solve the problem and that the format > style dialog still works correctly?
—
Reply to this email directly, view it on GitHub<#22369 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AB3A2Y2GFGBKDZ7NLZWRDHTZKMXW3AVCNFSM6AAAAABGEX2DPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBUGY2TEOBXHE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Issue type
UI bug (incorrect info or interface appearance)
Bug description
Please see pictures included - After compiling locally following documented procedure, it appears that the rendering of all the musescore objects are offset from the window definition provided to Windows. The mouse doesn't work correctly either. you have to point above the actual menu item to highlight an option.
note positions of the 4's are out of the box
note that no gutter displayed, which includes information about what is currently selected
tried to get help on forum, nothing suggested helped.
Steps to reproduce
Screenshots/Screen recordings
No response
MuseScore Version
4.4 master
Regression
I don't know
Operating system
windows 10
Additional context
git version id 49b114b
The text was updated successfully, but these errors were encountered: