Open TheManOctave opened 2 weeks ago
Perhaps the same as https://github.com/musescore/MuseScore/issues/20775 @cbjeukendrup could you please take a look at the reports?
The reports are unfortunately not very enlightening. The first is about a crash on quit rather than on start. In the other two, the stack trace mentions mostly methods that are deeply inside macOS frameworks, and not in our code. Only at the top, it mentions QPlatformWindow::window()
from Qt. It looks like Qt passes some completion handler to some macOS method, and then that completion handler is called, and it crashes inside that completion handler. It's not clear whether that is the fault of Qt or macOS, but that it is our fault seems unlikely.
That makes it difficult to move forward with this problem. Even if we could reproduce it and debug it, that would not bring us much further because it is so deeply inside macOS/Qt. I've searched the internet for similar cases; I came across a few that are (almost) the same, sorted by similarity:
Especially the latter suggests that it may be a macOS problem rather than a Qt problem.
I also found that the crash has been reported a few times on MuseScore.org:
I can't say whether it is the same as #20775, because it is still completely unclear what #20775 is (it seems a collection of random .org posts about crashes, that don't show many similarities).
@TheManOctave So, unfortunately, it looks like we cannot do anything about it. But some questions that might be relevant are:
Some other things you could try:
/Applications/MuseScore\ 4.app/Contents/MacOS/mscore
and press Enter, does MuseScore then start correctly? (be somewhat careful with Terminal; if you paste exactly the correct command, then not much can happen. Afterwards, first close MuseScore, then Terminal, and everything should be fine.)Terminal Launch - 6.21.24.pdf Crash Report 6.20.24.pdf
@cbjeukendrup Thanks for looking into it. Busy week, sorry for the delay. To answer your questions:
Tried a few of the things you mentioned.
Hm. Both crash reports show the same stack trace as before, which is good, in a way. The output from Terminal shows nothing unexpected.
The "works on first launch, crashes on second" thing is curious. When you delete the /Users/casper/Library/Application Support/MuseScore/MuseScore4Development
folder and the /Users/casper/Library/Application Support/MuseScore/MuseScore4
folder, does it still crash?
It might somehow have to do with other applications that you have open. Perhaps you could experiment a bit with that.
Issue type
Crash or freeze
Bug description
DESCRIPTION:
Since MuseScore 4.0 through 4.3.2 I am having constant crashes. I'm on an M1 Mac Mini running Sonoma 14.5, but this has been ongoing for a couple years and is now MuseScore4 virtually unusable. MuseScore3 still boots fine on my machine.
I've tried deleting old VST plugins, sound files, reinstalling through MuseHub and the non-Hub version, etc. Constant crashes on startup regardless of reinstalls, removing plugins, factory resets, opening from app, opening from score, etc. It doesn't matter if I open MuseScore4 directly, from the Applications folder, from Finder, or try opening from a score, it consistently crashes on startup. I did have VSTs 3+ years ago for MuseScore3 that I have long since deleted, and I don't currently run any plugins or VSTs for MuseScore4.
I can't find a way to reliably reproduce this issue, and there are times it just works if I try booting it enough times or reinstall. I've opened my scores on my Windows PC and my wife's M2 Macbook Air and do not have an issue with any of my scores on those machines.
SYSTEM INFO: Mac Mini 2020, Apple M1 CPU, 16 GB RAM, MacOS Sonoma 14.5, 1 TB SSD
Steps to reproduce
Screenshots/Screen recordings
No response
MuseScore Version
4.3.2
Regression
I don't know
Operating system
MacOS Sonoma 14.5
Additional context
mscore-2024-06-12-145934.pdf mscore-2024-06-17-120740.pdf mscore-2024-06-17-123001.pdf