Summary: | kfilemetadatareader crashes on any file | ||
---|---|---|---|
Product: | [I don't know] kde | Reporter: | Patrick Spendrin <ps_ml> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | peter.penz19 |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Microsoft Windows | ||
Latest Commit: | Version Fixed In: | 4.7.4 | |
Sentry Crash Report: |
Description
Patrick Spendrin
2011-11-24 16:53:30 UTC
I redirected this bug to the KDE component. Backtrace: QtCore4!QEventDispatcherWin32::registerEventNotifier+0x24 QtCore4!QWinEventNotifier::QWinEventNotifier+0x76 QtNetwork4!QLocalSocketPrivate::init+0x84 QtNetwork4!QLocalSocket::QLocalSocket+0x7f sopranoclient!Soprano::Client::LocalSocketClientConnection::newConnection+0x124 sopranoclient!Soprano::Client::ClientConnection::socketForCurrentThread+0x6c sopranoclient!Soprano::Client::ClientConnection::connectInCurrentThread+0x5 sopranoclient!Soprano::Client::LocalSocketClient::connect+0x7b nepomuk!`anonymous namespace'::GlobalModelContainer::init+0x21f nepomuk!Nepomuk::MainModel::init+0x16 nepomuk!Nepomuk::MainModel::MainModel+0x6e nepomuk!Nepomuk::ResourceManager::init+0x66 nepomuk!Nepomuk::ResourceManager::ResourceManager+0x2b7 nepomuk!Nepomuk::ResourceManager::instance+0x9f nepomuk!Nepomuk::Resource::Resource+0x30 kfilemetadatareader!readFileAndContextMetaData+0x128 kfilemetadatareader!main+0x5c7 kfilemetadatareader!WinMain+0x105 kfilemetadatareader!__tmainCRTStartup+0x150 kernel32!BaseThreadInitThunk+0xe This backtrace doesn't say a lot, just in Nepomuk::ResourceManager::instance() the instance is reparented to QCoreApplication::instance() which is 0x0 at that point. Adding a QCoreApplication app(argc, argv); into kio/kfile/kfilemetadatareaderprocess.cpp:main seems to fix that crash. Since I have no idea if that might be a correct fix, maybe you could say something about this? @Patrick: Thanks for pointing this out. I'm surprised that I obviously forgot to add a QCoreApplication there already. Running Qt-stuff without at least a QCoreApplication is a no-go (even if no events are used) - please just go ahead and add this one-liner to main.cpp (or give me a hint if I should double-check this and push the patch myself). 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 Thanks to Patrick Spendrin for the hint. Strange that without the patch this did result in a crash only with MS Windows and not with Linux... BUG: 287474 FIXED-IN: 4.7.4 M +56 -20 kio/kfile/kfilemetadatareaderprocess.cpp http://commits.kde.org/kdelibs/e4118bc344856490dffe3cd9ef357a855de6b6a1 |