Bug 273746 - [TM::DBFilesModel::updateStats] Lokalize crashes sometimes when switching translation units
Summary: [TM::DBFilesModel::updateStats] Lokalize crashes sometimes when switching tra...
Status: RESOLVED WORKSFORME
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mageia RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 19:12 UTC by Dimitrios Glentadakis
Modified: 2012-06-01 16:47 UTC (History)
1 user (show)

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


Attachments
New crash information added by DrKonqi (8.61 KB, text/plain)
2011-08-23 18:26 UTC, Dimitrios Glentadakis
Details
New crash information added by DrKonqi (8.68 KB, text/plain)
2011-08-27 08:30 UTC, Dimitrios Glentadakis
Details
New crash information added by DrKonqi (8.32 KB, text/plain)
2011-08-27 13:55 UTC, Dimitrios Glentadakis
Details
crash report 2012/03/04 (8.48 KB, text/plain)
2012-03-04 08:54 UTC, Dimitrios Glentadakis
Details
New crash information added by DrKonqi (9.26 KB, text/plain)
2012-03-18 08:47 UTC, Dimitrios Glentadakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitrios Glentadakis 2011-05-20 19:12:54 UTC
Application: lokalize (1.2)
KDE Platform Version: 4.6.3 (4.6.3)
Qt Version: 4.7.3
Operating System: Linux 2.6.38.6-desktop-2.mga x86_64
Distribution: "Mageia 1"

-- Information about the crash:
Not very often (2 times in 15 days) when i go to the next translation with the mouse wheel, lokalize crashs. I dont remember to marked something related the both times.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Lokalize (lokalize), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f915d98d720 (LWP 12411))]

Thread 5 (Thread 0x7f91498d7710 (LWP 12415)):
#0  0x00007f915791923c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f915a2638ab in wait (this=<value optimized out>, mutex=0x469eb18, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x469eb18, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f915ad35a04 in QFileInfoGatherer::run (this=0x469eb08) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f915a2631c5 in QThreadPrivate::start (arg=0x469eb08) at thread/qthread_unix.cpp:320
#5  0x00007f9157914d25 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f91599ccfdd in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f91490d6710 (LWP 12416)):
#0  0x00007f915791923c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f915a2638ab in wait (this=<value optimized out>, mutex=0x1e6fb80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1e6fb80, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f915c1522e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1e85510, th=0x4908f70) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f915c154973 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1eb4260, th=0x4908f70) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f915c15375f in ThreadWeaver::ThreadRunHelper::run (this=0x7f91490d5e70, parent=0x1e85510, th=0x4908f70) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f915c1537e8 in ThreadWeaver::Thread::run (this=0x4908f70) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f915a2631c5 in QThreadPrivate::start (arg=0x4908f70) at thread/qthread_unix.cpp:320
#8  0x00007f9157914d25 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f91599ccfdd in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f91488d5710 (LWP 12417)):
#0  0x00007f9157917160 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007f9155cba2a6 in g_main_context_prepare (context=0x7f91400009b0, priority=0x7f91488d4d0c) at gmain.c:2763
#2  0x00007f9155cbb199 in g_main_context_iterate (context=0x7f91400009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3071
#3  0x00007f9155cbb83d in g_main_context_iteration (context=0x7f91400009b0, may_block=1) at gmain.c:3154
#4  0x00007f915a378a06 in QEventDispatcherGlib::processEvents (this=0x7f91400008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f915a34c792 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f915a34c9dc in QEventLoop::exec (this=0x7f91488d4e20, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f915a260924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007f915a32ded8 in QInotifyFileSystemWatcherEngine::run (this=0x4631da0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f915a2631c5 in QThreadPrivate::start (arg=0x4631da0) at thread/qthread_unix.cpp:320
#10 0x00007f9157914d25 in start_thread () from /lib64/libpthread.so.0
#11 0x00007f91599ccfdd in clone () from /lib64/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f913a39f710 (LWP 12432)):
#0  0x00007f915791923c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f915a2638ab in wait (this=<value optimized out>, mutex=0x1e7a130, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x1e7a130, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f915c1522e4 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1e79d40, th=0x5110ef0) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f915c154973 in ThreadWeaver::WorkingHardState::applyForWork (this=0x1e7a250, th=0x5110ef0) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f915c15375f in ThreadWeaver::ThreadRunHelper::run (this=0x7f913a39ee70, parent=0x1e79d40, th=0x5110ef0) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/Thread.cpp:87
#6  0x00007f915c1537e8 in ThreadWeaver::Thread::run (this=0x5110ef0) at /usr/src/debug/kdelibs-4.6.3/threadweaver/Weaver/Thread.cpp:142
#7  0x00007f915a2631c5 in QThreadPrivate::start (arg=0x5110ef0) at thread/qthread_unix.cpp:320
#8  0x00007f9157914d25 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f91599ccfdd in clone () from /lib64/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f915d98d720 (LWP 12411)):
[KCrash Handler]
#6  QModelIndex (this=0x4693c20, child=<value optimized out>) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x4693c20, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1656
#8  0x00000000004b4e25 in parent (this=0x4693c20, topLeft=..., bottomRight=<value optimized out>) at /usr/lib/qt4/include/QtCore/qabstractitemmodel.h:389
#9  TM::DBFilesModel::updateStats (this=0x4693c20, topLeft=..., bottomRight=<value optimized out>) at /usr/src/debug/kdesdk-4.6.3/lokalize/src/tm/dbfilesmodel.cpp:134
#10 0x0000000000433f5c in TM::DBFilesModel::qt_metacall (this=0x4693c20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x51b4980)
    at /usr/src/debug/kdesdk-4.6.3/build/lokalize/src/moc_dbfilesmodel.cpp:81
#11 0x00007f915a3618ba in QObject::event (this=0x4693c20, e=<value optimized out>) at kernel/qobject.cpp:1217
#12 0x00007f915a83a8a4 in QApplicationPrivate::notify_helper (this=0x1db77b0, receiver=0x4693c20, e=0x5fd8ac0) at kernel/qapplication.cpp:4462
#13 0x00007f915a83f47a in QApplication::notify (this=<value optimized out>, receiver=0x4693c20, e=0x5fd8ac0) at kernel/qapplication.cpp:4341
#14 0x00007f915c59c9c6 in KApplication::notify (this=0x7fff91dc8260, receiver=0x4693c20, event=0x5fd8ac0) at /usr/src/debug/kdelibs-4.6.3/kdeui/kernel/kapplication.cpp:311
#15 0x00007f915a34d3dc in QCoreApplication::notifyInternal (this=0x7fff91dc8260, receiver=0x4693c20, event=0x5fd8ac0) at kernel/qcoreapplication.cpp:731
#16 0x00007f915a350be5 in sendEvent (receiver=0x0, event_type=0, data=0x1d8e510) at kernel/qcoreapplication.h:215
#17 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1d8e510) at kernel/qcoreapplication.cpp:1372
#18 0x00007f915a378813 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#19 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#20 0x00007f9155cbadc3 in g_main_dispatch (context=0x1dba2e0) at gmain.c:2440
#21 g_main_context_dispatch (context=0x1dba2e0) at gmain.c:3013
#22 0x00007f9155cbb5a0 in g_main_context_iterate (context=0x1dba2e0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:3091
#23 0x00007f9155cbb83d in g_main_context_iteration (context=0x1dba2e0, may_block=1) at gmain.c:3154
#24 0x00007f915a3789af in QEventDispatcherGlib::processEvents (this=0x1d8dcf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#25 0x00007f915a8e121e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#26 0x00007f915a34c792 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#27 0x00007f915a34c9dc in QEventLoop::exec (this=0x7fff91dc81b0, flags=...) at kernel/qeventloop.cpp:201
#28 0x00007f915a350e9b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#29 0x0000000000435f71 in main (argc=5, argv=0x7fff91dc8998) at /usr/src/debug/kdesdk-4.6.3/lokalize/src/main.cpp:119

Possible duplicates by query: bug 272884, bug 272240, bug 267454, bug 261643, bug 257337.

Reported using DrKonqi
Comment 1 Dimitrios Glentadakis 2011-08-21 10:52:43 UTC
in kde 4.6.5 and lokalize 1.2 that i use now, i dont have any more this problem
Comment 2 Dimitrios Glentadakis 2011-08-23 18:26:20 UTC
Created attachment 63080 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.3

I tried to go to the next translation with the mouse wheel

-- Backtrace (Reduced):
#6  QModelIndex (this=0x4920cf0, child=<value optimized out>) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x4920cf0, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1656
#8  0x00000000004b4e25 in parent (this=0x4920cf0, topLeft=..., bottomRight=<value optimized out>) at /usr/lib/qt4/include/QtCore/qabstractitemmodel.h:389
#9  TM::DBFilesModel::updateStats (this=0x4920cf0, topLeft=..., bottomRight=<value optimized out>) at /usr/src/debug/kdesdk-4.6.5/lokalize/src/tm/dbfilesmodel.cpp:134
#10 0x0000000000433c6c in TM::DBFilesModel::qt_metacall (this=0x4920cf0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x4b68640)
    at /usr/src/debug/kdesdk-4.6.5/build/lokalize/src/moc_dbfilesmodel.cpp:81
Comment 3 Dimitrios Glentadakis 2011-08-27 08:30:50 UTC
Created attachment 63169 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.3

- What I was doing when the application crashed: Same issue (go to next translation with mouse wheel) i send again a backtrace, may be it provides more infos

-- Backtrace (Reduced):
#6  QModelIndex (this=0x4706240, child=<value optimized out>) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x4706240, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1656
#8  0x00000000004b4e25 in parent (this=0x4706240, topLeft=..., bottomRight=<value optimized out>) at /usr/lib/qt4/include/QtCore/qabstractitemmodel.h:389
#9  TM::DBFilesModel::updateStats (this=0x4706240, topLeft=..., bottomRight=<value optimized out>) at /usr/src/debug/kdesdk-4.6.5/lokalize/src/tm/dbfilesmodel.cpp:134
#10 0x0000000000433c6c in TM::DBFilesModel::qt_metacall (this=0x4706240, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x5591bf0)
    at /usr/src/debug/kdesdk-4.6.5/build/lokalize/src/moc_dbfilesmodel.cpp:81
Comment 4 Dimitrios Glentadakis 2011-08-27 13:55:12 UTC
Created attachment 63177 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.3

- What I was doing when the application crashed:
I selected the next string, not with the mouse wheel but with the pointer

-- Backtrace (Reduced):
#6  QModelIndex (this=0x3f69920, child=<value optimized out>) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x3f69920, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1656
#8  0x00000000004b4e25 in parent (this=0x3f69920, topLeft=..., bottomRight=<value optimized out>) at /usr/lib/qt4/include/QtCore/qabstractitemmodel.h:389
#9  TM::DBFilesModel::updateStats (this=0x3f69920, topLeft=..., bottomRight=<value optimized out>) at /usr/src/debug/kdesdk-4.6.5/lokalize/src/tm/dbfilesmodel.cpp:134
#10 0x0000000000433c6c in TM::DBFilesModel::qt_metacall (this=0x3f69920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x51b4be0)
    at /usr/src/debug/kdesdk-4.6.5/build/lokalize/src/moc_dbfilesmodel.cpp:81
Comment 5 Nick Shaforostoff 2011-12-08 18:30:21 UTC
i have added some sanity checks to the code to be released as part of KDE 4.8. Please comment if you still will be getting crashes with it.
Comment 6 Nick Shaforostoff 2012-02-23 18:39:06 UTC
closing this, as no new crashes were reported for a long time
Comment 7 Dimitrios Glentadakis 2012-02-24 11:20:06 UTC
I did nt reported any more crash as the kde bug policy says that if there is no additional information we dont have to continue sending the backtrace everytime which cannot provide additional informations to the developer
.

The crash still continue and i have a similar behaviour (crash when changing the string) in qtlinguist

kde 4.6.5
Comment 8 Nick Shaforostoff 2012-02-24 13:23:10 UTC
is it possible for you to upgrade to a newer KDE/Qt?

for example i have tried latest kubuntu alpha release and i haven't experienced  any major bugs in the distro as a whole. http://www.kubuntu.org/news/precise-alpha
Comment 9 Dimitrios Glentadakis 2012-02-24 16:19:15 UTC
I will upgrade to KDE 4.8 when Mageia 2 will be released , the 04/04/2012, so i can test it then.
Comment 10 Dimitrios Glentadakis 2012-03-04 08:54:56 UTC
Created attachment 69273 [details]
crash report 2012/03/04
Comment 11 Dimitrios Glentadakis 2012-03-18 08:47:38 UTC
Created attachment 69701 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.4

A crash again, i will dont report any new report about this crash until i upgrade to KDE 4.8.

-- Backtrace (Reduced):
#6  QModelIndex (this=0x40c7380, child=<value optimized out>) at ../../src/corelib/kernel/qabstractitemmodel.h:65
#7  QSortFilterProxyModel::parent (this=0x40c7380, child=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1657
#8  0x00000000004b4e25 in parent (this=0x40c7380, topLeft=..., bottomRight=<value optimized out>) at /usr/lib/qt4/include/QtCore/qabstractitemmodel.h:389
#9  TM::DBFilesModel::updateStats (this=0x40c7380, topLeft=..., bottomRight=<value optimized out>) at /usr/src/debug/kdesdk-4.6.5/lokalize/src/tm/dbfilesmodel.cpp:134
#10 0x0000000000433c6c in TM::DBFilesModel::qt_metacall (this=0x40c7380, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x58985b0)
    at /usr/src/debug/kdesdk-4.6.5/build/lokalize/src/moc_dbfilesmodel.cpp:81
Comment 12 Dimitrios Glentadakis 2012-06-01 16:47:44 UTC
I dont have any more this problem with Mageia 2