Summary: | Dolphin Crash in KDE 4.8 beta 1 while use esc to cancel loading process | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Weng Xuetian <wengxt> |
Component: | general | Assignee: | Peter Penz <peter.penz19> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | frank78ac |
Priority: | NOR | ||
Version: | 1.99 | ||
Target Milestone: | --- | ||
Platform: | Chakra | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Weng Xuetian
2011-11-21 10:37:52 UTC
Thanks for the report, I could reproduce the issue. Funnily enough, it crashes when any key is pressed, not just Esc.
I spent some time wondering why it can segfault in that line. But then I realised:
> Application: Dolphin (kdeinit4), signal: Floating point exception
One should always check what kind of crash it is before trying to debug ;-)
The problem is that we're trying to divide something by the number of items in the view, which is still 0 at the time of the crash.
Will commit a fix in a minute.
Git commit ca5c335132026e67e7d75b1953a4d79f1347cf4f by Frank Reininghaus. Committed on 22/11/2011 at 00:52. Pushed by freininghaus into branch 'master'. Don't try to divide by zero. Fixes a crash in Dolphin when pressing a key so quickly after a url change that there are no items in the file item model yet. BUG:287147 M +1 -1 dolphin/src/kitemviews/kitemlistcontroller.cpp http://commits.kde.org/kde-baseapps/ca5c335132026e67e7d75b1953a4d79f1347cf4f |