Summary: | Crashes when pressing the Menu key + tooltip [QCoreApplication::notifyInternal] | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | G360 <kde-bugs.9ek5t> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | 2.1 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kde-baseapps/a6f0745284617e3eccd0f69597105771e54aa31b | Version Fixed In: | 4.9.4 |
Sentry Crash Report: |
Description
G360
2012-11-23 22:27:34 UTC
Thanks for the bug report! Crashes with this backtrace have actually been reported quite a few times, it's really helpful to finally have a way to reproduce it and ask GDB what's going on :-) The 'receiver' in QCoreApplication::notifyInternal() is the FileMetaDataToolTip, which has been deleted by the ToolTipManager. I think what happens when you move the mouse pointer from the item to the tool tip is this: 1. The item is not hovered any more -> DolphinView::slotItemUnhovered(int) hides the tool tip via ToolTipManager::hideToolTip(), which deletes the tool tip immediately. 2. At the same time, the mouse pointer enters the tool tip and receives an event of type QEvent::Enter. This causes a crash in notifyInternal() because the pointer to the tool tip is now dangling. Replacing the 'delete' in ToolTipManager by deleteLater() fixes it for me. The only thing that I don't quite understand is why I can't reproduce it if the context menu is not open. Git commit a6f0745284617e3eccd0f69597105771e54aa31b by Frank Reininghaus. Committed on 24/11/2012 at 05:08. Pushed by freininghaus into branch 'KDE/4.9'. Delete FileMetaDataToolTip using deleteLater() to prevent crashes The problem was that Qt tried to deliver an 'Enter' event to the dangling pointer that once pointed to the tool tip. Many thanks to G. Christ for finding a way to reproduce this crash! Related: bug 282257 FIXED-IN: 4.9.4 M +3 -1 dolphin/src/views/tooltips/tooltipmanager.cpp http://commits.kde.org/kde-baseapps/a6f0745284617e3eccd0f69597105771e54aa31b To see how incredibly useful this bug report was, have a look at bug 282257 (which collects all those reports with the same backtrace which were not reproducible) and see how often it has been reported! Thank you Frank Reininghaus, for fixing this bug! |