|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>|
|Latest Commit:||Version Fixed In:|
Description Weng Xuetian 2011-11-21 10:37:52 UTC
Comment 1 Peter Penz 2011-11-21 10:44:16 UTC
Thanks for the report, I could reproduce the issue.
Comment 2 Frank Reininghaus 2011-11-21 23:52:15 UTC
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.
Comment 3 Frank Reininghaus 2011-11-21 23:55:16 UTC
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