Bug 282733 - Kfilemetadatareader crashes make Dr.Konqi showing up, which should not happen
Summary: Kfilemetadatareader crashes make Dr.Konqi showing up, which should not happen
Status: RESOLVED FIXED
Alias: None
Product: drkonqi
Classification: Applications
Component: general (show other bugs)
Version: 2.0 (KDE4)
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 288967 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-25 12:16 UTC by Hrvoje Senjan
Modified: 2013-01-19 03:19 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.7.4


Attachments
New crash information added by DrKonqi (11.03 KB, text/plain)
2011-09-27 00:47 UTC, sml
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2011-09-25 12:16:41 UTC
Application: kfilemetadatareader ()
KDE Platform Version: 4.7.41 (4.7.41 (KDE 4.8 >= 20110807)
Qt Version: 4.7.1
Operating System: Linux 3.0.0-11-generic x86_64
Distribution: Ubuntu oneiric (development branch)

-- Information about the crash:
- What I was doing when the application crashed:

Well, i wasn't doing much ;) , crash happend all of the sudden ...

-- Backtrace:
Application:  (kfilemetadatareader), signal: Segmentation fault
[KCrash Handler]
#6  0x00007f047b8e3e57 in av_open_input_stream () from /usr/lib/libavformat.so.53
#7  0x00007f047c867cd9 in FFMPEGEndAnalyzer::analyze (this=0x1ab2e90, ar=..., in=0x1b9d4d0) at /build/buildd/project-neon-strigi-0+0.7.6/libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp:328
#8  0x00007f0484dbfce0 in Strigi::StreamAnalyzerPrivate::analyze (this=0x1a79e50, idx=..., input=0x1b9d4d0) at /build/buildd/project-neon-strigi-0+0.7.6/libstreamanalyzer/lib/streamanalyzer.cpp:418
#9  0x00007f0484dbf7e4 in Strigi::StreamAnalyzer::analyze (this=0x7fff46587c10, idx=..., input=0x7fff46587b60) at /build/buildd/project-neon-strigi-0+0.7.6/libstreamanalyzer/lib/streamanalyzer.cpp:359
#10 0x00007f0487a7d798 in KFileMetaInfoPrivate::init (this=0x1a10780, stream=..., url=..., mtime=1316952056, w=...) at /build/buildd/project-neon-kdelibs-2+git20110924+r92127/kio/kio/kfilemetainfo.cpp:259
#11 0x00007f0487a7da60 in KFileMetaInfo::KFileMetaInfo (this=0x7fff46587dc0, path=..., w=...) at /build/buildd/project-neon-kdelibs-2+git20110924+r92127/kio/kio/kfilemetainfo.cpp:288
#12 0x0000000000402f56 in readFileMetaData (urls=...) at /build/buildd/project-neon-kdelibs-2+git20110924+r92127/kio/kfile/kfilemetadatareaderprocess.cpp:85
#13 0x00000000004036b7 in readFileAndContextMetaData (urls=...) at /build/buildd/project-neon-kdelibs-2+git20110924+r92127/kio/kfile/kfilemetadatareaderprocess.cpp:146
#14 0x0000000000403fca in main (argc=2, argv=0x7fff46588438) at /build/buildd/project-neon-kdelibs-2+git20110924+r92127/kio/kfile/kfilemetadatareaderprocess.cpp:195

Reported using DrKonqi
Comment 1 sml 2011-09-27 00:47:39 UTC
Created attachment 64000 [details]
New crash information added by DrKonqi

dolphin (1.6.1) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.3

- What I was doing when the application crashed:

I "moused over" an mp4 file which I had just downloaded (available here: http://mpegmedia.abc.net.au/tv/mediawatch/mediawatch_2011_ep33.mp4), so the info panel started generating a thumbnail when dolphin crashed.

-- Backtrace (Reduced):
#6  0x00007fb044325597 in av_open_input_stream () from /usr/lib/x86_64-linux-gnu/libavformat.so.53
#7  0x00007fb04529e961 in FFMPEGEndAnalyzer::analyze(Strigi::AnalysisResult&, Strigi::StreamBase<char>*) () from /usr/lib/strigi/strigiea_ffmpeg.so
[...]
#9  0x00007fb05f8dc24f in KFileMetaInfoPrivate::init (this=0x1556330, stream=..., url=<optimized out>, mtime=1317084128, w=<optimized out>) at ../../kio/kio/kfilemetainfo.cpp:257
#10 0x00007fb05f8dcfa7 in KFileMetaInfo::KFileMetaInfo (this=0x7fb04ccd9d20, path=<optimized out>, w=...) at ../../kio/kio/kfilemetainfo.cpp:286
#11 0x00007fb05f9aac24 in KLoadFileMetaDataThread::run (this=0x175f360) at ../../kio/kfile/kloadfilemetadatathread.cpp:143
Comment 2 Toderel Adrian-Aurel 2011-10-10 22:36:00 UTC
dolphin 1.7
KDE 4.7.1
Qt Version: 4.7.4
Linux 2.6.39-sabayon x86_64
Distro "Gentoo Base System release 2.0.2"

Application:  (kfilemetadatareader), signal: Segmentation fault
[KCrash Handler]
#6  0x00007f4bc371d6f8 in
Strigi::OleInputStream::Private::Private(Strigi::OleInputStream*,
Strigi::StreamBase<char>*) () from /usr/lib64/libstreams.so.0
#7  0x00007f4bc371daf2 in
Strigi::OleInputStream::OleInputStream(Strigi::StreamBase<char>*) () from
/usr/lib64/libstreams.so.0
#8  0x00007f4bc8065dd5 in OleEndAnalyzer::analyze(Strigi::AnalysisResult&,
Strigi::StreamBase<char>*) () from /usr/lib64/libstreamanalyzer.so.0
#9  0x00007f4bc804a90a in
Strigi::StreamAnalyzerPrivate::analyze(Strigi::AnalysisResult&,
Strigi::StreamBase<char>*) () from /usr/lib64/libstreamanalyzer.so.0
#10 0x00007f4bcaaa8745 in KFileMetaInfoPrivate::init(QIODevice&, KUrl const&,
long, QFlags<KFileMetaInfo::What>) () from /usr/lib64/libkio.so.5
#11 0x00007f4bcaaa8fd8 in KFileMetaInfo::KFileMetaInfo(QString const&, QString
const&, QFlags<KFileMetaInfo::What>) () from /usr/lib64/libkio.so.5
#12 0x00000000004033be in readFileMetaData(QList<KUrl> const&) ()
#13 0x0000000000404839 in main ()

no more dolphin crash, only metadata handler crash 

pps file who can do this is a 10 MiB msoffice pps file with an active password
lock ... if needed i can load somewhere, rapidshare?, this file, Monsanto.ppsx,
 for more crash tests but for me is trigered every time i try to select|preview|open the file in dolphin with or without mouse select ( can be trigered with a keyboard file select only in dolphin)
Comment 3 Peter Penz 2011-12-14 14:33:23 UTC
*** Bug 288967 has been marked as a duplicate of this bug. ***
Comment 4 Peter Penz 2011-12-15 08:50:35 UTC
I've reassigned it temporary to the "drkonqi" component for getting feedback.

@drkonqi: A crash in the process kfilemetadatareader should not result in opening of the drkonqi dialog, as it is only a QCoreApplication and not KApplication (see main() at the bottom of https://projects.kde.org/projects/kde/kdelibs/repository/entry/kio/kfile/kfilemetadatareaderprocess.cpp?rev=KDE%2F4.7 )

Do you have a hint why on some systems still a dialog is shown? (I cannot reproduce the issue on my system). Thanks!
Comment 5 Jekyll Wu 2013-01-19 03:19:38 UTC
Well, it is not up to DrKonqi to decide whether itself should be invoked when something crashes.  Is the KApplication class which uses KCrash class to make the decision. 

Anyway, Peter made a commit[1] to explicitly make kfilemetadataread use QCoreApplication, and that commit is included in KDE SC 4.7.4 and later verions. 

Looking at the all the crash in this report, all are using verions earlier than 4.7.4, except the original reporter. " 4.7.41", that looks like a git snapshot and it is hard to tell whether it contains that commit, although it is named as 4.7.41 by downstream packagers. 

Considering there is no furthur reports from 4.8+, I will consider the problem of "DrKonqi pops up when it should not" has been solved.

As for the crash itself, it is caused by strigi, which is no tracked in this bug tracker. 

I will close this report as fixed. 

[1]

    Git commit e4118bc344856490dffe3cd9ef357a855de6b6a1 by Peter Penz.
    Committed on 25/11/2011 at 15:13.
    Pushed by ppenz into branch 'KDE/4.7'.

    KFileMetaDataReaderProcess: Use a QCoreApplication