Bug 263630 - [Kross ActionCollection::actions] Lokalize crashes when creating new project
Summary: [Kross ActionCollection::actions] Lokalize crashes when creating new project
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-19 11:26 UTC by IRIGOYEN Unai
Modified: 2011-03-13 20:29 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (12.62 KB, text/plain)
2011-01-30 18:14 UTC, opensuse.lietuviu.kalba
Details
New crash information added by DrKonqi (12.97 KB, text/plain)
2011-02-02 18:05 UTC, Frederik Schwarzer
Details
New crash information added by DrKonqi (10.90 KB, text/plain)
2011-02-16 14:01 UTC, opensuse.lietuviu.kalba
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IRIGOYEN Unai 2011-01-19 11:26:33 UTC
Application: lokalize (1.1)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
First time I tried to create a project without wizard I entered the project file name and path, then, I went trough advaced settings tab of project options and lokalize crashed.
Next times I was just able to select path and filename and lokalize crashed when clicking validation button.
The project file has never been created in the destination directory.
A .po file was open while doing that.

The crash can be reproduced every time.

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

Thread 3 (Thread 0xb4343b70 (LWP 2929)):
#0  __pthread_mutex_lock (mutex=0x9156d6c) at pthread_mutex_lock.c:56
#1  0x008ebf66 in pthread_mutex_lock (mutex=0x9156d6c) at forward.c:182
#2  0x03a8bd0f in g_main_context_prepare () from /lib/libglib-2.0.so.0
#3  0x03a8c279 in ?? () from /lib/libglib-2.0.so.0
#4  0x03a8c848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x0121259f in QEventDispatcherGlib::processEvents (this=0x9156440, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0x011e2609 in QEventLoop::processEvents (this=0xb4343290, flags=) at kernel/qeventloop.cpp:149
#7  0x011e2a8a in QEventLoop::exec (this=0xb4343290, flags=...) at kernel/qeventloop.cpp:201
#8  0x010deb7e in QThread::exec (this=0x8b8a470) at thread/qthread.cpp:490
#9  0x011c135b in QInotifyFileSystemWatcherEngine::run (this=0x8b8a470) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x010e1df9 in QThreadPrivate::start (arg=0x8b8a470) at thread/qthread_unix.cpp:266
#11 0x00223cc9 in start_thread (arg=0xb4343b70) at pthread_create.c:304
#12 0x008de69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb3a5ab70 (LWP 2930)):
#0  0x00cc5416 in __kernel_vsyscall ()
#1  0x002284dc in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x008ebd9d in __pthread_cond_wait (cond=0x8b0d550, mutex=0x8b0d538) at forward.c:139
#3  0x010e29c7 in wait (this=0x8b0d458, mutex=0x8b0ca30, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0x8b0d458, mutex=0x8b0ca30, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0x00133030 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8b0d440, th=0x91716a8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x001367dc in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8b0c988, th=0x91716a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x0013255b in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8b0d440, th=0x91716a8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x001368d2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8b0c988, th=0x91716a8) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x00133533 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8b0d440, th=0x91716a8, previous=0x9e8c188) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x0013495e in ThreadWeaver::ThreadRunHelper::run (this=0xb3a5a2f4, parent=0x8b0d440, th=0x91716a8) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x0013507b in ThreadWeaver::Thread::run (this=0x91716a8) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x010e1df9 in QThreadPrivate::start (arg=0x91716a8) at thread/qthread_unix.cpp:266
#13 0x00223cc9 in start_thread (arg=0xb3a5ab70) at pthread_create.c:304
#14 0x008de69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7713710 (LWP 2927)):
[KCrash Handler]
#7  0x002691b0 in QList (this=0x91a49b8) at /usr/include/qt4/QtCore/qlist.h:118
#8  Kross::ActionCollection::actions (this=0x91a49b8) at ../../../kross/core/actioncollection.cpp:162
#9  0x0011e935 in Kross::ActionCollectionModel::rowCount (this=0x9ecdab8, index=...) at ../../../kross/ui/model.cpp:228
#10 0x011d634e in QAbstractItemModel::hasChildren (this=0x9ecdab8, parent=...) at kernel/qabstractitemmodel.cpp:1630
#11 0x0306eee2 in QTreeView::doItemsLayout (this=0x9d834f0) at itemviews/qtreeview.cpp:2024
#12 0x0306b520 in QTreeViewPrivate::updateScrollBars (this=0x9ec5198) at itemviews/qtreeview.cpp:3439
#13 0x0306b775 in QTreeView::updateGeometries (this=0x9d834f0) at itemviews/qtreeview.cpp:2686
#14 0x0301bc44 in QAbstractItemView::resizeEvent (this=0x9d834f0, event=0xbfcb4948) at itemviews/qabstractitemview.cpp:2388
#15 0x02aafc53 in QWidget::event (this=0x9d834f0, event=0xbfcb4948) at kernel/qwidget.cpp:8341
#16 0x02ed1763 in QFrame::event (this=0x9d834f0, e=0xbfcb4948) at widgets/qframe.cpp:557
#17 0x02f6ea82 in QAbstractScrollArea::viewportEvent (this=0xbfcb3fbc, e=0x12a7a8) at widgets/qabstractscrollarea.cpp:1043
#18 0x0302b0f7 in QAbstractItemView::viewportEvent (this=0x9d834f0, event=0xbfcb4948) at itemviews/qabstractitemview.cpp:1619
#19 0x0306d883 in QTreeView::viewportEvent (this=0x9d834f0, event=0xbfcb4948) at itemviews/qtreeview.cpp:1256
#20 0x02f714d5 in viewportEvent (this=0x9da0220, o=0x9ec5d48, e=0xbfcb4948) at widgets/qabstractscrollarea_p.h:100
#21 QAbstractScrollAreaFilter::eventFilter (this=0x9da0220, o=0x9ec5d48, e=0xbfcb4948) at widgets/qabstractscrollarea_p.h:116
#22 0x011e329a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8a663c8, receiver=0x9ec5d48, event=0xbfcb4948) at kernel/qcoreapplication.cpp:847
#23 0x02a51fb9 in QApplicationPrivate::notify_helper (this=0x8a663c8, receiver=0x9ec5d48, e=0xbfcb4948) at kernel/qapplication.cpp:4392
#24 0x02a580e9 in QApplication::notify (this=0xbfcb5710, receiver=0x9ec5d48, e=0xbfcb4948) at kernel/qapplication.cpp:4361
#25 0x00e9fd8a in KApplication::notify (this=0xbfcb5710, receiver=0x9ec5d48, event=0xbfcb4948) at ../../kdeui/kernel/kapplication.cpp:310
#26 0x011e3b3b in QCoreApplication::notifyInternal (this=0xbfcb5710, receiver=0x9ec5d48, event=0xbfcb4948) at kernel/qcoreapplication.cpp:732
#27 0x02aaedf9 in sendEvent (this=0x9ec54a0, recursive=true, disableUpdates=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QWidgetPrivate::sendPendingMoveAndResizeEvents (this=0x9ec54a0, recursive=true, disableUpdates=true) at kernel/qwidget.cpp:7257
#29 0x02aaed67 in QWidgetPrivate::sendPendingMoveAndResizeEvents (this=0x9ec5198, recursive=true, disableUpdates=true) at kernel/qwidget.cpp:7269
#30 0x02aaed67 in QWidgetPrivate::sendPendingMoveAndResizeEvents (this=0x9ec5958, recursive=true, disableUpdates=true) at kernel/qwidget.cpp:7269
#31 0x02aaed67 in QWidgetPrivate::sendPendingMoveAndResizeEvents (this=0x9ecf270, recursive=true, disableUpdates=true) at kernel/qwidget.cpp:7269
#32 0x02aaed67 in QWidgetPrivate::sendPendingMoveAndResizeEvents (this=0x9d6d978, recursive=true, disableUpdates=true) at kernel/qwidget.cpp:7269
#33 0x02ab36b1 in QWidgetPrivate::prepareToRender (this=0x9ea3270, region=..., renderFlags=...) at kernel/qwidget.cpp:5236
#34 0x02ab7fd4 in QWidgetPrivate::render (this=0x9ea3270, target=0xbfcb4e24, targetOffset=..., sourceRegion=..., renderFlags=..., readyToRender=false) at kernel/qwidget.cpp:5489
#35 0x02ab824c in QWidget::render (this=0x9ea3908, target=0xbfcb4e24, targetOffset=..., sourceRegion=..., renderFlags=...) at kernel/qwidget.cpp:5019
#36 0x084e350d in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#37 0x084e3655 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#38 0x084deaf6 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#39 0x011f6504 in QObject::event (this=0xbfcb4dac, e=0x12a7a8) at kernel/qobject.cpp:1183
#40 0x02a51fdc in QApplicationPrivate::notify_helper (this=0x8a663c8, receiver=0x9dc3260, e=0xbfcb53b0) at kernel/qapplication.cpp:4396
#41 0x02a5804e in QApplication::notify (this=0xbfcb5710, receiver=0x9dc3260, e=0xbfcb53b0) at kernel/qapplication.cpp:3798
#42 0x00e9fd8a in KApplication::notify (this=0xbfcb5710, receiver=0x9dc3260, event=0xbfcb53b0) at ../../kdeui/kernel/kapplication.cpp:310
#43 0x011e3b3b in QCoreApplication::notifyInternal (this=0xbfcb5710, receiver=0x9dc3260, event=0xbfcb53b0) at kernel/qcoreapplication.cpp:732
#44 0x01215ad6 in sendEvent (this=0x8a69194) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#45 QTimerInfoList::activateTimers (this=0x8a69194) at kernel/qeventdispatcher_unix.cpp:602
#46 0x01212874 in timerSourceDispatch (source=0x8a69160) at kernel/qeventdispatcher_glib.cpp:184
#47 0x03a88855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#48 0x03a8c668 in ?? () from /lib/libglib-2.0.so.0
#49 0x03a8c848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#50 0x01212565 in QEventDispatcherGlib::processEvents (this=0x8a51310, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#51 0x02b13be5 in QGuiEventDispatcherGlib::processEvents (this=0x8a51310, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#52 0x011e2609 in QEventLoop::processEvents (this=0xbfcb5674, flags=) at kernel/qeventloop.cpp:149
#53 0x011e2a8a in QEventLoop::exec (this=0xbfcb5674, flags=...) at kernel/qeventloop.cpp:201
#54 0x011e700f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#55 0x02a50e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#56 0x0807219e in _start ()

This bug may be a duplicate of or related to bug 207791.

Possible duplicates by query: bug 248123, bug 246329, bug 240540.

Reported using DrKonqi
Comment 1 opensuse.lietuviu.kalba 2011-01-30 18:14:02 UTC
Created attachment 56673 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.00 (4.6.0) "release 375" using Qt 4.7.1

- What I was doing when the application crashed:

I upgraded openSUSE 11.3 64 bit system from http://download.opensuse.org/repositories/KDE%3a/Release%3a/46/openSUSE_11.3/
I removed .kde4 directory.
From konsole started Lokalize.
Go to meniu Project > Create new project.
Enter file name.
Select Scripts tab.
Crash

-- Backtrace (Reduced):
#6  0x00007f562a6fd2db in Kross::ActionCollection::actions() const () from /usr/lib64/libkrosscore.so.4
#7  0x00007f562a4e381d in Kross::ActionCollectionModel::rowCount(QModelIndex const&) const () from /usr/lib64/libkrossui.so.4
#8  0x00007f56277599da in QAbstractItemModel::hasChildren(QModelIndex const&) const () from /usr/lib64/libQtCore.so.4
#9  0x00007f56281bc172 in QTreeView::doItemsLayout (this=0xbdfed0) at itemviews/qtreeview.cpp:2024
#10 0x00007f56281b75d4 in QTreeViewPrivate::updateScrollBars (this=0xdc0760) at itemviews/qtreeview.cpp:3439
Comment 2 Frederik Schwarzer 2011-02-02 18:05:41 UTC
Created attachment 56792 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.1

- What I was doing when the application crashed:

After giving the file name, the config dialog shows up ... and vanishes again with this crash.

-- Backtrace (Reduced):
#7  0xb77d4a0f in QList (this=0x9ee67e8) at /usr/include/qt4/QtCore/qlist.h:118
#8  Kross::ActionCollection::actions (this=0x9ee67e8) at /home/fs/kdesrc/kdelibs/kross/core/actioncollection.cpp:162
#9  0xb77b8496 in Kross::ActionCollectionModel::rowCount (this=0xa28d200, index=...) at /home/fs/kdesrc/kdelibs/kross/ui/model.cpp:228
#10 0xb5ad4b0e in QAbstractItemModel::hasChildren (this=0xa28d200, parent=...) at kernel/qabstractitemmodel.cpp:1630
#11 0xb6392adf in QTreeView::doItemsLayout (this=0x9fc5e00) at itemviews/qtreeview.cpp:2024
Comment 3 Nick Shaforostoff 2011-02-08 15:11:33 UTC
i protected kdelibs code from crashing. wait for kdelibs 4.6.1
Comment 4 opensuse.lietuviu.kalba 2011-02-16 14:01:50 UTC
Created attachment 57295 [details]
New crash information added by DrKonqi

lokalize (1.2) on KDE Platform 4.6.00 (4.6.0) using Qt 4.7.1

- What I was doing when the application crashed:

Install https://api.opensuse.org/build/home:remur:branches:KDE:Distro:Factory/openSUSE_Factory/x86_64/kdelibs4/kdelibs4-4.6.0-384.1.x86_64.rpm to test if http://commits.kde.org/kdelibs/1482ddf6a67537d71b7208084b6c5f5239c39e65 patch work (see also https://bugzilla.novell.com/show_bug.cgi?id=608699 )

Open Lokalize
Go to meniu Project > Create new project.
Enter file name.
Confirm name
Dialog opens and imediatly crash

-- Backtrace (Reduced):
#6  QList (this=0x91d260) at /usr/include/QtCore/qlist.h:118
#7  Kross::ActionCollection::actions (this=0x91d260) at /usr/src/debug/kdelibs-4.6.0/kross/core/actioncollection.cpp:162
#8  0x00007f14ef62581d in Kross::ActionCollectionModel::rowCount (this=<value optimized out>, index=<value optimized out>) at /usr/src/debug/kdelibs-4.6.0/kross/ui/model.cpp:228
#9  0x00007f14ec8c292a in QAbstractItemModel::hasChildren(QModelIndex const&) const () from /usr/lib64/libQtCore.so.4
#10 0x00007f14ed31a732 in QTreeView::doItemsLayout() () from /usr/lib64/libQtGui.so.4
Comment 5 opensuse.lietuviu.kalba 2011-02-16 14:56:11 UTC
Then I downloaded and installed all your packages, not only kdelibs4. 
Then I had no crash while going to Project > Create new project. :)

But I still can not create new project via Project > New project wizard, If go go from menu (still no reaction).
And it crash, if I try to do this by starting lokalize from command line with parameter of not .po file:
> echo "bla bla bla" > /tmp/geras.po
> lokalize /tmp/geras.po
and after that go Project > New project wizard
see https://bugs.kde.org/show_bug.cgi?id=266457
Comment 6 opensuse.lietuviu.kalba 2011-03-13 20:29:13 UTC
Today I found Lokalize 4.6.1 in http://download.opensuse.org/repositories/KDE:/Release:/46/openSUSE_11.4/ ! And I again switched my system to
KDE4.6 repo. Now I can create new project via "Project > Create new project"
and "Project > New project wizard"! 
Thanks!