Open bratpeki opened 1 month ago
I remember getting this issue before. Thought it was because of a plugin I was using, but I guess not.
I'll provide any data necessary. Some users report not getting this, so it might be the version of FFTW causing the issue.
@bratpeki how consistent are you able to reproduce this issue?
I am also on Arch Linux and use the same version of fftw
. I cannot reproduce the crash if I start LMMS and then exit it immediately.
[michael@dot build (master)]$ gdb ./lmms
GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
So it seems to be related to specific projects. I noticed that @bratpeki's output mentions fluidsynth?
@michaelgregorius, Fluidsynth doesn't affect the segfault, that was just me using the session as I was using it when I first noticed the crash. @sakertooth, I can replicate it on each run of LMMS.
I believe the output is the same, but I'll provide it anyway.
[peki@~/Code/AUR-Foreign/LMMS/build]$ gdb lmms
GNU gdb (GDB) 15.1
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lmms...
(gdb) run
Starting program: /home/peki/Code/AUR-Foreign/LMMS/build/lmms
This GDB supports auto-downloading debuginfo from the following URLs:
<https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n])
Debuginfod has been disabled.
To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
*** WEAK-JACK: initializing
*** WEAK-JACK: OK. (0)
[New Thread 0x7ffff22e66c0 (LWP 55172)]
[New Thread 0x7ffff1ae56c0 (LWP 55173)]
[New Thread 0x7fffd11ff6c0 (LWP 55174)]
[New Thread 0x7fffd09fe6c0 (LWP 55211)]
[New Thread 0x7fffcbfff6c0 (LWP 55212)]
[New Thread 0x7fffcb7fe6c0 (LWP 55213)]
[New Thread 0x7fffcaffd6c0 (LWP 55214)]
[Thread 0x7fffcaffd6c0 (LWP 55214) exited]
[Thread 0x7fffcbfff6c0 (LWP 55212) exited]
[Thread 0x7fffcb7fe6c0 (LWP 55213) exited]
[Thread 0x7fffd09fe6c0 (LWP 55211) exited]
[New Thread 0x7fffcaffd6c0 (LWP 55233)]
[New Thread 0x7fffcb7fe6c0 (LWP 55234)]
[New Thread 0x7fffcbfff6c0 (LWP 55235)]
Lv2 plugin SUMMARY: 378 of 579 loaded in 4521 msecs.
For details about not loaded plugins, please set
environment variable "LMMS_LV2_DEBUG" to nonempty.
Blocked Lv2 Plugins: 61 of 579
If you want to enable them (dangerous!), please set
environment variable "LMMS_ENABLE_BLOCKED_PLUGINS" to nonempty.
[New Thread 0x7fffd09fe6c0 (LWP 55336)]
[New Thread 0x7fffca31b6c0 (LWP 55337)]
[New Thread 0x7fffaffff6c0 (LWP 55338)]
[New Thread 0x7fffaf7fe6c0 (LWP 55341)]
[New Thread 0x7fffaeffd6c0 (LWP 55343)]
[New Thread 0x7fffae7fc6c0 (LWP 55344)]
[Thread 0x7fffae7fc6c0 (LWP 55344) exited]
[Thread 0x7fffcbfff6c0 (LWP 55235) exited]
[Thread 0x7fffcb7fe6c0 (LWP 55234) exited]
[Thread 0x7fffcaffd6c0 (LWP 55233) exited]
[Thread 0x7fffaeffd6c0 (LWP 55343) exited]
[Thread 0x7fffaf7fe6c0 (LWP 55341) exited]
[Thread 0x7fffaffff6c0 (LWP 55338) exited]
[Thread 0x7fffca31b6c0 (LWP 55337) exited]
[Thread 0x7fffd09fe6c0 (LWP 55336) exited]
Thread 1 "lmms" received signal SIGSEGV, Segmentation fault.
0x00007ffff647da7a in ?? () from /usr/lib/libfftw3f.so.3
(gdb) bt
#0 0x00007ffff647da7a in ?? () from /usr/lib/libfftw3f.so.3
#1 0x00007ffff641fa1a in fftwf_plan_awake () from /usr/lib/libfftw3f.so.3
#2 0x00007ffff641fa1a in fftwf_plan_awake () from /usr/lib/libfftw3f.so.3
#3 0x00007ffff650c456 in fftwf_destroy_plan () from /usr/lib/libfftw3f.so.3
#4 0x000055555589a76a in lmms::Oscillator::destroyFFTPlans () at /home/peki/Code/AUR-Foreign/LMMS/src/core/Oscillator.cpp:232
#5 0x000055555585ce36 in lmms::Engine::destroy () at /home/peki/Code/AUR-Foreign/LMMS/src/core/Engine.cpp:123
#6 0x000055555596eccf in lmms::gui::MainWindow::~MainWindow (this=0x55555dd02060, __in_chrg=<optimized out>)
at /home/peki/Code/AUR-Foreign/LMMS/src/gui/MainWindow.cpp:258
#7 0x000055555596ed44 in lmms::gui::MainWindow::~MainWindow (this=0x55555dd02060, __in_chrg=<optimized out>)
at /home/peki/Code/AUR-Foreign/LMMS/src/gui/MainWindow.cpp:259
#8 0x00007ffff6cd1b7c in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#9 0x00007ffff7956331 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#10 0x00007ffff6caba68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#11 0x00007ffff6cac506 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#12 0x00007ffff6cf63e0 in ?? () from /usr/lib/libQt5Core.so.5
#13 0x00007ffff5314ab9 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0x00007ffff53769e7 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0x00007ffff5313fc5 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#16 0x00007ffff6cfa37f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#17 0x00007ffff6ca382c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#18 0x00007ffff6cafbfd in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#19 0x00005555557d1fc9 in main (argc=1, argv=0x7fffffffe388) at /home/peki/Code/AUR-Foreign/LMMS/src/core/main.cpp:963
(gdb) exit
...
System Information
Manjaro Linux
LMMS Version(s)
Master
Most Recent Working Version
--
Bug Summary
I noticed LMMS segfault on exit.
I built LMMS with
-DCMAKE_BUILD_TYPE=Debug
and the GDB output is:I opened a GIG and SF2 player player just to say something has been done in the project, the same thing happens when you just open and close LMMS.
The FFTW version is :
Expected Behaviour
No segfault.
Steps To Reproduce
Open LMMS. Optionally, do something. Close LMMS.
Logs
No response
Screenshots / Minimum Reproducible Project
No response
Please search the issue tracker for existing bug reports before submitting your own.