The port audio/musescore fails to launch for me on Freebsd 15.1 stable amd64. Below is the output when i go to launch it followed by a backtrace: musescore ✔ at 10:37:10 10:37:22.064 | INFO | main_thread | GlobalModule::onPreInit | log path: /home/rob/.local/share/MuseScore/MuseScore4/logs/MuseScore_260714_103722.log 10:37:22.064 | INFO | main_thread | GlobalModule::onPreInit | === Started MuseScore Studio 4.7.3, build: 1 === 10:37:22.150 | INFO | main_thread | LanguagesService::effectiveLanguageCode | System languages: QVariant(QStringList, QList("en-Latn-CA", "en-CA", "en-Latn", "en")) 10:37:22.150 | INFO | main_thread | MultiProcessProvider::init | our instance id is: 4d484102797947b996d3e6d3404b43e2 10:37:22.151 | INFO | main_thread | IpcChannel::setupConnection | starting ipc server 10:37:22.151 | INFO | 0xe7965ed9810 | IpcServer::listen | ipc server: client with id "4d484102797947b996d3e6d3404b43e2" has connected 10:37:22.151 | INFO | main_thread | IpcSocket::connect | success connected to ipc server 10:37:22.168 | WARN | main_thread | Qt | Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: App info not found for 'org.musescore.MuseScore'") 10:37:22.173 | WARN | main_thread | DiagnosticsModule::onInit | crash handling disabled 10:37:22.173 | INFO | 0xe7965ee2010 | StartAudioController::th_setupEngine | begin engine run 10:37:22.173 | INFO | 0xe7965ee2010 | StartAudioController::th_setupEngine | audio engine running 10:37:22.177 | INFO | main_thread | AlsaAudioDriver::open | Connected to default with bufferSize 1024, sampleRate 44100, channels: 2 10:37:22.177 | INFO | main_thread | AudioDriverController::open | Used audio driver: ALSA, opened: success, device: default 10:37:22.177 | INFO | main_thread | MuseSamplerResolver::init | MuseSampler library not found: /home/rob/.local/share/MuseSampler/lib/MuseSamplerCoreLib.dll ALSA lib seq_hw.c:540:(snd_seq_hw_open) [error.sequencer] ALSA lib seq_hw.c:540:(snd_seq_hw_open) [error.sequencer] open /dev/snd/seq failedopen /dev/snd/seq failed: No such file or directory : No such file or directory 10:37:22.185 | INFO | main_thread | AbstractCloudService::readTokens | Could not find the tokens file: /home/rob/.local/share/MuseScore/MuseScore4/musescorecom_cred.dat 10:37:22.185 | INFO | main_thread | AbstractCloudService::readTokens | Could not find the tokens file: /home/rob/.local/share/MuseScore/MuseScore4/audiocom_cred.dat 10:37:22.606 | ERROR | main_thread | ExtensionsConfiguration::manifestConfigs | failed read config data, err: [406] An error occurred when reading from the file, file: /home/rob/.local/share/MuseScore/MuseScore4/plugins/plugins.json ALSA lib seq_hw.c:540:(snd_seq_hw_open) [error.sequencer] open /dev/snd/seq failed: No such file or directory ALSA lib seq_hw.c:540:(snd_seq_hw_open) [error.sequencer] open /dev/snd/seq failed: No such file or directory ALSA lib seq_hw.c:540:(snd_seq_hw_open) [error.sequencer] open /dev/snd/seq failed: No such file or directory ALSA lib seq_hw.c:540:(snd_seq_hw_open) [error.sequencer] open /dev/snd/seq failed: No such file or directory 10:37:22.834 | INFO | main_thread | GuiApp::setup | Using graphics api: "opengl" 10:37:22.834 | INFO | main_thread | GuiApp::setup | Gui platform: "xcb" 10:37:22.834 | INFO | main_thread | GuiApp::setup | Detecting problems with graphics api 10:37:22.834 | INFO | main_thread | GuiApp::setupNewContext | New context created with id: 0 10:37:23.160 | WARN | 0xe7965eea810 | Qt | Member enabled of the object QQuickPinchArea overrides a member of the base object. Consider renaming it or adding final or override specifier 10:37:23.308 | WARN | 0xe7965eea810 | Qt | Member implicitWidth of the object QQuickItem_QML_808 overrides a member of the base object. Consider renaming it or adding final or override specifier 10:37:23.499 | ERROR | main_thread | AppShellConfiguration::sessionProjectsPaths | [401] The file does not exist 10:37:23.597 | ERROR | main_thread | crashCallback | Oops! Application crashed with signal: [11] SIGSEGV-Invalid memory reference Terminating due to uncaught exception 0xe7969c1f000 of type std::out_of_range [1] 89013 abort (core dumped) musescore Below is a Backtrace of the issue: Thread 1 "main" received signal SIGSEGV, Segmentation fault. Address not mapped to object. 0x0000000808c6cf99 in ?? () from /usr/local/lib/qt6/libQt6QuickTemplates2.so.6 (gdb) bt #0 0x0000000808c6cf99 in ?? () from /usr/local/lib/qt6/libQt6QuickTemplates2.so.6 #1 0x00000008083990d7 in ?? () from /usr/local/lib/qt6/libQt6Core.so.6 #2 0x0000000806787be7 in QQuickFlickableVisibleArea::updateVisible() () from /usr/local/lib/qt6/libQt6Quick.so.6 #3 0x0000000807a5578d in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #4 0x0000000807a4e68e in QQmlBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlags<QQmlPropertyData::WriteFlag>, QV4::Scope&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #5 0x0000000807a4c160 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /usr/local/lib/qt6/libQt6Qml.so.6 #6 0x0000000807aed0b9 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #7 0x0000000807ab3770 in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #8 0x0000000807ab31c5 in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlRefPointer<QQmlContextData> const&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #9 0x0000000807a6d524 in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #10 0x00000008067e17fb in ?? () from /usr/local/lib/qt6/libQt6Quick.so.6 #11 0x0000000807aed566 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #12 0x0000000807ab3770 in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #13 0x0000000807ab31c5 in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlRefPointer<QQmlContextData> const&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #14 0x0000000807a6d524 in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #15 0x00000008067e17fb in ?? () from /usr/local/lib/qt6/libQt6Quick.so.6 #16 0x0000000807a544c7 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #17 0x0000000807a53e55 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #18 0x0000000807a4e68e in QQmlBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlags<QQmlPropertyData::WriteFlag>, QV4::Scope&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #19 0x0000000807a4c160 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /usr/local/lib/qt6/libQt6Qml.so.6 #20 0x0000000807ae4049 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #21 0x0000000808398c1b in ?? () from /usr/local/lib/qt6/libQt6Core.so.6 #22 0x0000000807ba372d in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #23 0x0000000807b08bf3 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlRefPointer<QQmlContextData> const&, QFlags<QQmlPropertyData::WriteFlag>) () from /usr/local/lib/qt6/libQt6Qml.so.6 #24 0x000000080799c4a4 in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData const*, QV4::Value const&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #25 0x000000080799b381 in QV4::QObjectWrapper::setQmlProperty(QV4::ExecutionEngine*, QQmlRefPointer<QQmlContextData> const&, QObject*, QV4::String*, QFlags<QV4::QObjectWrapper::Flag>, QV4::Value const&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #26 0x000000080799e0b0 in QV4::QObjectWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #27 0x000000080797d28b in QV4::Object::virtualResolveLookupSetter(QV4::Object*, QV4::ExecutionEngine*, QV4::Lookup*, QV4::Value const&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #28 0x0000000807a0a63e in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #29 0x0000000807a0963d in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #30 0x000000080795258b in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #31 0x0000000807951c9b in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #32 0x0000000807ab7cd3 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) () from /usr/local/lib/qt6/libQt6Qml.so.6 #33 0x0000000807a58316 in QQmlBoundSignalExpression::evaluate(void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #34 0x0000000807a58b06 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #35 0x0000000807ae4049 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #36 0x0000000808398c1b in ?? () from /usr/local/lib/qt6/libQt6Core.so.6 #37 0x0000000807aed806 in QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #38 0x0000000807ab3770 in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #39 0x0000000807ab31c5 in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlRefPointer<QQmlContextData> const&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #40 0x0000000807a6d524 in QQmlComponent::create(QQmlIncubator&, QQmlContext*, QQmlContext*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #41 0x00000008067e17fb in ?? () from /usr/local/lib/qt6/libQt6Quick.so.6 #42 0x0000000807a544c7 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #43 0x0000000807a53e55 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #44 0x0000000807a4e68e in QQmlBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlags<QQmlPropertyData::WriteFlag>, QV4::Scope&) () from /usr/local/lib/qt6/libQt6Qml.so.6 #45 0x0000000807a4c160 in QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>) () from /usr/local/lib/qt6/libQt6Qml.so.6 #46 0x0000000807ae4049 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #47 0x0000000808398c1b in ?? () from /usr/local/lib/qt6/libQt6Core.so.6 #48 0x00000008067aec44 in QQuickItemPrivate::setEffectiveVisibleRecur(bool) () from /usr/local/lib/qt6/libQt6Quick.so.6 #49 0x00000008067ab714 in QQuickItem::setParentItem(QQuickItem*) () from /usr/local/lib/qt6/libQt6Quick.so.6 #50 0x0000000002d5cce5 in ?? () #51 0x0000000002d59d0c in ?? () #52 0x0000000002d5273e in ?? () #53 0x0000000002d52cc8 in ?? () #54 0x00000008079a350c in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #55 0x00000008079a0ede in QV4::QObjectMethod::callPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () from /usr/local/lib/qt6/libQt6Qml.so.6 #56 0x00000008079a8106 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /usr/local/lib/qt6/libQt6Qml.so.6 #57 0x0000000807a0ad0e in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #58 0x0000000807a0963d in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #59 0x000000080795258b in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #60 0x0000000807951c9b in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #61 0x0000000807ab7cd3 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) () from /usr/local/lib/qt6/libQt6Qml.so.6 #62 0x0000000807a5863e in QQmlBoundSignalExpression::evaluate(void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #63 0x0000000807a58b06 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #64 0x0000000807ae4049 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #65 0x0000000808398c1b in ?? () from /usr/local/lib/qt6/libQt6Core.so.6 #66 0x0000000807ba23db in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #67 0x00000008079a350c in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #68 0x00000008079a0ede in QV4::QObjectMethod::callPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) () from /usr/local/lib/qt6/libQt6Qml.so.6 #69 0x00000008079a8106 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const () from /usr/local/lib/qt6/libQt6Qml.so.6 #70 0x0000000807a0ad0e in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #71 0x0000000807a0963d in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #72 0x000000080795258b in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #73 0x0000000807951c9b in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) () from /usr/local/lib/qt6/libQt6Qml.so.6 #74 0x0000000807ab7cd3 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) () from /usr/local/lib/qt6/libQt6Qml.so.6 #75 0x0000000807a5863e in QQmlBoundSignalExpression::evaluate(void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #76 0x0000000807a58b06 in ?? () from /usr/local/lib/qt6/libQt6Qml.so.6 #77 0x0000000807ae4049 in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) () from /usr/local/lib/qt6/libQt6Qml.so.6 #78 0x0000000808398c1b in ?? () from /usr/local/lib/qt6/libQt6Core.so.6 #79 0x0000000002e77c17 in ?? () #80 0x0000000002eba482 in ?? () #81 0x0000000002ec1102 in ?? () #82 0x0000000002ed504e in ?? () #83 0x0000000002ec7ec0 in ?? () #84 0x0000000002eb4e19 in ?? () #85 0x0000000002b3ab98 in ?? () #86 0x000000000308205c in ?? () #87 0x000000000307581b in ?? () #88 0x0000000002b0739e in ?? () #89 0x0000000002aecddf in ?? () #90 0x00000008086e410f in __libc_start1 (argc=1, argv=0x7fffffffdf10, env=0x7fffffffdf20, cleanup=<optimized out>, mainX=0x2aec8b0) at /usr/src/lib/libc/csu/libc_start1.c:180 #91 0x0000000002aec774 in ?? () (gdb) quit
Same issue here on 15.1-RELEASE amd64 (quarterly packages). Could you please have a look at it? I rely on this software quite a lot and it's a bit annoying not to be able to run it on FreeBSD at the moment.
I tested it by loading an ancient MuseScore 3.x file, which renders ok, and plays, although the playback cursor is offset by 200 pixels or so and many other UI qlitches happen also. What I can't do is create a new file: I can click on "new" a couple of times, and then it crashes (with a different backtrace from what Robert reports). So in my most cursory of testing, it was ok :/ That said, I don't know when I can really sit down in an attempt to fix this.
Thanks for the feedback! For comparison, I tried to run musescore in a blank user session (without my configuration files) and there it did start, however like in your case it crashed when I tried to create a new file. By the way, I noticed there's also a musescore3 port so I installed that. Many thanks for making it available as a port again alongside the current version although it isn't supported upstream anymore. I really enjoy that this version still has the option to be built without WebEngine. A music notation software shouldn't come with hard dependencies on web features in my opinion... In the process, I noticed there's an issue of a conflicting file between both versions, so you can't have both installed at the same time: pkg: musescore-4.7.3 conflicts with musescore3-3.6.2_3 (installs files into the same place). Problematic file: /usr/local/share/icons/hicolor/scalable/mimetypes/application-x-musescore+xml.svg A little bit of web search also lead me to this: https://github.com/Jojo-Schmitz/MuseScore/wiki - a MuseScore developer keeps improving version 3 by fixing bugs and backporting features from version 4. It could be interesting to rebase the musescore3 port on this fork. Especially the ability it provides to open MuseScore 4 files (https://musescore.org/en/node/350678) would be really welcome.