Bug 215403 - Crash on Identity Window
Summary: Crash on Identity Window
Status: RESOLVED NOT A BUG
Alias: None
Product: konversation
Classification: Applications
Component: general (show other bugs)
Version: 1.2
Platform: unspecified Other
: NOR crash
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 11:52 UTC by Eren
Modified: 2009-11-21 11:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eren 2009-11-20 11:52:05 UTC
Version:           1.2 (using KDE 4.2.4)
OS:                Other
Installed from:    Unlisted Binary Package

Konversation crashes when "settins->identities" is clicked. I noticed that it fails to call "KIntSpinBox::setSuffix(KLocalizedString const&)"

konversation: symbol lookup error: konversation: undefined symbol: _ZN11KIntSpinBox9setSuffixERK16KLocalizedString

Looking for the symbol, I realized that "setSuffix" method was added in KDE 4.3 [0]. This way, konversation will work only in 4.3+. It isn't backward-compatible and identity window will always crash on 4.2.x

I think something other than "setSuffix" should be used to be backward-compatible.

[0] http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKIntSpinBox.html#aeceb68143530826f6a21b6ca4c4e5638
Comment 1 Eike Hein 2009-11-20 22:59:25 UTC
I have a virtual machine with KDE 4.1.4 and Qt 4.4 here which I use for release testing, and I cannot reproduce that crash there. The spinbox also works as expected.

Note that while KIntSpinBox::setSuffix(KLocalizedString const&) is new in KDE 4.3, QIntSpinBox, which KIntSpinBox inherits from, has a setSuffix (const QString&). Our code looks like this:

#if KDE_IS_VERSION(4, 2, 80)
        m_awayInactivitySpin->setSuffix(ki18np(" minute", " minutes"));
#else
        m_awayInactivitySpin->setSuffix(i18n(" minutes"));
#endif

On KDEs prior to 4.3 beta, it will use the i18n() macro, which returns a QString() and just works fine with QIntSpinBox's setSuffix(const QString&).

My guess is that you compiled Konversation against KDE 4.3 but are trying to run it in KDE 4.2: That can't work.
Comment 2 Eren 2009-11-21 11:06:20 UTC
Hmm, you're right. I re-compiled konvi with 4.2 and it works without problems. I think there is something in our repositories. I'll check it.

I'm closing this bug as invalid. Thank you for your interest :)