Summary: | App crash when displaying tooltip on tray icon | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kxmlgui | Reporter: | Juraj <jurajoravec> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.89.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Juraj
2021-12-21 19:45:09 UTC
After another round of debugging I found that the crash is caused in the check code:
> while (m_widget->toolTip().isEmpty()) {
> m_widget = m_widget->parentWidget();
> if (!m_widget) {
> return false;
> }
> }
> if (m_widget->whatsThis().isEmpty()) {
> if (m_widget->toolTip() == whatsThisHintOnly()) {
> return true;
> }
> return false;
> }
And the crash is triggered on both `m_widget->toolTip()` and `m_widget->whatsThis()` calls.
If I comment one half the other will crash.
If I comment both the tooltip will be shown and there will be no crash.
Somehow calling either toolTip() or whatsThis() is bad and crashes the program but when the toolTip() is called as the parameter of the function showExpandableToolTip everything is fine and programs is happy.
These results were obtained by compiling the code with kdesrc-build and as test program for tray icon I used akregator.
My setup is OpenBox with tint2 panel/tray.
The version of this file before this change is working fine.
Working commit: ecd7cefd
Crashing commit (and later): 84682615
This bug was fixed by commit: https://invent.kde.org/frameworks/kxmlgui/-/commit/59affd7d0fea0ec69c7b0d75bab08510b7c00359 At least it now works for me. |