Description
Freek de Kruijf
2009-09-18 14:57:44 UTC
Merging with bug 204278. Thanks *** This bug has been marked as a duplicate of bug 204278 *** *** Bug 204278 has been marked as a duplicate of this bug. *** *** Bug 213303 has been marked as a duplicate of this bug. *** question to all who got this crash. let me guess - you all opened project config dialog right after you first loaded the project? and when the project is loaded not the first time (i.e. it gets restored as the last used project), everything is fine? Any status on this report ? Created attachment 51677 [details]
Another backtrace of crash of lokalize-4.5.1
Steps to reproduce: Start lokalize; Project -> Create new project; Click on "Scripts".
*** Bug 248123 has been marked as a duplicate of this bug. *** *** Bug 244088 has been marked as a duplicate of this bug. *** *** Bug 240540 has been marked as a duplicate of this bug. *** Still happens with todays' trunk. Created attachment 55135 [details]
New crash information added by DrKonqi
lokalize (1.1) on KDE Platform 4.5.85 (4.6 Beta2) using Qt 4.7.1
- What I was doing when the application crashed:
I'm not able to create a new project. I start lokalize (it starts with previous project opened). I closed the project and tried to create a new project. I select the directory with translations, choose name of the project file. Then clicking to the "scripts" page causes this crash. If I not click to script, it will crash after "Finish" button is clicked.
-- Backtrace (Reduced):
#7 0x0000003b6da1513f in QList<Kross::Action*>::QList (this=0x7fffe7d9fba0, l=<value optimized out>) at /usr/include/qt4/QtCore/qlist.h:118
#8 0x0000003b6da12b91 in Kross::ActionCollection::actions (this=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kross/core/actioncollection.cpp:162
#9 0x0000003b6de13d3d in Kross::ActionCollectionModel::rowCount (this=<value optimized out>, index=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kross/ui/model.cpp:228
#10 0x00000031a75535fa in QAbstractItemModel::hasChildren(QModelIndex const&) const () from /usr/lib64/qt4/libQtCore.so.4
#11 0x00007f027401237f in QTreeView::doItemsLayout() () from /usr/lib64/qt4/libQtGui.so.4
The console output. This time I just choosed the project file and lokalize crashed. The new project dialog was not shown. lokalize(5456) Project::load: loading "/home/marian/data/kde-i18n/test.lokalize" Finishing jobs... lokalize(5456)/lokalize (TM) TM::CloseDBJob::CloseDBJob: here lokalize(5456) Project::load: 5... lokalize(5456) Project::load: 4... lokalize(5456) Project::load: 3... lokalize(5456) Project::load: 2... lokalize(5456)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0xd35140) item moved into cache: KUrl("file:///home/marian/data/amarok/amarok-2.3.2/po/cs") lokalize(5456)/kio (KDirListerCache) KDirListerCache::forgetDirs: KDirLister(0xd35140) item moved into cache: KUrl("file:///home/marian/data/amarok/amarok-2.3.2/po/cs/lokalize-scripts") lokalize(5456)/kio (KDirListerCache) KDirListerCache::listDir: Reloading directory: KUrl("file:///home/marian/data/kde-i18n") lokalize(5456)/kio (Scheduler) KIO::SchedulerPrivate::doJob: KIO::SimpleJob(0x144a4f0) lokalize(5456) Project::load: 1... "default" lokalize(5456) Project::load: until emitting signal 2 lokalize(5456) Project::load: loaded! 2 lokalize(5456) LokalizeMainWindow::projectLoaded: "/home/marian/data/kde-i18n/test.lokalize" lokalize(5456)/lokalize (TM) TM::OpenDBJob::run: db "default" opened 0 "cs" KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = lokalize path = /usr/bin pid = 5456 KCrash: Arguments: /usr/bin/lokalize --nocrashhandler KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/home/marian/.kde4/socket-nbmkyral-E6500/kdeinit4__0 QSocketNotifier: Invalid socket 13 and type 'Read', disabling... QSocketNotifier: Invalid socket 29 and type 'Read', disabling... There is nothing created in the destination directory: $ ll celkem 16 drwxr-xr-x 4 marian marian 4096 21. pro 19.06 . drwxr-xr-x 44 marian users 4096 21. pro 17.15 .. drwxr-xr-x 6 marian marian 4096 21. pro 17.44 summit drwxr-xr-x 2 marian marian 4096 21. pro 18.54 work $ It is really strange. I was able to create the project using the "New project guide". Then I click to configure, changed configuration and after click on OK, Lokalize crashed again. And it crashing each time I tried to load the project. Now, I removed the index.lokalize file and I'm trying to reproduce this, but this time I always got crash when I click on Finish. The Backtrace is different: Thread 1 (Thread 0x7f81c9a9f760 (LWP 21973)): [KCrash Handler] #6 0x00007f81ca089320 in QMdiSubWindow::widget() const () from /usr/lib64/qt4/libQtGui.so.4 #7 0x000000000043fe72 in LokalizeMainWindow::projectLoaded() () #8 0x0000000000441c6f in LokalizeMainWindow::qt_metacall(QMetaObject::Call, int, void**) () #9 0x00000031a757479a in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #10 0x00007f81c9cd072d in QWidget::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #11 0x00007f81ca07459b in QMainWindow::event(QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #12 0x0000003b6bb307e0 in KXmlGuiWindow::event (this=0xb86f30, ev=0x182e0f0) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kdeui/xmlgui/kxmlguiwindow.cpp:126 #13 0x00007f81c9c7f824 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #14 0x00007f81c9c842fa in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #15 0x0000003b6ba3dd72 in KApplication::notify (this=0x7fff3d33d3e0, receiver=0xb86f30, event=0x182e0f0) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kdeui/kernel/kapplication.cpp:311 #16 0x00000031a756060b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #17 0x00000031a7563dc4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4 #18 0x00000031a758b313 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4 #19 0x00000031a4c44272 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #20 0x00000031a4c44a50 in g_main_context_iterate.clone.5 () from /usr/lib/libglib-2.0.so.0 #21 0x00000031a4c44ced in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #22 0x00000031a758b4af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #23 0x00007f81c9d2423e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4 #24 0x00000031a755f9b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #25 0x00000031a755fbf4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #26 0x00000031a756407b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4 #27 0x0000000000438bed in main () I've started with blank configuration (I removed config/lokalizerc file and apps/lokalize directory). Now I was able to create the project without crash. I restarted lokalize - no problem. Then I look to the project configuration - choosed Czech as the destination language, click to OK and Lokalize crashed again. After restart of Lokalize, project is opened correctly, no crash and "Destination language" is choosen now. The BackTrace: Thread 1 (Thread 0x7faf4038f760 (LWP 22904)): [KCrash Handler] #6 0x00000031a2c327c5 in raise () from /lib/libc.so.6 #7 0x00000031a2c33c46 in abort () from /lib/libc.so.6 #8 0x00000031a7470714 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/qt4/libQtCore.so.4 #9 0x00000031a74708ad in qt_message(QtMsgType, char const*, __va_list_tag*) () from /usr/lib64/qt4/libQtCore.so.4 #10 0x00000031a7470a45 in qFatal(char const*, ...) () from /usr/lib64/qt4/libQtCore.so.4 #11 0x0000003b6c51b27a in KDirLister::Private::CachedItemsJob::CachedItemsJob (this=0x2bb8aa0, lister=0x2506580, items=..., rootItem=..., url=..., reload=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kio/kio/kdirlister_p.h:472 #12 0x0000003b6c514227 in KDirListerCache::listDir (this=<value optimized out>, lister=0x2506580, _u=<value optimized out>, _keep=<value optimized out>, _reload=false) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kio/kio/kdirlister.cpp:264 #13 0x0000003b6c514b5d in KDirLister::openUrl (this=0x2506580, _url=..., _flags=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kio/kio/kdirlister.cpp:1984 #14 0x0000003b6c5217ec in KDirModel::fetchMore (this=0x24bc5d0, parent=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kio/kio/kdirmodel.cpp:1094 #15 0x0000000000485f33 in ProjectModel::fetchMore(QModelIndex const&) () #16 0x0000000000488dae in ProjectModel::finishMetadataUpdate(ThreadWeaver::Job*) () #17 0x000000000048b8f4 in ProjectModel::qt_metacall(QMetaObject::Call, int, void**) () #18 0x00000031a7574c97 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4 #19 0x0000003b6e60d5a2 in ThreadWeaver::Job::done (this=<value optimized out>, _t1=0x2a2a460) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85_build/threadweaver/Weaver/Job.moc:97 #20 0x0000003b6e60d68c in ThreadWeaver::Job::qt_metacall (this=0x2a2a460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x2969df0) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85_build/threadweaver/Weaver/Job.moc:77 #21 0x00000031a757479a in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #22 0x00007faf4056f824 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #23 0x00007faf405742fa in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4 #24 0x0000003b6ba3dd72 in KApplication::notify (this=0x7fffaf1dcbc0, receiver=0x2a2a460, event=0x2eca810) at /var/tmp/portage/kde-base/kdelibs-4.5.85/work/kdelibs-4.5.85/kdeui/kernel/kapplication.cpp:311 #25 0x00000031a756060b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4 #26 0x00000031a7563dc4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4 #27 0x00000031a758b313 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/qt4/libQtCore.so.4 #28 0x00000031a4c44272 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #29 0x00000031a4c44a50 in g_main_context_iterate.clone.5 () from /usr/lib/libglib-2.0.so.0 #30 0x00000031a4c44ced in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #31 0x00000031a758b4af in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #32 0x00007faf4061423e in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtGui.so.4 #33 0x00000031a755f9b2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #34 0x00000031a755fbf4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4 #35 0x00000031a756407b in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4 This project file causes Lokalize crash each time: $ cat index.lokalize [General] AltDir=../work LangCode=cs PotBaseDir=./ ProjectID=kde-summit TargetLangCode=summit Created attachment 55738 [details]
New crash information added by DrKonqi
lokalize (1.1) on KDE Platform 4.5.4 (KDE 4.5.4) using Qt 4.7.1
- What I was doing when the application crashed:
Create new Lokalize project and open Scripts tab on save.
-- Backtrace (Reduced):
#13 0xb6cee661 in QTreeView::paintEvent(QPaintEvent*) () from /usr/lib/libQtGui.so.4
#14 0xb67e520e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#15 0xb6b93cb3 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#16 0xb6c17cb2 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#17 0xb6cab23c in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
Created attachment 55753 [details]
New crash information added by DrKonqi
lokalize (1.2) on KDE Platform 4.5.95 (4.6 RC2) using Qt 4.7.1
- What I was doing when the application crashed:
Started Lokalize from openSUSE 11.3 menu, select Project > Create new project, select Scripts
-- Backtrace (Reduced):
#6 0x00007fbb9d9662db in Kross::ActionCollection::actions() const () from /usr/lib64/libkrosscore.so.4
#7 0x00007fbb9d74c81d in Kross::ActionCollectionModel::rowCount(QModelIndex const&) const () from /usr/lib64/libkrossui.so.4
#8 0x00007fbb9a9c39da in QAbstractItemModel::hasChildren (this=0xb7a700, parent=...) at kernel/qabstractitemmodel.cpp:1630
#9 0x00007fbb9b426172 in QTreeView::doItemsLayout (this=0xb8d9c0) at itemviews/qtreeview.cpp:2024
#10 0x00007fbb9b4215d4 in QTreeViewPrivate::updateScrollBars (this=0xbc1520) at itemviews/qtreeview.cpp:3439
Created attachment 56081 [details]
New crash information added by DrKonqi
lokalize (1.2) on KDE Platform 4.5.95 (4.6 RC2) using Qt 4.7.1
- What I was doing when the application crashed:
installed fresh openSUSE 11.4 milestone5 from kde live cd and updated to kde 4.6rc2.
started Lokalize from menu, selected Project > create new project.
I type name of project.
For a half of second appeares next dialog and Lokalize crashed (I did't do anything).
I restarted Lokalize, repeated this action and it behave idendically (both: if I try to create project in new folder and in other folder).
-- Backtrace (Reduced):
#7 0xb77e6d5e in QList (this=0x8462a48) at /usr/include/QtCore/qlist.h:118
#8 Kross::ActionCollection::actions (this=0x8462a48) at /usr/src/debug/kdelibs-4.5.95/kross/core/actioncollection.cpp:162
#9 0xb77ce546 in Kross::ActionCollectionModel::rowCount (this=0x862e440, index=...) at /usr/src/debug/kdelibs-4.5.95/kross/ui/model.cpp:228
#10 0xb60724df in QAbstractItemModel::hasChildren(QModelIndex const&) const () from /usr/lib/libQtCore.so.4
#11 0xb68e7cbd in QTreeView::doItemsLayout() () from /usr/lib/libQtGui.so.4
Created attachment 56085 [details]
This is log from konsole: at first started with not deleted lokalizerc and .kde4/share/apps/lokalize ; the second is after deletion of localize configuration files
The solution is: 1) to start lokalize from _terminal_, not from menu (because of https://bugs.kde.org/show_bug.cgi?id=257742#c1 - lokalize can't create project by going "Project > New project wizard" if started from menu) 2) create new project using "Project > New project wizard", not from "Create new project". After this, seems to be good configuration files are created, so now you can create all other projects by using "Project > Create new project"! ;) But I was too optimistic, because it woks (and no crashes in any tab) while you use the same Lokalize window. If you close Lokalize and start again (from terminal or by menu - now it makes no sence), "Project > Create new project" always crashes after any tab (except the first, i.e. default) Created attachment 56090 [details]
New crash information added by DrKonqi
lokalize (1.2) on KDE Platform 4.5.95 (4.6 RC2) using Qt 4.7.1
This is crash information for last case (crash after "Project > Create new project", defining file and selecting any tab [advanced|scrits|personal])
-- Backtrace (Reduced):
#7 0xb7853d5e in QList (this=0x84222c0) at /usr/include/QtCore/qlist.h:118
#8 Kross::ActionCollection::actions (this=0x84222c0) at /usr/src/debug/kdelibs-4.5.95/kross/core/actioncollection.cpp:162
#9 0xb783b546 in Kross::ActionCollectionModel::rowCount (this=0x86cca20, index=...) at /usr/src/debug/kdelibs-4.5.95/kross/ui/model.cpp:228
#10 0xb60df4df in QAbstractItemModel::hasChildren(QModelIndex const&) const () from /usr/lib/libQtCore.so.4
#11 0xb6954cbd in QTreeView::doItemsLayout() () from /usr/lib/libQtGui.so.4
Created attachment 56091 [details]
Log from console for last case (crash on pressing any tab, except "general")
In this log I see, that not absolute path to file is used.
thanks for your testing work. i'll sort it out in the next days i fixed crash (with workaround), and will push it to git as soon as i deal with git auditing problems... Git commit 1482ddf6a67537d71b7208084b6c5f5239c39e65 by Nick Shaforostoff. Committed on 03/02/11 at 17:19. Pushed by shaforo into branch 'master'. guard ActionCollection with a QPointer. It seems that kross engine is not prepared for big changes such that happen when lokalize creates a new project. BUG: 207791 M +5 -2 kross/core/actioncollection.cpp M +4 -3 kross/ui/model.cpp http://commits.kde.org/kdelibs/1482ddf6a67537d71b7208084b6c5f5239c39e65 *** Bug 263107 has been marked as a duplicate of this bug. *** Not it does not crash, but it stays in configuration panel for 20 mins and does nothing... does it react on muse movement? are you doing exactly the same steps described in the original report text? if not, can you please describe your steps to reproduce the problem. Also the version of KDE/Lokalize you're using, and maybe some other info that might be useful to reproduce/fix the issue. (In reply to comment #29) > does it react on muse movement? > are you doing exactly the same steps described in the original report text? > if not, can you please describe your steps to reproduce the problem. Also > the version of KDE/Lokalize you're using, and maybe some other info that > might be useful to reproduce/fix the issue. No, only close and minimize buttons react. I am creating a project using create wizard or manually. Then, I close lokalize and reopen it again. Going to configure project and editing anything (e.g. mail address). When I click on apply or OK it hangs (no error no crash, but nothing). I am using KDE 4.9.98 but it was the same I was using 4.9 too... I also checked but my index.lokalize file is not modified. I only have target language and thats all.. I added other entries manually. i have installed a fresh daily build of kubuntu into virtualbox, called lokalize, created a new project for uk language (it is the first language checked out from anonsvn), then restarted lokalize, opened configure project window, changed the mail address, pressed OK and all was fine. tried several times this. Created attachment 76948 [details]
Lokalize crash video
Comment on attachment 76948 [details]
Lokalize crash video
so what is in the backtrace?
(In reply to comment #33) > Comment on attachment 76948 [details] > Lokalize crash video > > so what is in the backtrace? There is no backtrace because it does not crash and does not show the Bug reporter... Volkan, can you please test the following scenarios? 1. Can you reproduce this by following Nick’s steps? (downloading the uk language using Lokalize’s New Project Wizard) 2. If not, can you reproduce this by following Nick’s steps but downloading the tr language into a folder other than your current working folder? 3. If not, can you still reproduce this with your working tr translation folder? If only the third remains true, please, compress the content of your folder with “tar -cavf tr.tar.xz <path to folder>” (should give you the best compression). If the compressed archive is not too large, please attach it. Otherwise, please, see if you can find a way to let us get access to it. (In reply to comment #35) > Volkan, can you please test the following scenarios? > 1. Can you reproduce this by following Nick’s steps? (downloading the uk > language using Lokalize’s New Project Wizard) > 2. If not, can you reproduce this by following Nick’s steps but downloading > the tr language into a folder other than your current working folder? > 3. If not, can you still reproduce this with your working tr translation > folder? > > If only the third remains true, please, compress the content of your folder > with “tar -cavf tr.tar.xz <path to folder>” (should give you the best > compression). If the compressed archive is not too large, please attach it. > Otherwise, please, see if you can find a way to let us get access to it. Hi. I cannot reproduce it anymore. Probably there was a problem with the installation. Now everything is perfect :) |