Bug 286950 - plasma-desktop asserts on startup with ASSERT: "first >= 0" message
Summary: plasma-desktop asserts on startup with ASSERT: "first >= 0" message
Status: RESOLVED DUPLICATE of bug 258040
Alias: None
Product: plasma4
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 18:13 UTC by Matěj Laitl
Modified: 2011-11-19 01:11 UTC (History)
0 users

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 Matěj Laitl 2011-11-18 18:13:22 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.7.3 (4.7.3) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 3.1.1 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
plasma-desktop asserts on every startup for me when following conditions are met:
 * Qt is compiled with debug flag (QT_NO_DEBUG _not_ set) (4.7.4 Qt version)
 * kwin desktop effects are enabled

 * debug build is _not_ enabled for kdelibs (QT_NO_DEBUG _is_ set when building KDE)

The assertion message in .xsession-errors:
ASSERT: "first >= 0" in file kernel/qabstractitemmodel.cpp, line 2445

I use OpenGL ES intel X.org driver for acceleration, as reported by kwin:
OpenGL vendor string:                   Tungsten Graphics, Inc
OpenGL renderer string:                 Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL version string:                  OpenGL ES 2.0 Mesa 7.11.1
OpenGL shading language version string: OpenGL ES GLSL ES 1.0.16
Driver:                                 Intel
GPU class:                              i965
OpenGL version:                         2.0
GLSL version:                           1.0.16
Mesa version:                           7.11.1
X server version:                       1.11.2
Linux kernel version:                   3.1.1
Direct rendering:                       yes
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes

Plasma-desktop asserts only for the first time it is started in a given session - it is then restarted and works flawlessly.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Plasma Desktop Shell (kdeinit4), signal: Aborted
[Current thread is 1 (Thread 0x7fe69fd1e760 (LWP 17965))]

Thread 4 (Thread 0x7fe682a40700 (LWP 17967)):
#0  0x00007fe69d2c2fd3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fe69a0ae6f4 in g_main_context_poll (n_fds=1, fds=0x1182af0, timeout=-1, context=0x1181230, priority=<optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0x1181230, block=1, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x00007fe69a0aec2d in g_main_context_iteration (context=0x1181230, may_block=1) at gmain.c:3155
#4  0x00007fe69e9804c6 in QEventDispatcherGlib::processEvents (this=0x1231c80, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fe69e950c02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007fe69e950e4c in QEventLoop::exec (this=0x7fe682a3fde0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007fe69e857ce8 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007fe69e930cf0 in QInotifyFileSystemWatcherEngine::run (this=0x117f400) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fe69e85a97a in QThreadPrivate::start (arg=0x117f400) at thread/qthread_unix.cpp:331
#10 0x00007fe69e5c8c6c in start_thread (arg=0x7fe682a40700) at pthread_create.c:301
#11 0x00007fe69d2cbd2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fe682026700 (LWP 17968)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007fe69e85b0b2 in wait (time=30000, this=0x11dfb70) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x11e0040, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fe69e84e280 in QThreadPoolThread::run (this=0x1237990) at concurrent/qthreadpool.cpp:140
#4  0x00007fe69e85a97a in QThreadPrivate::start (arg=0x1237990) at thread/qthread_unix.cpp:331
#5  0x00007fe69e5c8c6c in start_thread (arg=0x7fe682026700) at pthread_create.c:301
#6  0x00007fe69d2cbd2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fe674642700 (LWP 17996)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007fe69e85b0b2 in wait (time=30000, this=0x1caded0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1cade60, time=30000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fe69e84e280 in QThreadPoolThread::run (this=0x1cac8c0) at concurrent/qthreadpool.cpp:140
#4  0x00007fe69e85a97a in QThreadPrivate::start (arg=0x1cac8c0) at thread/qthread_unix.cpp:331
#5  0x00007fe69e5c8c6c in start_thread (arg=0x7fe674642700) at pthread_create.c:301
#6  0x00007fe69d2cbd2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fe69fd1e760 (LWP 17965)):
[KCrash Handler]
#6  0x00007fe69d22c8f5 in *__GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007fe69d22dd76 in *__GI_abort () at abort.c:92
#8  0x00007fe69e84fdd4 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2291
#9  0x00007fe69e84ff6d in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fe69e9b7cf8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff2d99b320) at global/qglobal.cpp:2337
#10 0x00007fe69e850109 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2520
#11 0x00007fe69e948738 in QAbstractItemModel::beginRemoveRows (this=0x1589110, parent=..., first=-1, last=-1) at kernel/qabstractitemmodel.cpp:2445
#12 0x00007fe6762c967b in Akonadi::EntityTreeModelPrivate::monitoredItemRemoved (this=0x16df090, item=...) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/entitytreemodel_p.cpp:1024
#13 0x00007fe6762b8167 in Akonadi::EntityTreeModel::qt_metacall (this=0x1589110, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff2d99b660) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3_build/akonadi/entitytreemodel.moc:168
#14 0x00007fe69e968c7f in QMetaObject::activate (sender=0xa92d40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2d99b660) at kernel/qobject.cpp:3278
#15 0x00007fe676302b45 in Akonadi::Monitor::itemRemoved (this=<optimized out>, _t1=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3_build/akonadi/monitor.moc:190
#16 0x00007fe6763073cf in Akonadi::MonitorPrivate::emitItemNotification (this=0x1b72da0, msg=..., item=<optimized out>, collection=<optimized out>, collectionDest=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/monitor_p.cpp:525
#17 0x00007fe676308744 in Akonadi::MonitorPrivate::emitNotification (this=0x1b72da0, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/monitor_p.cpp:284
#18 0x00007fe67626ee71 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x1b72da0, msg=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/changerecorder_p.h:60
#19 0x00007fe67630658d in Akonadi::MonitorPrivate::dispatchNotifications (this=0x1b72da0) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/monitor_p.cpp:443
#20 0x00007fe676308c12 in Akonadi::MonitorPrivate::slotNotify (this=0x1b72da0, msgs=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/monitor_p.cpp:414
#21 0x00007fe67626f8bc in Akonadi::ChangeRecorderPrivate::slotNotify (this=<optimized out>, msgs=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3/akonadi/changerecorder_p.h:51
#22 0x00007fe6763031a5 in Akonadi::Monitor::qt_metacall (this=0xa92d40, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff2d99bea0) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3_build/akonadi/monitor.moc:155
#23 0x00007fe67626d588 in Akonadi::ChangeRecorder::qt_metacall (this=0xa92d40, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3_build/akonadi/changerecorder.moc:72
#24 0x00007fe69e968c7f in QMetaObject::activate (sender=0x1c2c1c0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff2d99bea0) at kernel/qobject.cpp:3278
#25 0x00007fe67637d752 in OrgFreedesktopAkonadiNotificationSourceInterface::notify (this=<optimized out>, _t1=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3_build/akonadi/notificationsourceinterface.moc:91
#26 0x00007fe67637d7ae in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x1c2c1c0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff2d99bfb0) at /var/tmp/portage/kde-base/kdepimlibs-4.7.3/work/kdepimlibs-4.7.3_build/akonadi/notificationsourceinterface.moc:77
#27 0x00007fe69b6a78ba in QDBusConnectionPrivate::deliverCall (this=0x8bbcc0, object=0x1c2c1c0, msg=..., metaTypes=<optimized out>, slotIdx=5) at qdbusintegrator.cpp:942
#28 0x00007fe69b6b1a3f in QDBusCallDeliveryEvent::placeMetaCall (this=<optimized out>, object=<optimized out>) at qdbusintegrator_p.h:103
#29 0x00007fe69e96873a in QObject::event (this=0x1c2c1c0, e=<optimized out>) at kernel/qobject.cpp:1217
#30 0x00007fe69da39e54 in QApplicationPrivate::notify_helper (this=0x8dc8f0, receiver=0x1c2c1c0, e=0x2212f00) at kernel/qapplication.cpp:4481
#31 0x00007fe69da3f1f4 in QApplication::notify (this=<optimized out>, receiver=0x1c2c1c0, e=0x2212f00) at kernel/qapplication.cpp:4360
#32 0x00007fe69f713a86 in KApplication::notify (this=0x8cc340, receiver=0x1c2c1c0, event=0x2212f00) at /var/tmp/portage/kde-base/kdelibs-4.7.3/work/kdelibs-4.7.3/kdeui/kernel/kapplication.cpp:311
#33 0x00007fe69e95216c in QCoreApplication::notifyInternal (this=0x8cc340, receiver=0x1c2c1c0, event=0x2212f00) at kernel/qcoreapplication.cpp:787
#34 0x00007fe69e9560a9 in sendEvent (event=0x2212f00, receiver=0x1c2c1c0) at kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x7e7b00) at kernel/qcoreapplication.cpp:1428
#36 0x00007fe69e9802d3 in sendPostedEvents () at kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007fe69a0ae1b3 in g_main_dispatch (context=0x8e48e0) at gmain.c:2441
#39 g_main_context_dispatch (context=0x8e48e0) at gmain.c:3014
#40 0x00007fe69a0ae990 in g_main_context_iterate (context=0x8e48e0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3092
#41 0x00007fe69a0aec2d in g_main_context_iteration (context=0x8e48e0, may_block=1) at gmain.c:3155
#42 0x00007fe69e98046f in QEventDispatcherGlib::processEvents (this=0x8d9170, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#43 0x00007fe69daebbbe in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007fe69e950c02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007fe69e950e4c in QEventLoop::exec (this=0x7fff2d99cba0, flags=...) at kernel/qeventloop.cpp:201
#46 0x00007fe69e9563ab in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#47 0x00007fe68dd6539d in kdemain (argc=1, argv=0x800930) at /var/tmp/portage/kde-base/plasma-workspace-4.7.3-r2/work/plasma-workspace-4.7.3/plasma/desktop/shell/main.cpp:120
#48 0x00000000004074e9 in launch (argc=1, _name=0x855e58 "/usr/bin/plasma-desktop", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b50e "0") at /var/tmp/portage/kde-base/kdelibs-4.7.3/work/kdelibs-4.7.3/kinit/kinit.cpp:734
#49 0x00000000004080e0 in handle_launcher_request (sock=<optimized out>, who=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.3/work/kdelibs-4.7.3/kinit/kinit.cpp:1226
#50 0x00000000004087d5 in handle_requests (waitForPid=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.3/work/kdelibs-4.7.3/kinit/kinit.cpp:1419
#51 0x00000000004093d2 in main (argc=2, argv=0x7fff2d99de38, envp=0x7fff2d99de50) at /var/tmp/portage/kde-base/kdelibs-4.7.3/work/kdelibs-4.7.3/kinit/kinit.cpp:1907

Possible duplicates by query: bug 283439, bug 273566, bug 273147, bug 272525, bug 272389.

Reported using DrKonqi
Comment 1 Christoph Feck 2011-11-19 01:11:53 UTC

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