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

segfault in InstrumentTrack::processOutEvent #164

Closed
andrewrk opened this issue Jan 26, 2014 · 1 comment
Closed

segfault in InstrumentTrack::processOutEvent #164

andrewrk opened this issue Jan 26, 2014 · 1 comment
Labels

Comments

@andrewrk
Copy link
Member

To reproduce, try to load Skiessi-RandomProject14325 from OldStuff

Program received signal SIGSEGV, Segmentation fault.
0x00000000004831d1 in InstrumentTrack::processOutEvent (this=0x7c15bb0, event=..., 
    time=...) at /home/andy/dev/lmms/src/tracks/InstrumentTrack.cpp:391
391             m_instrument->handleMidiEvent( transposedEvent, time );
(gdb) bt
#0  0x00000000004831d1 in InstrumentTrack::processOutEvent (this=0x7c15bb0, 
    event=..., time=...) at /home/andy/dev/lmms/src/tracks/InstrumentTrack.cpp:391
#1  0x0000000000485a85 in InstrumentTrack::updatePitch (this=0x7c15bb0)
    at /home/andy/dev/lmms/src/tracks/InstrumentTrack.cpp:532
#2  0x00007ffff6973a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00000000004a0b00 in Model::dataChanged (this=<optimized out>)
    at /home/andy/dev/lmms/build/include/moc_Model.cxx:103
#4  0x00000000004a6ab8 in AutomatableModel::setValue (this=this@entry=0x7c16b70, 
    value=value@entry=100) at /home/andy/dev/lmms/src/core/AutomatableModel.cpp:201
#5  0x00000000004a6ba5 in AutomatableModel::setInitValue (
    this=this@entry=0x7c16b70, value=100)
    at /home/andy/dev/lmms/src/core/AutomatableModel.cpp:480
#6  0x00000000004a7079 in AutomatableModel::loadSettings (
    this=this@entry=0x7c16b70, element=..., name=...)
    at /home/andy/dev/lmms/src/core/AutomatableModel.cpp:169
#7  0x00000000004844eb in InstrumentTrack::loadTrackSpecificSettings (
    this=this@entry=0x7c15bb0, _this=...)
    at /home/andy/dev/lmms/src/tracks/InstrumentTrack.cpp:762
#8  0x000000000049af8c in track::loadSettings (this=0x7c15bb0, _this=...)
    at /home/andy/dev/lmms/src/core/track.cpp:1759
---Type <return> to continue, or q <return> to quit---
#9  0x00000000004ed0f2 in SerializingObject::restoreState (this=0x7c15bd0, 
    _this=...) at /home/andy/dev/lmms/src/core/SerializingObject.cpp:68
#10 0x00000000004d8afe in JournallingObject::restoreState (this=0x7c15bd0, 
    _this=...) at /home/andy/dev/lmms/src/core/JournallingObject.cpp:106
#11 0x0000000000499aa5 in track::create (_this=..., _tc=_tc@entry=0xaa9740)
    at /home/andy/dev/lmms/src/core/track.cpp:1631
#12 0x00000000004a2839 in TrackContainer::loadSettings (this=0xaa9740, _this=...)
    at /home/andy/dev/lmms/src/core/TrackContainer.cpp:116
#13 0x00000000004ed0f2 in SerializingObject::restoreState (this=0xaa9760, _this=...)
    at /home/andy/dev/lmms/src/core/SerializingObject.cpp:68
#14 0x00000000004d8afe in JournallingObject::restoreState (
    this=this@entry=0xaa9760, _this=...)
    at /home/andy/dev/lmms/src/core/JournallingObject.cpp:106
#15 0x00000000004d4d9b in song::loadProject (this=0xaa9740, _file_name=...)
    at /home/andy/dev/lmms/src/core/song.cpp:1148
#16 0x000000000053a001 in MainWindow::openRecentlyOpenedProject (this=0xbfd560, 
    _action=<optimized out>) at /home/andy/dev/lmms/src/gui/MainWindow.cpp:730
#17 0x00007ffff6973a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff74fd582 in QMenu::triggered(QAction*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
#19 0x00007ffff74fe8d0 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007ffff6973a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007ffff70cea32 in QAction::triggered(bool) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007ffff70d0403 in QAction::activate(QAction::ActionEvent) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x00007ffff6977dce in QObject::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007ffff70d04c2 in QAction::event(QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007ffff70d4dfc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007ffff70db470 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x00007ffff695f8bd in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007ffff6962e1f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007ffff698d073 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#30 0x00007ffff39cf3b6 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
#31 0x00007ffff39cf708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007ffff39cf7ac in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007ffff698ca55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007ffff71769d6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007ffff695e5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#36 0x00007ffff695e8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x00007ffff6963e5b in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#38 0x0000000000479b93 in main (argc=1, argv=0x7fffffffe578)
    at /home/andy/dev/lmms/src/core/main.cpp:488

@diizy
Copy link
Contributor

diizy commented Jan 26, 2014

I also got a segfault when attempting to open a project.

I have a core dump, but I don't think I can attach it here... it's over 200MB in size.

Here's my gdb backtrace though

#0  0x080c057e in InstrumentTrack::processOutEvent (this=0xaefad38, event=..., time=...)
    at /home/vesa/tmp/lmms/src/tracks/InstrumentTrack.cpp:391
#1  0x080c49c3 in InstrumentTrack::updatePitch (this=0xaefad38)
    at /home/vesa/tmp/lmms/src/tracks/InstrumentTrack.cpp:532
#2  0x080c4a50 in InstrumentTrack::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=0xbf8a31c0, 
    _c=<optimized out>) at /home/vesa/tmp/lmms/build/include/moc_InstrumentTrack.cxx:67
#3  0xb6b0dbb1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#4  0x081d2335 in Model::dataChanged (this=0xaefb71c) at /home/vesa/tmp/lmms/build/include/moc_Model.cxx:103
#5  0x081a4dfa in AutomatableModel::setControllerConnection (this=0xaefb71c, c=0xafce418)
    at /home/vesa/tmp/lmms/src/core/AutomatableModel.cpp:433
#6  0x081a64e7 in AutomatableModel::loadSettings (this=0xaefb71c, element=..., name=...)
    at /home/vesa/tmp/lmms/src/core/AutomatableModel.cpp:161
#7  0x080c29d2 in InstrumentTrack::loadTrackSpecificSettings (this=0xaefad38, _this=...)
    at /home/vesa/tmp/lmms/src/tracks/InstrumentTrack.cpp:762
#8  0x081a05a4 in track::loadSettings (this=0xaefad38, _this=...) at /home/vesa/tmp/lmms/src/core/track.cpp:1759
#9  0x081db099 in SerializingObject::restoreState (this=0xaefad48, _this=...)
    at /home/vesa/tmp/lmms/src/core/SerializingObject.cpp:68
#10 0x081d3a8a in JournallingObject::restoreState (this=0xaefad48, _this=...)
    at /home/vesa/tmp/lmms/src/core/JournallingObject.cpp:106
#11 0x0819dfee in track::create (_this=..., _tc=0x96d3fd0) at /home/vesa/tmp/lmms/src/core/track.cpp:1631
#12 0x081d9344 in TrackContainer::loadSettings (this=0x96d3fd0, _this=...)
    at /home/vesa/tmp/lmms/src/core/TrackContainer.cpp:116
#13 0x081db099 in SerializingObject::restoreState (this=0x96d3fe0, _this=...)
    at /home/vesa/tmp/lmms/src/core/SerializingObject.cpp:68
#14 0x081d3a8a in JournallingObject::restoreState (this=0x96d3fe0, _this=...)
    at /home/vesa/tmp/lmms/src/core/JournallingObject.cpp:106
#15 0x081cd974 in song::loadProject (this=0x96d3fd0, _file_name=...) at /home/vesa/tmp/lmms/src/core/song.cpp:1192
#16 0x081212a9 in MainWindow::openRecentlyOpenedProject (this=0x97942c0, _action=0x98e2b68)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants