MuseScore crashes during start-up while displaying "Start center"
P1 - High
S3 - Major
The latest version of the Dev. version master crashes on my windows system. Tested with the versions from 31.08. and 1.9.
The crash seems to be provoked while the start center initializes. Maybe it reads some "unvalid" data??
Most likely the crash occurs while trying to read one of your recently opened scores so it can show a preview. If you could determine which score causes the crash, and share that score with us, that would be very helpful. You might have to move or rename your scores in order to start MuseScore.
It seems something happen while musescore read Thumbnail. Something changed and last musescore crashes while read score. I believe it happen not with all of your score but with one of them. To utilize app you can run app with -F to prevent crash.
To find the bug please do the following steps. Try to open your last scores. If I am right musescore will crash again with one of score. If this happens upload score please.
I tried a couple of ways to remove "old" data:
- start with "-F"
- delete folder "MuseScore3Development" in document folder
- delete folder "MuseScore3Development" in AppData (Local and Roaming)
- rename my "normal" MuseScore folder (from version 2)
Nothing helps. After start-up I see the Start center for about 3 seconds while the mouse cursor displays activity (circle) and then it crashes with no comment.
I also tried to start from command line - in order to see any error messages. But the cmd-Window closes on starting "nightly.bat"...
Is there a flag that I can set manually in the configuration to suppress the start center?
In MuseScore 2 this was:
but it seems not to work for MuseScore 3 (or I don't know which is the correct section where to put it)
In reply to Is there a flag that I can… by Bacchushlg
-n is supposed to start with the new score wizard only. Does it still work for version 3.0?
Try running mscore from the command line, passing the path to a score as the only argument.
Interestingly enough, -n will start with the new score wizard, but then after the wizard finishes, the start center will appear. This cannot be desired behavior.
The tip to start with a score as argument was the "solution". Now I could disable the start center and go further with testing...
-w to disable webview, maybe? Or disable startcenter preferences (once you got MuseScore started)
I had not considered the possibility that webview was causing the crash. That might actually be worth a try.
Yes, "-w" is what I needed!
Does it help you to fix the problem?
And the preference setting is
Is there some firewall in the way?
Firewall: only what is provided by Windows by default, no special settings.
"I believe it happen not with all of your score but with one of them."
Which one (s)? Please attach this one, or one of them.
And with precise/detailed steps?
cadiz1, I think you misunderstand. From what we've learned, there seems to be something about Bacchushlg's system that is causing MuseScore to crash when WebView is enabled. The problem does not seem to be with any of the recently opened scores, as we had originally thought. This seems to be a good place to start looking for suspicious code, but without being able to reproduce the crash, and without further information, it may be difficult to diagnose.
Maybe someone can add some logging output so that I can re-try on my system in order to find the reason for the problem?
Does disabling WebView really make all the difference? Both "Cheek to Cheek" and "Autumn Leaves" would trigger a crash if Start Center tries to show a preview for either score, regardless of whether or not WebView was enabled. Of course, it is possible that this crash is unrelated to either of those scores....
the option "-w" helped me. So the reason seems to be the Webview.
Also, the default directory for V3 is different from V2, so it should not "see" the damaged files.
In reply to the option "-w" helped me… by Bacchushlg
Startcenter sees and shows them as recently used files.
In reply to Start entering sees and… by Jojo-Schmitz
Is this also try after restart with option "-F"? I understood that this would reset all settings to the basic, including not using any settings from version 2. Or does V3 look into the V2-configuration?
V3 does not look into V2 prefs. Not does any development build look into any installed version's prefs. So no, recent files should not be shown after -F
Bacchushlg could you look at /MuseScore/bin/qt.conf file and post the content of this file please.
contents of qt.conf:
I had a similar problem, that I reported as Issue #276060.
Unfortunately the probmlem dissapperared after running with -F, so now I can't trace it any more.
Bacchushlg I built debug version of MuseScore for you. In debug version there is a debug console which is used for some debug information. See the link bellow and download archive please. I'm not sure but may be some useful debug information will get into debug console. It may help to diagnose the crash. If this will not help I'll prepare specific musescore version with some additional logging output
In reply to Bacchushlg I built debug… by handrok
unfortunately this debug version needs a couple of Dlls (msvcp140d.dll, vcruntime140d.dll, ucrtbased.dll) that it does not find on my machine.
Try this one please https://www.dropbox.com/s/olxx8iz3flh5jvn/MuseScore_Console.7z?dl=0
No more crash with this version. Also the "normal" nightly build now runs without the crash. Curious.
In reply to No more crash with this… by Bacchushlg
just came across this report while trying out the latest builds. Reason for me for testing is that I read somewhere that it is now possible to assign MIDI channels to the score manually.
I am having the same problem as the original poster: The start screen shows up (displaying a crash cymbal) and after a few seconds it dies without any notice. Trying -F, -w etc. all do not help, there is also no score that it is attemtping to load (unless it looks in the previous v2.3 settings).
I downloaded and tried the debug archive you have posted via dropbox and run that on my system, same result. However, I captured the debug output (attached to this post).
BTW, my system is Windows 10 latest build and patches, german language. If you need more specific information or would like me to run specific tests on my system please let me know.
In reply to Hi,… by reiners
Did you get the questions about language and keyboard the first time you ran it?
no, it doesn't get that far. Just shows the splash screen for a few seconds and then disappears.
You seem to have a different problem. You should open a new issue called "MuseScore crashes when displaying splash screen" Please report you operating system and build number you are using in the report. Can you try to download different builds until you find one that works? Include any successful in your issue report also. It will help track down where the problem is.
I have come across this problem again.
(Running from my local build, so it may not be exactly same problem)
The console writes the message:
[20704:22608:1008/210812.256:ERROR:broker_win.cc(59)] Error reading broker pipe: Pipen er blevet afsluttet. (0x6D)
Danish text translates to: Pipe has been terminated.
I can locate the source of the crash to be somewhere in ScoreBrowser.cpp/setScores.
I can probably get the exact score if I can get hold of the filename - held in QString st = fi.filePath();
How can I output that in a qDebug?
In reply to I have come across this… by neGjodsbol
Further investigation has located the crash:
Code snippet from void ScoreBrowser::setScores(QFileInfoList& s) in ScoreBrowser.cpp
If I open Ms restoring the pervious session and so by-passing Startcenter I am able to open the score that causes the crash.
Score is attached.
Crash happens both in my local build and in c77e761.
Score is attached.
Please try again. I do not see any attached score.
"Randomly" is because the issues is reproduced not for everyone.
Thank you very much handrok. Your application wax very helpfull to explain why my MuseScore application was crashing immediatly when started.
It was because it tried to initialize an ASIO device but this device was turned off.
As soon as I turned this ASIO device on, MuseScore stopped crashing when started.
Comes up time and time again, also in MuseScore 3
Workaround is to either use -w, or start MuseScore by double-clicking a score and then in Edit > Preferences > General switch off Startcenter
came up again in https://musescore.org/en/node/309396
Comes up time and time again lately with 3.5.0
Came up again in https://musescore.org/en/node/309739
Can replicate reliably in 3.5.0 with Edit > Preferences > General > Startcenter ON
Workaround = start Musecore by opening an existing score then turn startcenter OFF
Yea, this is known. Unfortunately it doesn't happen on any developers' machine
Fixed in branch 3.x, commit 8293210975
fix #275837, crash during the initialization of start center
Automatically closed -- issue fixed for 2 weeks with no activity.
Seems to still be happening, even in 3.5.2, see https://musescore.org/en/node/311969 and https://musescore.org/en/node/311963
Someone earlier mention disabling start center under preferences. That fixed problem for me also
In reply to Can replicate reliably in 3… by maevelander
This worked. Thank you
Indeed the workaround is to either use -w, or start MuseScore by double-clicking a score and then in Edit > Preferences > General switch off Startcenter
Note that depending on your screen size you may need to find the OK button at the bottom of that dialog, which might be off-screen. Simply pressing "Return/Enter" should do this for you, while that close button on the upper right won't!
Another workaround seems to be to check for and kill (using Task Manager on Windows) QtWebEngineProcess, and reinstall resp. repair installation (yes, this seems to be one of the rare cases where this might actually help)
See also #311727: Can't save a score online, brings up empty dialog and #310942: Freezes when clicking "Copyright and download settings" in Save Online dialogue. A reboot in between might help too
I was able to reproduce the situation described by Jm6stringer here: https://musescore.org/en/node/312192#comment-1035916
I uninstalled MuseScore 3, after enabling StartCenter (so that "open StartCenter at startup" was written in the preferences) and installed 3.5.1. I then closed and reopened MuseScore a couple of times. And I also reproduced the bug #310942: Freezes when clicking "Copyright and download settings" in Save Online dialogue, closed the frozen window and then reopened the StartCenter. I then launched the updater via Help -> Check for Update menu. The installation went as described by Jm6stringer. After rebooting the system, MuseScore was crashing each time I was trying to launch it, except when using "-w".
In a Dbgview window the following was printed:
 Qt WebEngine ICU data not found at C:/Program Files/MuseScore 3/bin/webengineresources/resources. Trying parent directory...
 Qt WebEngine ICU data not found at C:/Program Files/MuseScore 3/bin/webengineresources. Trying application directory...
 Qt WebEngine ICU data not found at C:/Program Files/MuseScore 3/bin. Trying fallback directory... The application MAY NOT work.
C:\Program Files\MuseScore 3\bin\webengineresources\resourcesfolder was empty.
I printed a list of all the files inside MuseScore 3 folder, reinstalled MuseScore 3.5.2 (which now was working properly) and compared the names of the files in the folder. In the faulty installation these files were missing:
C:\Program Files\MuseScore 3\bin\webengineresources\resources\icudtl.dat
C:\Program Files\MuseScore 3\bin\webengineresources\resources\qtwebengine_devtools_resources.pak
C:\Program Files\MuseScore 3\bin\webengineresources\resources\qtwebengine_resources.pak
C:\Program Files\MuseScore 3\bin\webengineresources\resources\qtwebengine_resources_100p.pak
C:\Program Files\MuseScore 3\bin\webengineresources\resources\qtwebengine_resources_200p.pak
C:\Program Files\MuseScore 3\bin\webengineresources\translations\qtwebengine_locales\en-US.pak
C:\Program Files\MuseScore 3\tours\autoplace.tour
C:\Program Files\MuseScore 3\tours\inspector.tour
C:\Program Files\MuseScore 3\tours\mmrest.tour
C:\Program Files\MuseScore 3\tours\navigate.tour
C:\Program Files\MuseScore 3\tours\noteinput.tour
C:\Program Files\MuseScore 3\tours\palette.tour
C:\Program Files\MuseScore 3\tours\select.tour
C:\Program Files\MuseScore 3\tours\spanner-drop-apply.tour
C:\Program Files\MuseScore 3\tours\timeline.tour
C:\Program Files\MuseScore 3\tours\welcome.tour
When I launch MuseScore with StartCenter on, after I close it an orphan QtWebEngineProcess.exe process is left in the task manager. So if I launch and close MuseScore 3 times, 3 QtWebEngineProcess.exe are shown in the task manager.
Hmm, the missing webengine parts were almost expected (at least suspected that this part of the install went south), but why also the tours?
Would a (backup) copy of that
bindirecory have helped with those crashes?
(and why don't we bundle all the other
icudtl.datis 9.66 MB, I would avoid a duplicate.
Note that all the other translation files in qtwebengine_locales were present except for en-US.pak (which was probably in use by QtWebEngineProcess when the installer was launched).
The thing that strikes me most is that a QtWebEngineProcess.exe is left orphaned in the task manager list each time MuseScore (with Startcenter at startup) is launched and closed.
If both icudtl.dat and qtwebengine_resources.pak are present in "bin" directory, even if they are not present in bin\webengineresources\resources, then there is no crash.
In reply to That might be a plain Qt bug… by Jojo-Schmitz
The only workaround for me was to uninstall. The last update screwed everything
Try reinstalling it after a reboot
Did you try the other workarounds, like opening MuseScore by double-clicking a score and then disabling start center? Or trying the Repair option from Windows? It's true uninstall / reinstall would also fix it, but that's the most drastic of these.
Ok so a lot of these things seem to involve commands, I have never used the command prompt in my life but would REALLY like to be able to continue arranging hymns so yeah i need some help.
?? As far as I can tell the Workarounds mentioned above don't need the command line
I had this problem. I restarted my computer, and before I opened any programs I downloaded and installed Musecore. It works now.
I had this problem. I restarted my computer and before opening any programs I downloaded and installed Musecore. It works now.
Is there a fix for this? i believe im experiencing the same on MacOS 10.14.1 i just installed for the first time and the comments above seem to apply to windows unless i mistaken?
@jakewoodhouse, your problem looks different. There is no crash, just a long pause and a black dialog box.
"Esc" out of that 'dialog' (which probably is asking for telemetry permissions)
In reply to "Esc" out of that dialog … by Jojo-Schmitz
omg it was as simple as that haha thank so much!
In reply to Someone earlier mention… by Pianoplayer1953
Unselecting start center works for me.
Is there a fix for this yet? I have not been able to open Musescore since August 2020
See above, there are several workarounds
In reply to Indeed the workaround is to… by Jojo-Schmitz
starting from the command line with the -w option did not solve
Note that I responded NO to the dialog asking to rebuild the previous session
I also reinstalled everything from scratch, so there should be no previous session
I tried to send you the DUMP but you servers denies (bad gateway error)
Then you either didn't wrongly or have a different issue. Using '-w' is all but one of the workarounds BTW.
The failure to send a dump is a known issue (and fixed, for 3.6), see #312120: [Crash Reporter] error message "Host requires authentication"
I don't know what half of this stuff means, I just wanna write music and after the new update (which I had to get because my old version wouldn't open unless I clicked for an update) the software won't stay open for more than 5 seconds. I've read the workaround above but I don't get what -w is or anything else that's already been written so please, please explain it in guy-who-dropped-computer-science-in-high-school-and-only-uses-this-laptop-for-gaming-and-writing terms.
The original bug discussed here is actually unrelated, it's from two years ago. What you are seeing is probably the result of a botched update that was not able to install one file that was in use by another program.
Solution is to reboot and then either uninstall & reinstall, or use the "repair" option in your installer.
In reply to -w to disable webview, maybe? by Jojo-Schmitz
-w worked for me..
I am not able to open the Musescore at all. As soon as I click yes to Restore the last file it goes into a crash. the program is useless
Check the reply you got in https://musescore.org/en/node/315846. Esp. the 2nd part of it (the first leads you here I guess)
This problem has reappeared for me in the most recent update. The work around (open existing score and disable start centre) works for now but starting start centre will always crash.
That's why it's better to use the more permanent solution also described here - reboot, then repair or reinstall.
In reply to That's why it's better to… by Marc Sabatella
Sorry, had missed that. Repair option worked.
In reply to Sorry, had missed that… by therestisnoise
If I reboot, then reinstall will I lose all the scores there?
In reply to If I reboot, then reinstall… by tshawn3107
Where are your scores located on your hard drive?
In reply to Where are your scores… by funnyflywheel
My scores were in my previous MuseScore (3.0.?) which was erased when I downloaded MuseScore 3.6.0
In reply to My scores were in my… by tshawn3107
After further searching on my computer I found my scores in "Documents"
No install, uninstall or revert to factory settings would ever touch your scores
For the record, Documents/MuseScore3/Scores is the default location for saves, so if you didn't choose a different folder when you first saved something, that is where your scores are. If you did choose a different folder, then they will be in that folder instead.
In reply to No install, uninistall or… by Jojo-Schmitz
After uninstalling and reinstalling the MuseScore 3.6.0 is now working on my computer. Thank you for your help
In reply to Indeed the workaround is to… by Jojo-Schmitz
What does "-w" even mean? And how do you do the task manager option? as in, what is the code for it?
-w disables WebView/WebEngine, a Qt component, for displaying web content, here responsible for the the online part of the startcenter, see https://musescore.org/en/handbook/3/command-line-options
Windows' Task Manager is invoked via Ctrl+Alt+Del or right-click into the task bar
After some local testing this is an educated guess at fixing the root cause created by the windows installer: https://github.com/musescore/MuseScore/pull/7345
I would need an officially signed installer package to be able to verify whether it does fix the simulated error condition.
Side note: As I don't experience the issue directly myself I used a workaround to force one of the known trigger conditions (launch QtWebEngineProcess manually so it is blocked during the update). It seems to have the same behavior, but we'll only know for sure once someone that is actually affected by it can test it out after initial verification tests shows this has a chance of fixing it.
And that PR got merged
My initial test with the 3.6.2 installer package indicate that this issue should indeed be handled correctly now. Fingers crossed that my test scenario matches the real world cases out there for those that were affected..
Automatically closed -- issue fixed for 2 weeks with no activity.