Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crashes when displaying plugins menu #23299

Open
gucio321 opened this issue Jun 19, 2024 · 12 comments
Open

app crashes when displaying plugins menu #23299

gucio321 opened this issue Jun 19, 2024 · 12 comments
Assignees
Labels
crash Issues involving a crash of MuseScore needs info More information is required before action can be taken os: linux Potentially specific to Linux-based operating systems plugins Related to MuseScore's QML plugin framework (NOT VST/audio plugins) regression MS4 Regression on a prior release

Comments

@gucio321
Copy link

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

2cb2296

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:https://home, page: {"modal":"","params":{"sync":true},"path":"","sync":true,"type":1,"uri":"musescore:https://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.
@muse-bot muse-bot added crash Issues involving a crash of MuseScore regression MS4 Regression on a prior release labels Jun 19, 2024
@zacjansheski zacjansheski added the needs info More information is required before action can be taken label Jun 20, 2024
@bkunda bkunda added the os: linux Potentially specific to Linux-based operating systems label Jun 21, 2024
@bkunda
Copy link

bkunda commented Jun 21, 2024

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
Copy link
Contributor

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
Copy link
Contributor

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?

@zacjansheski zacjansheski added waiting reply from user plugins Related to MuseScore's QML plugin framework (NOT VST/audio plugins) labels Jun 21, 2024
@gucio321
Copy link
Author

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
Copy link
Author

(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
Copy link
Author

confirme, same issue on latest .appimage

@cbjeukendrup
Copy link
Contributor

Just realised that there might be a connection to #23399, which in turn might be connected to #22369

@gucio321
Copy link
Author

gucio321 commented Jul 4, 2024

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

@cbjeukendrup
Copy link
Contributor

@gucio321 You could try if #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 :)

@AshenColors
Copy link

I also ran into this problem on flatpak and then while troubleshooting latest AppImage (MuseScore-Studio-4.3.2.241630832-x86_64.AppImage) , and consequently found this issue. I tried the build artifact from #23438, but the same issue occurs. I am also running Nvidia graphics on a Wayland desktop environment.

For the sake of troubleshooting, I loaded up a secondary device using the same distro with essentially all the same settings but relying on Intel graphics instead, and I am unable to reproduce the same crash on the same latest AppImage. I think it's safe to say the issue is somehow Nvidia-connected.

@cbjeukendrup
Copy link
Contributor

It would be worth checking if this is any better in the master nightly builds: https://musescore.org/en/nightly-builds
These are namely using Qt 6 instead of Qt 5, and Qt 6 has allegedly some big changes w.r.t. graphics. So perhaps that changes something.

@AshenColors
Copy link

AshenColors commented Jul 18, 2024

Still reproduces (8e3b4f2), so no luck with the easy fix. This is the terminal output at the point of the crash, which is consistent with earlier tested versions, and which inspires fear in the tester brain:

00:43:48.185 | WARN  | main_thread     | Qt              | QQmlComponent: Created graphical object was not placed in the graphics scene.
[18762:18762:20240718,004352.180165:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.181543:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.183567:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.183632:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184098:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184184:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184361:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184420:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184465:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184550:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184592:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184627:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184667:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184709:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184814:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184852:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184889:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184923:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184961:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.184994:ERROR elf_dynamic_array_reader.h:61] tag not found
[18762:18762:20240718,004352.185029:ERROR elf_dynamic_array_reader.h:61] tag not found
/tmp/.mount_MuseScAYCEVg/AppRun: line 26: 18749 Segmentation fault      (core dumped) "${APPDIR}/bin/mscore4portablenightly" "$@"

edit: this doesn't seem to be confined to the Plugins menu, something about the Diagnostics menu also triggers the same crash.

double edit: None of the CI/nightly artifact AppImages run without sudo, only the release version, but I'm assuming this is due to some sort of debug tooling and not relevant to this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Issues involving a crash of MuseScore needs info More information is required before action can be taken os: linux Potentially specific to Linux-based operating systems plugins Related to MuseScore's QML plugin framework (NOT VST/audio plugins) regression MS4 Regression on a prior release
Projects
None yet
Development

No branches or pull requests

9 participants