MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

White Screen after update

Open T92G opened this issue 1 year ago • 1 comments

Issue type

Crash or freeze

Description with steps to reproduce

  1. Download Musescore 4.4 (.msi installer, MuseHub, Nightly builds).
  2. Launch the .exe file.
  3. It will show a blank screen.

Supporting files, videos and screenshots

https://github.com/user-attachments/assets/542c22d2-b28b-42b3-ba2b-333db765e173

What is the latest version of MuseScore Studio where this issue is present?

4.4.1

Regression

Yes, this used to work in a previous version of MuseScore 4.x

Operating system

Windows 10

Additional context

No response

Checklist

  • [X] This report follows the guidelines for reporting bugs and issues
  • [X] I have verified that this issue has not been logged before, by searching the issue tracker for similar issues
  • [X] I have attached all requested files and information to this report
  • [X] I have attempted to identify the root problem as concisely as possible, and have used minimal reproducible examples where possible

T92G avatar Aug 28 '24 19:08 T92G

Ditto. Used to work fine. First it refused to come up, at all, then it came up with the big white window.

However if I minimize them maximize the window, then it renders properly

fancellu avatar Aug 29 '24 10:08 fancellu

I have that problem too

ImposibleALX avatar Aug 29 '24 22:08 ImposibleALX

We've received a few of these through the Muse Hub support channels as well (no crash logs, just generic reports)

DominicMaas avatar Aug 29 '24 22:08 DominicMaas

I have the same issue. 4.3.2 was working fine.

alex-rivera-pm avatar Aug 30 '24 02:08 alex-rivera-pm

There seems to be a workaround (https://musescore.org/en/comment/1254679#comment-1254679):

  1. WIN + R and type cmd, then press ENTER
  2. copy/paste: set QT_QUICK_BACKEND=software then press ENTER
  3. copy/paste: "C:\Program Files\MuseScore 4\bin\MuseScore4.exe" then press ENTER.

Jojo-Schmitz avatar Aug 30 '24 08:08 Jojo-Schmitz

Can you test this build from https://github.com/musescore/MuseScore/pull/24313? It would also be very helpful if you could let us know what video card you have in your machine?

Eism avatar Aug 30 '24 13:08 Eism

Can you test this build from #24313? It would also be very helpful if you could let us know what video card you have in your machine?

It also gave me a blank screen (I don't know if my antivirus played a role).

imagen

T92G avatar Aug 30 '24 15:08 T92G

@T92G Can you try this build on your side? https://github.com/musescore/MuseScore/actions/runs/10634681512

DmitryArefiev avatar Aug 30 '24 15:08 DmitryArefiev

I've tried the linked build (https://github.com/musescore/MuseScore/issues/24269#issuecomment-2321644856), but still get a blank screen.

Anything specific you need for debugging?

moving-bits avatar Aug 30 '24 19:08 moving-bits

That's sad news. What you could do is:

  1. In Windows Explorer, enter %LOCALAPPDATA%\MuseScore in the address bar
  2. Create a ZIP archive of the MuseScore4 subfolder that you see there
  3. Upload it here

Hopefully that gives us another clue. Thanks in advance!

cbjeukendrup avatar Aug 30 '24 19:08 cbjeukendrup

Here are the files for release version 4.4.0 ms4.zip as well as for 4.4.1 development version ms4development.zip

moving-bits avatar Aug 30 '24 21:08 moving-bits

I think developers need to know which backend was used. Can you attach zip once again?

  1. Go to development build (bin folder with MuseScore4.exe)
  2. CTRL+L (cursor will focus in address bar), then type cmd and press ENTER
  3. Copy/paste this string to opened terminal window and press ENTER:
set QSG_INFO=1&& "MuseScore4.exe" --debug
  1. Close Musescore and create zip archive as you did before and attach it here on github. There should be string like DEBUG | main_thread | Qt| Using QRhi with backend D3D11 in log file.

Also you can try setting opengl backend and check if it works for you:

  1. copy/paste this string and press ENTER
set QSG_RHI_BACKEND=opengl&& "MuseScore4.exe" --debug

mercuree avatar Aug 30 '24 23:08 mercuree

@T92G Can you also provide some details please?

  1. What is your environment? (connected monitor or internal display, display resolution, dpi scaling in Windows (100, 125,150..%))
  2. Are you using default location for 4.4 installation (Program Files) ?
  3. Does your user name in Windows contain some specific symbols (specific to Spanish) or space (you can find it here C:\Users\your user name)?

DmitryArefiev avatar Aug 31 '24 09:08 DmitryArefiev

I think developers need to know which backend was used. Can you attach zip once again? set QSG_INFO=1&& "MuseScore4.exe" --debug

Here's a new zip after a run with --debug parameter. Quite a few error messages are included now: ms4development2.zip

Also you can try setting opengl backend and check if it works for you: set QSG_RHI_BACKEND=opengl&& "MuseScore4.exe" --debug

This DOES work for me :-)

(BTW: Thanks for the detailed descriptions on how to run MuseScore with different parameters.)

moving-bits avatar Aug 31 '24 10:08 moving-bits

Thank you! Based on provided logs I can assume that in your case backend D3D11 is used (this is default backend for qt6):

2024-08-31T11:59:37.150 | DEBUG | main_thread     | Qt              | Using QRhi with backend D3D11
  Graphics API debug/validation layers: 0
  QRhi profiling and debug markers: 0
  Shader/pipeline cache collection: 0
2024-08-31T11:59:37.150 | DEBUG | main_thread     | Qt              | threaded render loop
2024-08-31T11:59:37.151 | DEBUG | main_thread     | Qt              | Using sg animation driver
2024-08-31T11:59:37.151 | DEBUG | main_thread     | Qt              | Animation Driver: using vsync: 16.68 ms

and this backend failed with ATI Radeon HD 4600 Series:

2024-08-31T11:59:37.415 | DEBUG | 3244            | Qt              | Using sg animation driver
2024-08-31T11:59:37.415 | DEBUG | 3244            | Qt              | Animation Driver: using vsync: 16.68 ms
2024-08-31T11:59:37.416 | DEBUG | 3244            | Qt              | DXGI 1.2 = true, FLIP_DISCARD swapchain supported = true
2024-08-31T11:59:37.416 | DEBUG | 3244            | Qt              | Adapter 0: 'ATI Radeon HD 4600 Series' (vendor 0x1002 device 0x9490 flags 0x0)
2024-08-31T11:59:37.416 | DEBUG | 3244            | Qt              |   using this adapter
2024-08-31T11:59:37.416 | DEBUG | 3244            | Qt              | Adapter 1: 'Microsoft Basic Render Driver' (vendor 0x1414 device 0x8C flags 0x2)
2024-08-31T11:59:37.443 | DEBUG | 3244            | Qt              | MSAA sample count for the swapchain is 1. Alpha channel requested = yes.
2024-08-31T11:59:37.443 | DEBUG | 3244            | Qt              | rhi texture atlas dimensions: 2048x2048
2024-08-31T11:59:37.454 | WARN  | 3244            | Qt              | Failed to create vertex shader: Error 0x80070057: Falscher Parameter.
2024-08-31T11:59:37.454 | WARN  | 3244            | Qt              | Failed to build graphics pipeline state
2024-08-31T11:59:37.455 | WARN  | 3244            | Qt              | Failed to create vertex shader: Error 0x80070057: Falscher Parameter.
2024-08-31T11:59:37.455 | WARN  | 3244            | Qt              | Failed to build graphics pipeline state
...

I hope this information is useful for developers. Also I wonder if there is any difference in using software backend or opengl.

mercuree avatar Aug 31 '24 11:08 mercuree

Thank you very much for the information, it will help a lot! We have already added a detective error with graphics and automatic switching on the software. But it seems that it does not work as expected, it does not reproduce for us, so we cannot debug this solution ourselves. Your logs provide information on what the problem might be, on Monday we will continue to solve this problem.

igorkorsukov avatar Aug 31 '24 13:08 igorkorsukov

Thanks for your dedicated work on it! Let me know when I shall test with a new build or when I can provide you further insights for analysis.

moving-bits avatar Aug 31 '24 14:08 moving-bits

Just in case this is good to know, My system works fine without changes, but when I run the below command, MuseScore still starts as normal but I no longer get to see preview of the scores in the score dialog. The scores can still be opened as normal and the rest seems to work okay.

set QT_QUICK_BACKEND=software&&"C:\Program Files\MuseScore 4\bin\MuseScore4.exe"

henkdegroot avatar Sep 01 '24 09:09 henkdegroot

@moving-bits please try this build https://github.com/musescore/MuseScore/actions/runs/10669249340?pr=24377

igorkorsukov avatar Sep 02 '24 13:09 igorkorsukov

This build fixes the display of some elements (for example, plugins, avatar) in software mode. (except for floating panels) https://github.com/musescore/MuseScore/actions/runs/10669249340

igorkorsukov avatar Sep 02 '24 14:09 igorkorsukov

@moving-bits please try this build musescore/MuseScore/actions/runs/10669249340?pr=24377

Good news: This build does start on my machine. From the logfile I guess it reverts to "software" backend after having detected some GS errors. Logfiles are here: ms4development.zip

moving-bits avatar Sep 02 '24 17:09 moving-bits

We found that the software backend does not work perfectly, there is a issuess... so our research is not finished yet

igorkorsukov avatar Sep 02 '24 20:09 igorkorsukov

@moving-bits please check this build https://github.com/musescore/MuseScore/actions/runs/10685193103?pr=24407
and add logs

In the previous solution, we immediately switched in the software. In the new solution, we go through the graphic APIs one by one

For Windows, the typical situation is as follows:

  • Direct3D11 - default Api (there are problems)
  • OpenGL - we are doing a check, maybe it will work for you..
  • Software - used if others do not work

igorkorsukov avatar Sep 03 '24 15:09 igorkorsukov

Thanks for the update. The build does work for me, it uses "OpenGL" on my system.

First program start takes "quite some time" (> 10s?), subsequent starts are significantly faster (more like 3-4s), both with --debug parameter applied.

moving-bits avatar Sep 04 '24 19:09 moving-bits

Confirmed as fixed (here and on the forum)

RomanPudashkin avatar Sep 05 '24 07:09 RomanPudashkin