You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, January 24th 2004, 8:34am

Konqueror crashes trying to view history

Lately, Konq crashes every time I try to view the history from the sidebar............this is a fairly recent development. All the other button at the sidebar work.

Anyonw know how to correct this? Here's a backtrace: [code:1](no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 16983)]

0x40f525c9 in waitpid () from /lib/libpthread.so.0
#0 0x40f525c9 in waitpid () from /lib/libpthread.so.0
#1 0x4063f9ed in KCrash::defaultCrashHandler(int) ()
from /opt/kde/lib/libkdecore.so.4
#2 0x40f50c45 in __pthread_sighandler () from /lib/libpthread.so.0
#3 <signal handler called>
#4 0x40aaf117 in QListViewItem&#58;&#58;setPixmap&#40;int, QPixmap const&&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#5 0x41ba2aae in KonqSidebarHistoryItem&#58;&#58;update&#40;KonqHistoryEntry const*&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebartree_history.so
#6 0x41ba287a in KonqSidebarHistoryItem&#58;&#58;KonqSidebarHistoryItem&#40;KonqHistoryEntry const*, KonqSidebarTreeItem*, KonqSidebarTreeTopLevelItem*&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebartree_history.so
#7 0x41ba0876 in KonqSidebarHistoryModule&#58;&#58;slotCreateItems&#40;&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebartree_history.so
#8 0x41ba1437 in KonqSidebarHistoryModule&#58;&#58;slotItemExpanded&#40;QListViewItem*&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebartree_history.so
#9 0x41ba1c2d in KonqSidebarHistoryModule&#58;&#58;qt_invoke&#40;int, QUObject*&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebartree_history.so
#10 0x409d8e50 in QObject&#58;&#58;activate_signal&#40;QConnectionList*, QUObject*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#11 0x40d02fb5 in QListView&#58;&#58;expanded&#40;QListViewItem*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#12 0x40aae75e in QListViewItem&#58;&#58;setOpen&#40;bool&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#13 0x41b83918 in KonqSidebarTreeTopLevelItem&#58;&#58;setOpen&#40;bool&#41; &#40;&#41;
from /opt/kde/lib/libkonq_sidebar_tree.so
#14 0x41b7d2d2 in KonqSidebarTree&#58;&#58;KonqSidebarTree&#40;KonqSidebar_Tree*, QWidget*, int, QString const&&#41; &#40;&#41; from /opt/kde/lib/libkonq_sidebar_tree.so
#15 0x41b6b268 in KonqSidebar_Tree&#58;&#58;KonqSidebar_Tree&#40;KInstance*, QObject*, QWidget*, QString&, char const*&#41; &#40;&#41; from /opt/kde/lib/kde3/konqsidebar_tree.so
#16 0x41b6b7c0 in create_konqsidebar_tree &#40;&#41;
from /opt/kde/lib/kde3/konqsidebar_tree.so
#17 0x416b3a8c in Sidebar_Widget&#58;&#58;loadModule&#40;QWidget*, QString&, QString, ButtonInfo*&#41; &#40;&#41; from /opt/kde/lib/kde3/konq_sidebar.so
#18 0x416b3eeb in Sidebar_Widget&#58;&#58;createView&#40;ButtonInfo*&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebar.so
#19 0x416b42e2 in Sidebar_Widget&#58;&#58;showHidePage&#40;int&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebar.so
#20 0x416ad612 in Sidebar_Widget&#58;&#58;qt_invoke&#40;int, QUObject*&#41; &#40;&#41;
from /opt/kde/lib/kde3/konq_sidebar.so
#21 0x409d8e50 in QObject&#58;&#58;activate_signal&#40;QConnectionList*, QUObject*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#22 0x409d8fb0 in QObject&#58;&#58;activate_signal&#40;int, int&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#23 0x416c41f2 in KMultiTabBarButton&#58;&#58;clicked&#40;int&#41; &#40;&#41;
from /opt/kde/lib/libkmultitabbar.so.0
#24 0x416c55d9 in KMultiTabBarButton&#58;&#58;slotClicked&#40;&#41; &#40;&#41;
from /opt/kde/lib/libkmultitabbar.so.0
#25 0x416c576a in KMultiTabBarTab&#58;&#58;slotClicked&#40;&#41; &#40;&#41;
from /opt/kde/lib/libkmultitabbar.so.0
#26 0x416c425b in KMultiTabBarButton&#58;&#58;qt_invoke&#40;int, QUObject*&#41; &#40;&#41;
from /opt/kde/lib/libkmultitabbar.so.0
#27 0x416c45cd in KMultiTabBarTab&#58;&#58;qt_invoke&#40;int, QUObject*&#41; &#40;&#41;
from /opt/kde/lib/libkmultitabbar.so.0
#28 0x409d8e50 in QObject&#58;&#58;activate_signal&#40;QConnectionList*, QUObject*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#29 0x409d8c84 in QObject&#58;&#58;activate_signal&#40;int&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#30 0x40cf6cfe in QButton&#58;&#58;clicked&#40;&#41; &#40;&#41; from /usr/lib/qt/lib/libqt-mt.so.3
#31 0x40a64e0a in QButton&#58;&#58;mouseReleaseEvent&#40;QMouseEvent*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#32 0x40a0d68c in QWidget&#58;&#58;event&#40;QEvent*&#41; &#40;&#41; from /usr/lib/qt/lib/libqt-mt.so.3
#33 0x4097e035 in QApplication&#58;&#58;internalNotify&#40;QObject*, QEvent*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#34 0x4097d7d2 in QApplication&#58;&#58;notify&#40;QObject*, QEvent*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#35 0x405c2c89 in KApplication&#58;&#58;notify&#40;QObject*, QEvent*&#41; &#40;&#41;
from /opt/kde/lib/libkdecore.so.4
#36 0x4091817b in QETWidget&#58;&#58;translateMouseEvent&#40;_XEvent const*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#37 0x409158e4 in QApplication&#58;&#58;x11ProcessEvent&#40;_XEvent*&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#38 0x4092bed7 in QEventLoop&#58;&#58;processEvents&#40;unsigned&#41; &#40;&#41;
from /usr/lib/qt/lib/libqt-mt.so.3
#39 0x40991276 in QEventLoop&#58;&#58;enterLoop&#40;&#41; &#40;&#41; from /usr/lib/qt/lib/libqt-mt.so.3
#40 0x40991118 in QEventLoop&#58;&#58;exec&#40;&#41; &#40;&#41; from /usr/lib/qt/lib/libqt-mt.so.3
#41 0x4097e281 in QApplication&#58;&#58;exec&#40;&#41; &#40;&#41; from /usr/lib/qt/lib/libqt-mt.so.3
#42 0x4141fa27 in main &#40;&#41; from /opt/kde/lib/konqueror.so
#43 0x0804cbe1 in strcpy &#40;&#41;
#44 0x0804da09 in strcpy &#40;&#41;
#45 0x0804de8c in strcpy &#40;&#41;
#46 0x0804ec3a in strcpy &#40;&#41;
#47 0x410a0d06 in __libc_start_main &#40;&#41; from /lib/libc.so.6 [/code:1]

Thanx :)
---thegeekster
How long a minute is depends on which side of the bathroom door you're on.

2

Monday, January 26th 2004, 1:24am

UPDATE

I've narrowed the problem down to the $HOME/.kde/share/apps/konqueror/konq_history file. This file becomes bad only after visiting an http base URL.

For example, If I visit the Slackware homepage using <http://www.slackware.com/> for the URL, Konq will crash when trying to view the history in the sidebar. However, if I use the URL <http:/www.slackware.com/index.php>, Konq will not crash when I view the history in the sidebar. Note: I first have to remove the konq_history file, clear it from the Control Center (Control Center -> Internet & Network -> Web Browser -> History Sidebar) or clear it from the menu (Settings -> Configure Konqueror -> History Sidebar) after the konq_history file becomes bad.

I noticed that this only happens with http URLs. For ftp URLs, there is no problem.

Looks like a likely candidate for a bug report.......
How long a minute is depends on which side of the bathroom door you're on.

3

Monday, January 26th 2004, 1:52pm

FIXED

I finally found the problem. It wasn't a bad konq_history file, but the creation of 0 byte .png files found in the $HOME/.kde/share/cache/favicons directory. These .png files are used by the history file to create custom icons in the history sidebar.

A workaround is to remove any 0 byte .png files in the favicons directory. I still haven't got a clue as to why these 0 byte files are being created in the first place, tho'.

---thegeekster
How long a minute is depends on which side of the bathroom door you're on.

4

Wednesday, January 28th 2004, 12:42am

rmfavicons SCRIPT

Here's a bash script I whipped up to make it easier removing the troublesome .png files for anyone interested.
[code:1]#!/bin/bash
#-------------------------------------------------------------------------------
# Filename&#58; rmfavicons
# Date&#58; 26 Jan 2004
# Written by&#58; CTWaley
#
# Remove all the 0-byte .png files found the the user's
# $HOME/.kde/share/cache/favicons directory to prevent Konqueror from crashing
# when trying to view the history from the sidebar.
# This script can be used for a cron job, on a hourly basis, to automatically
# remove the 0-byte .png files.
#-------------------------------------------------------------------------------

## Begin script ##

# Make sure the favicons directory exists in the user's home .kde directory.
if &#91; -d $HOME/.kde/share/cache/favicons &#93; ; then
# Now to find all the 0-byte files found in the favicons directory
# and remove them.
for i in $&#40; 'ls' $HOME/.kde/share/cache/favicons &#41;; do
if &#91; ! -s $HOME/.kde/share/cache/favicons/$i &#93; ; then
rm $HOME/.kde/share/cache/favicons/$i
fi
done
fi [/code:1]

:)
---thegeekster
How long a minute is depends on which side of the bathroom door you're on.

5

Wednesday, February 18th 2004, 8:10am

Hmmm.........it seems the location for the favicons directory has moved with the new release of KDE 3.2. It's now located at $HOME/.kde/cache-<hostname>/favicons. I've updated the script and put the path in variable for easier updating in the future (if necessary): [code:1]#!/bin/bash
#-------------------------------------------------------------------------------
# Filename&#58; rmfavicons
# Date&#58; 26 Jan 2004
# Written by&#58; CTWaley
#
# Remove all the 0-byte .png files found the the user's
# $HOME/.kde/share/cache/favicons directory to prevent Konqueror from crashing
# when trying to view the history from the sidebar.
# This script can be used for a cron job, on a hourly basis, to automatically
# remove the 0-byte .png files.
#
# Update&#58; In KDE 3.2, the location of the favicons directory seems to have
# changed. It is now "$HOME/.kde/cache-<hostname>/favicons"
#-------------------------------------------------------------------------------

## Begin script ##
host=$&#40; echo $HOSTNAME | awk -F. '&#123; print $1 &#125;' &#41;
favdir=$&#123;HOME&#125;/.kde/cache-$&#123;host&#125;/favicons

# Make sure the favicons directory exists in the user's home .kde directory.
if &#91; -d $favdir &#93; ; then
# Now to find all the 0-byte files found in the favicons directory
# and remove them.
for i in $&#40; 'ls' $favdir &#41;; do
if &#91; ! -s $&#123;favdir&#125;/$i &#93; ; then
rm $&#123;favdir&#125;/$i
fi
done
fi [/code:1]
How long a minute is depends on which side of the bathroom door you're on.