LMMS 1.1.3 crashes often on linux

Having trouble with LMMS? Ask about it here.
Hello. I'm new to LMMS and to this forum

I'm discovering LMMS but it crahes too often. In the terminal sometimes I get just "segmentation fault", and sometimes I get:

Code: Select all

ASSERT: "asize <= aalloc" in file /usr/include/qt4/QtCore/qvector.h, line 474
Aborted
Is there anything I can do to prevent it from crashing? It's such a great program

Thank you
Most likely, it is the distro you have your version from
please post your:
* OS (distro aso
* lmms vers
* hardware specification (ram & soundcard is the most imortant)
* lmms sound device chosen
I'm using it on both Ubuntu 14.04 and Mint 17.1, both 64-bit. (I get the same message on both distros)
LMMS 1.1.3, as stated in the thread title
My laptop has 6GB ram and I'm using Logitech H390 usb headset, which according to "aplay -l" is card 2, device 0. Therefore I put "hw:2,0" in LMMS audio settings.
Tell me if you need any more info.
Thank you
Konrad2 could you please make a Debug build and offer backtraces for your crashes? There are instructions here:

https://github.com/LMMS/lmms/wiki/Debugging-LMMS
https://github.com/LMMS/lmms/wiki/Compiling-lmms
I've never done that before but I'll try.
Thank you
Is this what you asked me to do?

This compiled version crashes SO often, I don't even last 30 seconds
In all crashes I opened Skiessi-C64 project tile

crash1 (this happened after pressing F7 to hide the pianoroll

Code: Select all

ted1@ted1-Satellite-L755D:gdb ./lmms
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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...done.
(gdb) run
Starting program: /usr/local/bin/lmms 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
Notice: could not set realtime priority.
Got bus address:  "unix:abstract=/tmp/dbus-r0RKYcMBYH,guid=bea7a8a6b17b486cd5be682855aef9b7" 
Connected to accessibility bus at:  "unix:abstract=/tmp/dbus-r0RKYcMBYH,guid=bea7a8a6b17b486cd5be682855aef9b7" 
Registered DEC:  true 
[New Thread 0x7fffd6d4e700 (LWP 29115)]
VST sync support disabled in your configuration
[New Thread 0x7fffaf3d3700 (LWP 29121)]
[New Thread 0x7fffae8c2700 (LWP 29122)]
[New Thread 0x7fffae0c1700 (LWP 29123)]

Program received signal SIGSEGV, Segmentation fault.
0x0000000000531efc in PianoRoll::focusOutEvent (this=0x1149d30)
    at /home/ted1/Desktop/lmms/src/gui/PianoRoll.cpp:3637
3637			m_pattern->instrumentTrack()->pianoModel()->midiEventProcessor()->processInEvent( MidiEvent( MidiNoteOff, -1, i, 0 ) );
(gdb) backtrace
#0  0x0000000000531efc in PianoRoll::focusOutEvent (this=0x1149d30)
    at /home/ted1/Desktop/lmms/src/gui/PianoRoll.cpp:3637
#1  0x00007ffff71221c0 in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#2  0x00007ffff70d2e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007ffff70d94a0 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4  0x00007ffff695c4dd in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007ffff70d7542 in QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6  0x00007ffff711d68b in QWidget::setFocus(Qt::FocusReason) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007ffff711d987 in QWidget::focusNextPrevChild(bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8  0x00007ffff711e6a5 in QWidgetPrivate::hide_helper() ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#9  0x00007ffff71218a8 in QWidget::setVisible(bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x0000000000541357 in hide (this=<optimized out>)
    at /usr/include/qt4/QtGui/qwidget.h:501
#11 MainWindow::toggleWindow (this=0xda3bd0, window=0x1149d30, 
---Type <return> to continue, or q <return> to quit---
    forceShow=<optimized out>)
    at /home/ted1/Desktop/lmms/src/gui/MainWindow.cpp:885
#12 0x00007ffff697087a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007ffff7721172 in QAbstractButton::clicked(bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x00007ffff7484a63 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#15 0x00007ffff7485bd3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007ffff7485d84 in QAbstractButton::timerEvent(QTimerEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007ffff6974a31 in QObject::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff712256b in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007ffff70d2e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007ffff70d94a0 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007ffff695c4dd in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007ffff698c323 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ffff69895f1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007ffff39fde04 in g_main_context_dispatch ()
---Type <return> to continue, or q <return> to quit---
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007ffff39fe048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff39fe0ec in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff69897a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007ffff7174be6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#29 0x00007ffff695b0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007ffff695b3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007ffff6960b79 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x0000000000480645 in main (argc=1, argv=<optimized out>)
    at /home/ted1/Desktop/lmms/src/core/main.cpp:529
(gdb)
crash2 (this and the next happened after hitting play and listening to 5 seconds of the project)

Code: Select all

ted1@ted1-Satellite-L755D:/usr/local/bin$ gdb ./lmms
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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...done.
(gdb) run
Starting program: /usr/local/bin/lmms 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
Notice: could not set realtime priority.
Got bus address:  "unix:abstract=/tmp/dbus-r0RKYcMBYH,guid=bea7a8a6b17b486cd5be682855aef9b7" 
Connected to accessibility bus at:  "unix:abstract=/tmp/dbus-r0RKYcMBYH,guid=bea7a8a6b17b486cd5be682855aef9b7" 
Registered DEC:  true 
[New Thread 0x7fffd6d4e700 (LWP 29153)]
VST sync support disabled in your configuration
[New Thread 0x7fffaf3d3700 (LWP 29154)]
[New Thread 0x7fffae8c2700 (LWP 29155)]
[New Thread 0x7fffae0c1700 (LWP 29156)]
ASSERT failure in QVector<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qvector.h, line 359

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffae8c2700 (LWP 29155)]
0x00007ffff4147cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff4147cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff414b0d8 in __GI_abort () at abort.c:89
#2  0x00007ffff684fc92 in qt_message_output(QtMsgType, char const*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007ffff684fff9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ffff6850804 in qFatal(char const*, ...) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00000000004dffae in operator[] (i=5, this=0xb64d98)
    at /usr/include/qt4/QtCore/qvector.h:359
#6  FxMixer::masterMix (this=0xb64d50, _buf=<optimized out>)
    at /home/ted1/Desktop/lmms/src/core/FxMixer.cpp:522
#7  0x000000000049b7ea in Mixer::renderNextBuffer (this=0xb53240)
    at /home/ted1/Desktop/lmms/src/core/Mixer.cpp:411
#8  0x000000000049ba94 in Mixer::fifoWriter::run (this=0x15701a0)
    at /home/ted1/Desktop/lmms/src/core/Mixer.cpp:945
#9  0x00007ffff685a32f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ffff7bc4182 in start_thread (arg=0x7fffae8c2700)
    at pthread_create.c:312
#11 0x00007ffff420b47d in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) 
crash3

Code: Select all

ted1@ted1-Satellite-L755D:/usr/local/bin$ gdb ./lmms
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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...done.
(gdb) run
Starting program: /usr/local/bin/lmms 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py", line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
Notice: could not set realtime priority.
Got bus address:  "unix:abstract=/tmp/dbus-r0RKYcMBYH,guid=bea7a8a6b17b486cd5be682855aef9b7" 
Connected to accessibility bus at:  "unix:abstract=/tmp/dbus-r0RKYcMBYH,guid=bea7a8a6b17b486cd5be682855aef9b7" 
Registered DEC:  true 
[New Thread 0x7fffd6d4e700 (LWP 29167)]
VST sync support disabled in your configuration
[New Thread 0x7fffaf3d3700 (LWP 29168)]
[New Thread 0x7fffae8c2700 (LWP 29169)]
[New Thread 0x7fffae0c1700 (LWP 29170)]
ASSERT failure in QVector<T>::operator[]: "index out of range", file /usr/include/qt4/QtCore/qvector.h, line 359

Program received signal SIGABRT, Aborted.
0x00007ffff4147cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff4147cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff414b0d8 in __GI_abort () at abort.c:89
#2  0x00007ffff684fc92 in qt_message_output(QtMsgType, char const*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007ffff684fff9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ffff6850804 in qFatal(char const*, ...) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00000000005812e0 in operator[] (i=40, this=0xb76dc8)
    at /usr/include/qt4/QtCore/qvector.h:359
#6  FxMixerView::updateFaders (this=0xb4ca70)
    at /home/ted1/Desktop/lmms/src/gui/FxMixerView.cpp:493
#7  0x00007ffff697087a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ffff6974a31 in QObject::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ffff712256b in QWidget::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff74dca33 in QMainWindow::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff70d2e2c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007ffff70d94a0 in QApplication::notify(QObject*, QEvent*) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007ffff695c4dd in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007ffff698c323 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007ffff6989629 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x00007ffff39fde04 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff39fe048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff39fe0ec in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff69897a1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007ffff7174be6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007ffff695b0af in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007ffff695b3a5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ffff6960b79 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x0000000000480645 in main (argc=1, argv=<optimized out>)
    at /home/ted1/Desktop/lmms/src/core/main.cpp:529
(gdb) 
I have the same problem. I looking for any solution but I don't know where can I start to it.
I try to did the dbg stuff and I can't did that.
I watched these crashes may be incompatibilities when installing the program.
I have obtained the newest version of lmms ( 1.1.3 ) from KXStudio repositories, using the deb file .
ALSA system does not work so use SDL sounds . But lmms often closes
I have a HP notebook. 64 bits. Linux Mint Rebecca 17.1
Thanks.

P.S: Sorry my poor english.
Konrad2, thanks for the backtraces. I had the same issues on my laptop these days, so I reported a bug upstream. Your crash2 and crash3 seem to be related to this issue: https://github.com/LMMS/lmms/issues/2192

As for crash1, that seems to be a good candidate for a bug report, but we'll need a good way of reproducing it to make one :)
Well, If I do what I did before crash1, the compiled version of LMMS always crashes with no exception on Ubuntu 14.04 64-bit. This is how it happens:

Open LMMS
Click on My projects > Demos and double click Skiessi-C64
Press F7 to bring up the piano editor
Click anything anywhere outside the pianoroll, even outside LMMS, like the taskbar (just noticed)
Boom

This doesn't happen on LMMS installed from Ubuntu software manager
Konrad2 wrote:Well, If I do what I did before crash1, the compiled version of LMMS always crashes with no exception on Ubuntu 14.04 64-bit. This is how it happens:

Open LMMS
Click on My projects > Demos and double click Skiessi-C64
Press F7 to bring up the piano editor
Click anything anywhere outside the pianoroll, even outside LMMS, like the taskbar (just noticed)
Boom

This doesn't happen on LMMS installed from Ubuntu software manager

I'll look into reproducing that.