Bug 49132 - crash when playing renamed or deleted file
Summary: crash when playing renamed or deleted file
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: sidebar media player (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
: 75479 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-14 18:52 UTC by Frank Pieczynski
Modified: 2004-03-16 15:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Pieczynski 2002-10-14 18:52:52 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 2.95.2 
OS:          Linux

Hi,
during playing a ogg file the sidebar media player crashed.
At that time the directory was changed (the audiocd kioslave has created another ogg file - that one renamed from .part)
CVSup 11.10.2002, qt-copy
Thanks,
Frank
 
0x40f463d9 in __wait4 () from /lib/libc.so.6
#0  0x40f463d9 in __wait4 () from /lib/libc.so.6
#1  0x40fa3618 in __DTOR_END__ () from /lib/libc.so.6
#2  0x40e1ecb7 in waitpid () at wrapsyscall.c:186
#3  0x405f6bbf in KCrash::defaultCrashHandler ()
   from /opt/k31test/lib/libkdecore.so.4
#4  0x40ee4998 in __restore ()
    at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#5  0x413e05aa in Engine::play ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#6  0x413e1ee2 in Player::play ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#7  0x413e1fec in Player::tickerTimeout ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#8  0x413e276d in Player::qt_invoke ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#9  0x408f6814 in QObject::activate_signal () from 
/opt/qt31/lib/libqt-mt.so.3
#10 0x408f674e in QObject::activate_signal () from 
/opt/qt31/lib/libqt-mt.so.3
#11 0x40b4dd49 in QTimer::timeout () from /opt/qt31/lib/libqt-mt.so.3
#12 0x40910ebf in QTimer::event () from /opt/qt31/lib/libqt-mt.so.3
#13 0x408ab9c6 in QApplication::internalNotify ()
   from /opt/qt31/lib/libqt-mt.so.3
#14 0x408ab7c4 in QApplication::notify () from /opt/qt31/lib/libqt-mt.so.3
#15 0x40589cc5 in KApplication::notify () from 
/opt/k31test/lib/libkdecore.so.4
#16 0x408907d5 in QEventLoop::activateTimers ()
   from /opt/qt31/lib/libqt-mt.so.3
#17 0x4087310d in QEventLoop::processEvents () from 
/opt/qt31/lib/libqt-mt.so.3
#18 0x408bbb00 in QEventLoop::enterLoop () from 
/opt/qt31/lib/libqt-mt.so.3
#19 0x408bba5b in QEventLoop::exec () from /opt/qt31/lib/libqt-mt.so.3
#20 0x408abb36 in QApplication::exec () from /opt/qt31/lib/libqt-mt.so.3
#21 0x41334114 in main () from /opt/k31test/lib/konqueror.so
#22 0x804d516 in launch ()
#23 0x804e3e8 in handle_launcher_request ()
#24 0x804e98b in handle_requests ()
#25 0x804f91f in main ()
#26 0x40edea5e in __libc_start_main () at 
../sysdeps/generic/libc-start.c:93
Comment 1 matze 2002-10-24 09:07:10 UTC
How exactly do you reproduce this bug? I could not make it crash so far. However, I had a look 
at the code and it seems that 
 
a) The sidebar media player uses the old KPlayObject code, not the new KDE::PlayObject stuff 
and b) it seems to be a copy of kaboodle as a sidebar plugin, using an older version of 
kaboodle's Engine class. 
Comment 2 Frank Pieczynski 2002-10-26 14:09:28 UTC
Subject: Re:  konqueror crashes in sidebar media player

On Thursday 24 October 2002 09:07, you wrote:
> 09:07 ------- How exactly do you reproduce this bug? I could not make it
> crash so far. However, I had a look at the code and it seems that
>
> a) The sidebar media player uses the old KPlayObject code, not the new
> KDE::PlayObject stuff and b) it seems to be a copy of kaboodle as a sidebar
> plugin, using an older version of kaboodle's Engine class.

Hello,
may be I have made a mistake at the first shot. I checked the KDE tree and 
found two sidebar mediaplayer, the official one in
kdeaddons/konq-plugins/sidebar/mediaplayer
and a second one in
kdenonbeta/konqsidebar_plugins/konqsidebarmediaplayer

Since I want to have the
kdenonbeta/konqsidebar_plugins/konqsidebarmetainfo
I believe I have started make in the kdenonbeta/konqsidebar_plugins
and so I have installed the one from kdenonbeta?

Yesterday I have rebuilt the whole KDE tree with the newer qt-copy (without 
kdenonbeta), so the sidebar player from kdeaddons should be in.

Now I have the following crash:
drag a ogg file to the media player, rename it, press stop and play again,
then this crash happens.

Thanks,
Frank

0x410743d9 in __wait4 () from /lib/libc.so.6
#0  0x410743d9 in __wait4 () from /lib/libc.so.6
#1  0x410d1618 in __DTOR_END__ () from /lib/libc.so.6
#2  0x40f4ccb7 in waitpid () at wrapsyscall.c:186
#3  0x40720fab in KCrash::defaultCrashHandler ()
   from /opt/k31test/lib/libkdecore.so.4
#4  0x41012998 in __restore ()
    at ../sysdeps/unix/sysv/linux/i386/sigaction.c:127
#5  0x419fa5ea in Engine::play ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#6  0x419fbf22 in Player::play ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#7  0x419fc769 in Player::qt_invoke ()
   from /opt/k31test/lib/kde3/konqsidebar_mediaplayer.so
#8  0x40a214a4 in QObject::activate_signal () from 
/opt/qt31/lib/libqt-mt.so.3
#9  0x40a213de in QObject::activate_signal () from 
/opt/qt31/lib/libqt-mt.so.3
#10 0x40c7e7ec in QButton::clicked () from /opt/qt31/lib/libqt-mt.so.3
#11 0x40a86ec4 in QButton::mouseReleaseEvent ()
   from /opt/qt31/lib/libqt-mt.so.3
#12 0x40a4b346 in QWidget::event () from /opt/qt31/lib/libqt-mt.so.3
#13 0x409d6676 in QApplication::internalNotify ()
   from /opt/qt31/lib/libqt-mt.so.3
#14 0x409d614f in QApplication::notify () from /opt/qt31/lib/libqt-mt.so.3
#15 0x406b392f in KApplication::notify () from 
/opt/k31test/lib/libkdecore.so.4
#16 0x4098fc0c in QETWidget::translateMouseEvent ()
   from /opt/qt31/lib/libqt-mt.so.3
#17 0x4098ddd9 in QApplication::x11ProcessEvent ()
   from /opt/qt31/lib/libqt-mt.so.3
#18 0x4099d4da in QEventLoop::processEvents () from 
/opt/qt31/lib/libqt-mt.so.3
#19 0x409e6780 in QEventLoop::enterLoop () from 
/opt/qt31/lib/libqt-mt.so.3
#20 0x409e66db in QEventLoop::exec () from /opt/qt31/lib/libqt-mt.so.3
#21 0x409d67e6 in QApplication::exec () from /opt/qt31/lib/libqt-mt.so.3
#22 0x40055594 in main () from /opt/k31test/lib/konqueror.so
#23 0x4100ca5e in __libc_start_main () at 
../sysdeps/generic/libc-start.c:93

Comment 3 matze 2002-10-26 15:46:40 UTC
Can you please recompile with --enable-debug=full? The backtrace is near useless without line 
number information, and as I cannot reproduce the bug, I cannot confirm (or fix) it. 
 
Comment 4 Jonathan Riddell 2004-03-16 13:20:40 UTC
I confirm that konqueror crashes if you play a file, rename that file and press play again.

#0  0x41f24d66 in KPlayObject::play() () from /usr/lib/libartskde.so.1
#1  0x41eeae1e in Engine::play() (this=0x847ad28) at engine.cpp:122
#2  0x41eece2a in Player::play() (this=0x847ac40) at player.cpp:86
#3  0x41eed5b5 in Player::qt_invoke(int, QUObject*) (this=0x847ac40, _id=4, _o=0xbfffebb0) at player.moc:176
#4  0x40c3bd9c in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/libqt-mt.so.3
#5  0x40c3bbd4 in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3
#6  0x40f602fe in QButton::clicked() () from /usr/lib/libqt-mt.so.3
#7  0x40cca6ea in QButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqt-mt.so.3
#8  0x40c70da7 in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#9  0x40be047f in QApplication::internalNotify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#10 0x40bdfb81 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#11 0x407eb9ed in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdecore.so.4
#12 0x40b782e8 in QETWidget::translateMouseEvent(_XEvent const*) () from /usr/lib/libqt-mt.so.3
#13 0x40b75e12 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libqt-mt.so.3
#14 0x40b8bf01 in QEventLoop::processEvents(unsigned) () from /usr/lib/libqt-mt.so.3
#15 0x40bf3ce8 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#16 0x40bf3b98 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#17 0x40be06d1 in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#18 0x4006cc2c in kdemain () from /usr/lib/libkdeinit_konqueror.so
Comment 5 Jonathan Riddell 2004-03-16 13:28:28 UTC
*** Bug 75479 has been marked as a duplicate of this bug. ***
Comment 6 Jonathan Riddell 2004-03-16 15:05:49 UTC
This has now been fixed in CVS due to using an updated version of the Kaboodle engine.