musescore / MuseScore

MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests!
https://musescore.org
Other
11.85k stars 2.57k forks source link

app crashes when displaying plugins menu #23299

Open gucio321 opened 4 weeks ago

gucio321 commented 4 weeks ago

Issue type

Crash or freeze

Bug description

When I open any tab item and move cursor to Plugins the whole app crashes

Steps to reproduce

  1. click on any tab item (on tabbbar) e.g. File
  2. move mouse cursor over Plugin tab
  3. everything crashes

Screenshots/Screen recordings

Screencast from 2024-06-19 09-25-44.webm

MuseScore Version

2cb22967dab2843a91bff01e6322432a7997375c

Regression

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

Operating system

Fedora 40, Gnome, Wayland

Additional context

09:25:24.105 | DEBUG | main_thread     | onFireOpen      | try open uri: musescore://home, page: {"modal":"","params":{"sync":true},"path":"","sync":true,"type":1,"uri":"musescore://home"}
09:25:24.176 | WARN  | main_thread     | CloudScoreStatusWatcher::isDownloadedAndUpToDate | Not implemented!!
09:25:24.187 | WARN  | main_thread     | CloudScoreStatusWatcher::isDownloadedAndUpToDate | Not implemented!!
09:25:24.193 | WARN  | main_thread     | CloudScoreStatusWatcher::isDownloadedAndUpToDate | Not implemented!!
09:25:24.198 | WARN  | main_thread     | CloudScoreStatusWatcher::isDownloadedAndUpToDate | Not implemented!!
09:25:24.214 | DEBUG | main_thread     | UiActionsRegister::updateEnabledAll | currentCtx: UiCtxHomeOpened
09:25:25.253 | ERROR | main_thread     | UpdateScenario::doCheckForUpdate | Unable to check for update, error: [1701] 
09:25:46.653 | WARN  | main_thread     | Qt              | QQmlComponent: Created graphical object was not placed in the graphics scene.
09:25:46.803 | DEBUG | main_thread     | UiActionsRegister::updateEnabledAll | currentCtx: UiCtxHomeOpened
09:25:48.821 | ERROR | 140186165970624 | crashCallback   | Oops! Application crashed with signal: [11] SIGSEGV-Invalid memory reference
09:25:48.821 | WARN  | 140186165970624 | Qt              | QObject::~QObject: Timers cannot be stopped from another thread
musescore: /home/me/git/musescore/src/framework/audio/internal/worker/audioengine.cpp:48: virtual muse::audio::AudioEngine::~AudioEngine(): Assertion `(muse::audio::AudioSanitizer::isWorkerThread() || muse::audio::AudioSanitizer::isMainThread())' failed.
bkunda commented 3 weeks ago

Neither @zacjansheski nor I can reproduce on macOS. Will check on Windows, but I suspect this might be specific to your environment (or a Linux-specific issue).

MarcSabatella commented 3 weeks ago

I can’t reproduce on Debian with the 4.3.2 AppImage or with the latest nightly build (using “xcb” mode; I can’t run using Wayland). But based on the pathname shown in the log, this appears to be a self-built installation, and maybe it’s really a build issue?

zacjansheski commented 3 weeks ago

No issue on Windows or Ubuntu.

Please confirm if it is a build issue

Might also help to know what plugins are enabled

Maybe you can debug and get a stack trace?

gucio321 commented 3 weeks ago

hi, sorry for not replying. I just had my examination session last week. I have no idea why this could be a build issue, but I'll give it a try in a moment

gucio321 commented 3 weeks ago
(gdb) bt
#0  0x00007fffe0b5965d in ??? () at /lib64/libGLX_nvidia.so.0
#1  0x00007fffc2ab16be in ??? () at /lib64/libnvidia-glcore.so.550.90.07
#2  0x00007fffe0b79bfe in ??? () at /lib64/libGLX_nvidia.so.0
#3  0x00007fffe0b492c0 in ??? () at /lib64/libGLX_nvidia.so.0
#4  0x00007fffe1e0fe86 in ??? () at /home/me/git/musescore/BuildTools/Qt/624/plugins/xcbglintegrations/libqxcb-glx-integration.so
#5  0x00007ffff5d25fbd in ??? () at /home/me/git/musescore/BuildTools/Qt/624/lib/libQt6Gui.so.6
#6  0x00007ffff5bc70a8 in QRhi::endFrame(QRhiSwapChain*, QFlags<QRhi::EndFrameFlag>) () at /home/me/git/musescore/BuildTools/Qt/624/lib/libQt6Gui.so.6
#7  0x00007ffff760ab10 in ??? () at /home/me/git/me/BuildTools/Qt/624/lib/libQt6Quick.so.6
#8  0x00007ffff760def6 in ??? () at /home/me/git/musescore/BuildTools/Qt/624/lib/libQt6Quick.so.6
#9  0x00007ffff52de98f in ??? () at /home/me/git/musescore/BuildTools/Qt/624/lib/libQt6Core.so.6
#10 0x00007ffff4aa91b7 in start_thread (arg=<optimized out>) at pthread_create.c:447
#11 0x00007ffff4b2b3cc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

well... to be honest... I didn't expect this issue may point to nvidia driver... why would it?

Let me check an official appimage to check if it is a problem with my build...

gucio321 commented 3 weeks ago

confirme, same issue on latest .appimage

cbjeukendrup commented 2 weeks ago

Just realised that there might be a connection to https://github.com/musescore/MuseScore/issues/23399, which in turn might be connected to https://github.com/musescore/MuseScore/issues/22369

gucio321 commented 1 week ago

well I'm using neither fullscreen nor windows but.. maybe...

cbjeukendrup commented 1 week ago

@gucio321 You could try if https://github.com/musescore/MuseScore/pull/23438 fixes it (see https://github.com/musescore/MuseScore/wiki/Downloading-and-running-test-builds#downloading-builds-from-pull-requests for how to download the PR artifacts). Slim chance indeed, but we can try at least :)