Bug 214313 - crash when opening a project twice [CachedItemsJob, KDirListerCache::listDir, KDirLister::openUrl]
Summary: crash when opening a project twice [CachedItemsJob, KDirListerCache::listDir,...
Status: RESOLVED DUPLICATE of bug 194182
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 22:35 UTC by Frederik Schwarzer
Modified: 2009-11-13 09:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Schwarzer 2009-11-12 22:35:54 UTC
Application: lokalize (1.0)
KDE Version: 4.3.75 (KDE 4.3.74 (KDE 4.4 >= 20091102)) (Compiled from sources)
Qt Version: 4.6.0
Operating System: Linux 2.6.31.6-fs i686
Distribution: Debian GNU/Linux unstable (sid)

What I was doing when the application crashed:
When I open a project two times in a row, Lokalize crashes with the attached backtrace.

 -- Backtrace:
Application: Lokalize (lokalize), signal: Aborted
[Current thread is 1 (Thread 0xb52c0760 (LWP 9126))]

Thread 3 (Thread 0xb3587b70 (LWP 9139)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5cd40b5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb5d51992 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb714e26a in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xa04e450, th=0xa3485e0) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0xb7152fba in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0xa04e160, th=0xa3485e0) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0xb714d8b9 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0xa04e450, th=0xa3485e0) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0xb71530d7 in ThreadWeaver::WorkingHardState::applyForWork (this=0xa04e160, th=0xa3485e0) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0xb714e4d8 in ThreadWeaver::WeaverImpl::applyForWork (this=0xa04e450, th=0xa3485e0, previous=0xabf6a38) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0xb7151051 in ThreadWeaver::ThreadRunHelper::run (this=0xb35872d4, parent=0xa04e450, th=0xa3485e0) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/Thread.cpp:87
#9  0xb715122b in ThreadWeaver::Thread::run (this=0xa3485e0) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/Thread.cpp:142
#10 0xb5d50a9e in ?? () from /usr/lib/libQtCore.so.4
#11 0xb5cd0595 in start_thread () from /lib/i686/cmov/libpthread.so.0
#12 0xb5b1b18e in clone () from /lib/i686/cmov/libc.so.6

Thread 2 (Thread 0xb2cf6b70 (LWP 9148)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5cd40b5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
#2  0xb5d51992 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb714e26a in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xa051788, th=0xa3502a8) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0xb7152fba in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9fbf3d8, th=0xa3502a8) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#5  0xb714d8b9 in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0xa051788, th=0xa3502a8) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#6  0xb71530d7 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9fbf3d8, th=0xa3502a8) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#7  0xb714e4d8 in ThreadWeaver::WeaverImpl::applyForWork (this=0xa051788, th=0xa3502a8, previous=0xaba1b08) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#8  0xb7151051 in ThreadWeaver::ThreadRunHelper::run (this=0xb2cf62d4, parent=0xa051788, th=0xa3502a8) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/Thread.cpp:87
#9  0xb715122b in ThreadWeaver::Thread::run (this=0xa3502a8) at /home/fs/compile/KDE/kdelibs/threadweaver/Weaver/Thread.cpp:142
#10 0xb5d50a9e in ?? () from /usr/lib/libQtCore.so.4
#11 0xb5cd0595 in start_thread () from /lib/i686/cmov/libpthread.so.0
#12 0xb5b1b18e in clone () from /lib/i686/cmov/libc.so.6

Thread 1 (Thread 0xb52c0760 (LWP 9126)):
[KCrash Handler]
#6  0xffffe424 in __kernel_vsyscall ()
#7  0xb5a768c0 in raise () from /lib/i686/cmov/libc.so.6
#8  0xb5a79df5 in abort () from /lib/i686/cmov/libc.so.6
#9  0xb5d488cd in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#10 0xb5d48a8e in ?? () from /usr/lib/libQtCore.so.4
#11 0xb5d48b99 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#12 0xb5d48c25 in qt_assert(char const*, char const*, int) () from /usr/lib/libQtCore.so.4
#13 0xb76caae0 in CachedItemsJob (this=0xa4c8618, lister=0xa050880, items=..., rootItem=..., url=..., reload=false) at /home/fs/compile/KDE/kdelibs/kio/kio/kdirlister_p.h:456
#14 0xb76bbc8d in KDirListerCache::listDir (this=0xa04f2c8, lister=0xa050880, _u=..., _keep=true, _reload=false) at /home/fs/compile/KDE/kdelibs/kio/kio/kdirlister.cpp:181
#15 0xb76bd815 in KDirLister::openUrl (this=0xa050880, _url=..., _flags=...) at /home/fs/compile/KDE/kdelibs/kio/kio/kdirlister.cpp:1911
#16 0xb76cb3ad in KDirModel::fetchMore (this=0xa04ed1c, parent=...) at /home/fs/compile/KDE/kdelibs/kio/kio/kdirmodel.cpp:1054
#17 0x080c947a in ProjectModel::fetchMore (this=0xa04ecf8, parent=...) at /home/fs/compile/KDE/kdesdk/lokalize/src/project/projectmodel.cpp:588
#18 0x080c85f0 in ProjectModel::finishMetadataUpdate (this=0xa04ecf8, _job=0xaba1b08) at /home/fs/compile/KDE/kdesdk/lokalize/src/project/projectmodel.cpp:1042
#19 0x080ca857 in ProjectModel::qt_metacall (this=0xa04ecf8, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfcd7acc) at /home/fs/compile/build/KDE/kdesdk/lokalize/src/projectmodel.moc:104
#20 0xb5e58a35 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#21 0xb5e678c5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#22 0xb71515e8 in ThreadWeaver::Job::done (this=0xaba1b08, _t1=0xaba1b08) at /home/fs/compile/build/KDE/kdelibs/threadweaver/Weaver/Job.moc:97
#23 0xb7151797 in ThreadWeaver::Job::qt_metacall (this=0xaba1b08, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xac08ae8) at /home/fs/compile/build/KDE/kdelibs/threadweaver/Weaver/Job.moc:77
#24 0x080c5ce6 in UpdateStatsJob::qt_metacall (this=0xaba1b08, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xac08ae8) at /home/fs/compile/build/KDE/kdesdk/lokalize/src/projectmodel.moc:173
#25 0xb5e58a35 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#26 0xb5e62f56 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#27 0xb5e643f3 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#28 0xb60c137c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb60c8c0e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb733ee61 in KApplication::notify (this=0xbfcd826c, receiver=0xaba1b08, event=0xaa22598) at /home/fs/compile/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#31 0xb5e536eb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#32 0xb5e5461f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#33 0xb5e547cd in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#34 0xb617466e in ?? () from /usr/lib/libQtGui.so.4
#35 0xb5e51d5a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0xb5e521a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0xb5e54899 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#38 0xb60c1417 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#39 0x0807414f in main (argc=) at /home/fs/compile/KDE/kdesdk/lokalize/src/main.cpp:117

Reported using DrKonqi
Comment 1 Dario Andres 2009-11-12 22:43:47 UTC
This could be related to bug 194182. Thanks
Comment 2 Nick Shaforostoff 2009-11-13 09:46:34 UTC
this is certainly a duplicate of the bug 194182.

while it should be fixed in kio, I can add workaround by not starting projet tree scan if the project is the same

*** This bug has been marked as a duplicate of bug 194182 ***