Lmms: Compact track buttons leads to crash

Created on 25 Mar 2017  路  6Comments  路  Source: LMMS/lmms

From discord (@qnebra reported)

There you are my little friend, enabling "compact track buttons" cause massive segfault on me.

I can reproduce this.

bug

All 6 comments

enabling "compact track buttons" cause massive segfault on me.

I don't see this. Version 1.2.0-rc2.107 (Linux/x86_64, Qt 4.8.6, GCC 4.8.5)
Can you give the steps to reproduce this. Is it just clicking the checkbox in Settings?

I don't see this. Version 1.2.0-rc2.107 (Linux/x86_64, Qt 4.8.6, GCC 4.8.5)
Can you give the steps to reproduce this. Is it just clicking the checkbox in Settings?

Enable it, restart LMMS, click on the synth logo for a track in the song editor. Segfault.
LMMS 1.2.0-rc2.108 (Linux x86_64, Qt 5.5.1, GCC 5.4.0 20160609)

This is the commit that introduced this crash: 91182b4adcb9995240d1e82e157ac8131a957125. When "compact track buttons" is enabled, m_renameLineEdit is null:

void TrackLabelButton::mouseReleaseEvent( QMouseEvent *_me )
{
    if( m_buttonRect.contains( _me->globalPos(), true ) && m_renameLineEdit->isHidden() )
//                                                                      ^
    {
        QToolButton::mousePressEvent( _me );
    }
    QToolButton::mouseReleaseEvent( _me );
    _me->ignore();
}

Yes, I guessed something like that. Therefore I assigned myself for this. :D

Thanks @BaraMGB for raport this.

Closed via #3463

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mnini picture mnini  路  3Comments

mikobuntu picture mikobuntu  路  4Comments

binyominzeev picture binyominzeev  路  3Comments

Sawuare picture Sawuare  路  3Comments

Spekular picture Spekular  路  4Comments