Bug 227855 - k3b crashes when lauching "new video cd project"
Summary: k3b crashes when lauching "new video cd project"
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.70.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-20 21:38 UTC by Malte Swart
Modified: 2010-02-21 19:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Swart 2010-02-20 21:38:18 UTC
Application: k3b (1.70.0)
KDE Platform Version: 4.4.00 (KDE 4.4.0) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-gentoo-r5-20100220 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
K3b crashes when opening a new empty "new video cd project" by menu or command line argument
Compiled from sources (1.70.0 from svn at revision 1092481) with full debug information

system information:
gcc: 4.4.3
glibc: 2.11-r1
cmake: 2.8.0-r2
gcc-config: 1.4.1
libtool: 2.2.6b
binutils: 2.20

konsole output while lauching new video cd project:
k3b(12476) K3b::ProjectManager::createProject: 8
k3b(12476) K3b::ProjectManager::createEmptyProject: 8
k3b(12476) K3b::Device::DeviceManager::findDevice: (K3b::Device::DeviceManager) request for empty device!
k3b(12476) K3b::ProjectManager::addProject: K3b::VcdDoc(0x2ac54d0)
k3b(12476) K3b::ProjectManager::addProject: (K3b::ProjectManager) adding doc  "/VideoCD0"
k3b(12476) K3b::MainWindow::createClient:
ASSERT failure in QList<T>::at: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 439

The crash can be reproduced every time.

 -- Backtrace:
Application: K3b (k3b), signal: Aborted
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7f18f0d28760 (LWP 31143))]

Thread 3 (Thread 0x7f18d936b710 (LWP 31169)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f18ead79075 in thread_sleep (ti=0x7f18d936adb0) at thread/qthread_unix.cpp:398
#2  0x00007f18ead79216 in QThread::sleep (secs=<value optimized out>) at thread/qthread_unix.cpp:412
#3  0x00007f18f0601547 in K3b::MediaCache::PollThread::run (this=0x1619110) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/libk3b/tools/k3bmediacache.cpp:106
#4  0x00007f18ead7974a in QThreadPrivate::start (arg=0x1619110) at thread/qthread_unix.cpp:248
#5  0x00007f18eaae88e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f18e912edfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f18d8b6a710 (LWP 31170)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f18ead79075 in thread_sleep (ti=0x7f18d8b69db0) at thread/qthread_unix.cpp:398
#2  0x00007f18ead79216 in QThread::sleep (secs=<value optimized out>) at thread/qthread_unix.cpp:412
#3  0x00007f18f0601547 in K3b::MediaCache::PollThread::run (this=0x15eb330) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/libk3b/tools/k3bmediacache.cpp:106
#4  0x00007f18ead7974a in QThreadPrivate::start (arg=0x15eb330) at thread/qthread_unix.cpp:248
#5  0x00007f18eaae88e4 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#6  0x00007f18e912edfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f18f0d28760 (LWP 31143)):
[KCrash Handler]
#5  0x00007f18e9090195 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007f18e90915c0 in *__GI_abort () at abort.c:92
#7  0x00007f18ead702dc in qt_message_output (msgType=QtFatalMsg, buf=<value optimized out>) at global/qglobal.cpp:2250
#8  0x00007f18ead70482 in qt_message (msgType=QtFatalMsg, msg=0x7f18eaedff78 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fff834af060) at global/qglobal.cpp:2296
#9  0x00007f18ead70625 in qFatal (msg=0x79a7 <Address 0x79a7 out of bounds>) at global/qglobal.cpp:2479
#10 0x00000000004b13b9 in QList<K3b::VcdTrack*>::at (this=0x1c5efb0, i=0) at /usr/include/qt4/QtCore/qlist.h:439
#11 0x00000000004b326d in K3b::VcdDoc::at (this=<value optimized out>, i=31143) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/libk3b/projects/videocd/k3bvcddoc.h:86
#12 0x00000000004b2219 in K3b::VcdProjectModel::index (this=0x1c71860, row=<value optimized out>, column=<value optimized out>, parent=...)
    at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/projects/k3bvcdprojectmodel.cpp:109
#13 0x00007f18ea26dada in QAbstractItemView::setModel (this=0x1da5ca0, model=0x1c71860) at itemviews/qabstractitemview.cpp:654
#14 0x00007f18ea285ef2 in QHeaderView::setModel (this=0x1da5ca0, model=0x1c71860) at itemviews/qheaderview.cpp:410
#15 0x00007f18ea2b1561 in QTreeView::setModel (this=0x1d9fb20, model=0x1c71860) at itemviews/qtreeview.cpp:235
#16 0x00000000004bb22c in K3b::StandardView::setModel (this=0x1d81ac0, model=0x1c71860) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/projects/k3bstandardview.cpp:89
#17 0x00000000004b1a4c in VcdView (this=0x1d81ac0, pDoc=<value optimized out>, parent=<value optimized out>) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/projects/k3bvcdview.cpp:47
#18 0x0000000000508ff0 in K3b::MainWindow::createClient (this=0x1622930, doc=0x19f2980) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/k3b.cpp:628
#19 0x000000000050bb48 in K3b::MainWindow::qt_metacall (this=0x1622930, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff834af680)
    at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999_build/src/k3b.moc:218
#20 0x00007f18eae8d731 in QMetaObject::activate (sender=0x13d8490, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3285
#21 0x00000000005242ed in K3b::ProjectManager::newProject (this=0x79a7, _t1=0x19f2980) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999_build/src/k3bprojectmanager.moc:111
#22 0x0000000000525b20 in K3b::ProjectManager::addProject (this=0x13d8490, doc=0x19f2980) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/k3bprojectmanager.cpp:107
#23 0x0000000000526632 in K3b::ProjectManager::createProject (this=0x13d8490, type=K3b::Doc::VcdProject) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/k3bprojectmanager.cpp:248
#24 0x00000000005070f3 in K3b::MainWindow::slotNewVcdDoc (this=0x1622930) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/k3b.cpp:1253
#25 0x000000000050bbc5 in K3b::MainWindow::qt_metacall (this=0x1622930, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff834af930)
    at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999_build/src/k3b.moc:167
#26 0x00007f18eae8d731 in QMetaObject::activate (sender=0x162b200, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3285
#27 0x00007f18e9d118f2 in QAction::triggered (this=0x79a7, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#28 0x00007f18e9d12dab in QAction::activate (this=0x162b200, event=<value optimized out>) at kernel/qaction.cpp:1255
#29 0x00007f18ea179b56 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x162b200, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1011
#30 0x00007f18ea1801c2 in QMenuPrivate::activateAction (this=0x15fb210, action=0x162b200, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1103
#31 0x00007f18ec0d6ca2 in KMenu::mouseReleaseEvent (this=0x15fb1d0, e=0x7fff834b07b0) at /var/tmp/portage/kde-base/kdelibs-4.4.0/work/kdelibs-4.4.0/kdeui/widgets/kmenu.cpp:471
#32 0x00007f18e9d74eb6 in QWidget::event (this=0x15fb1d0, event=0x7fff834b07b0) at kernel/qwidget.cpp:7998
#33 0x00007f18ea18193b in QMenu::event (this=0x15fb1d0, e=0x7fff834b07b0) at widgets/qmenu.cpp:2414
#34 0x00007f18e9d18ef1 in QApplicationPrivate::notify_helper (this=0x137d4b0, receiver=0x15fb1d0, e=0x7fff834b07b0) at kernel/qapplication.cpp:4300
#35 0x00007f18e9d2175a in QApplication::notify (this=0x7fff834b2d00, receiver=0x15fb1d0, e=0x7fff834b07b0) at kernel/qapplication.cpp:3865
#36 0x00007f18ec0112b1 in KApplication::notify (this=0x7fff834b2d00, receiver=0x15fb1d0, event=0x7fff834b07b0)
    at /var/tmp/portage/kde-base/kdelibs-4.4.0/work/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#37 0x00007f18eae77d7b in QCoreApplication::notifyInternal (this=0x7fff834b2d00, receiver=0x15fb1d0, event=0x7fff834b07b0) at kernel/qcoreapplication.cpp:704
#38 0x00007f18e9d1e64a in QCoreApplication::sendEvent (receiver=0x15fb1d0, event=0x7fff834b07b0, alienWidget=0x0, nativeWidget=0x15fb1d0, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#39 QApplicationPrivate::sendMouseEvent (receiver=0x15fb1d0, event=0x7fff834b07b0, alienWidget=0x0, nativeWidget=0x15fb1d0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, 
    spontaneous=true) at kernel/qapplication.cpp:2965
#40 0x00007f18e9da86ad in QETWidget::translateMouseEvent (this=0x15fb1d0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4302
#41 0x00007f18e9da6ec9 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff834b0f30) at kernel/qapplication_x11.cpp:3501
#42 0x00007f18e9dd0cca in x11EventSourceDispatch (s=0x1386d10, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#43 0x00007f18e640e03b in g_main_dispatch (context=0x1385620) at gmain.c:1960
#44 IA__g_main_context_dispatch (context=0x1385620) at gmain.c:2513
#45 0x00007f18e6411940 in g_main_context_iterate (context=0x1385620, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#46 0x00007f18e6411a70 in IA__g_main_context_iteration (context=0x1385620, may_block=1) at gmain.c:2654
#47 0x00007f18eaea4033 in QEventDispatcherGlib::processEvents (this=0x134ca40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#48 0x00007f18e9dd088e in QGuiEventDispatcherGlib::processEvents (this=0x79a7, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007f18eae765d2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#50 0x00007f18eae769ad in QEventLoop::exec (this=0x7fff834b1270, flags=) at kernel/qeventloop.cpp:201
#51 0x00007f18ea17d619 in QMenu::exec (this=0x15fb1d0, p=<value optimized out>, action=<value optimized out>) at widgets/qmenu.cpp:2063
#52 0x00007f18ea1c77b7 in QToolButtonPrivate::popupTimerDone (this=0x1852c40) at widgets/qtoolbutton.cpp:955
#53 0x00007f18ea1c8089 in QToolButton::qt_metacall (this=0x183e460, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff834b1580) at .moc/debug-shared/moc_qtoolbutton.cpp:114
#54 0x00007f18eae8d731 in QMetaObject::activate (sender=0x183e460, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3285
#55 0x00007f18ea0ec8ee in QAbstractButtonPrivate::emitPressed (this=0x1852c40) at widgets/qabstractbutton.cpp:560
#56 0x00007f18ea0ecacc in QAbstractButton::mousePressEvent (this=0x183e460, e=0x7fff834b21b0) at widgets/qabstractbutton.cpp:1096
#57 0x00007f18ea1c890a in QToolButton::mousePressEvent (this=0x183e460, e=0x7fff834b21b0) at widgets/qtoolbutton.cpp:712
#58 0x00007f18e9d74e9c in QWidget::event (this=0x183e460, event=0x7fff834b21b0) at kernel/qwidget.cpp:7994
#59 0x00007f18e9d18ef1 in QApplicationPrivate::notify_helper (this=0x137d4b0, receiver=0x183e460, e=0x7fff834b21b0) at kernel/qapplication.cpp:4300
#60 0x00007f18e9d2175a in QApplication::notify (this=0x7fff834b2d00, receiver=0x183e460, e=0x7fff834b21b0) at kernel/qapplication.cpp:3865
#61 0x00007f18ec0112b1 in KApplication::notify (this=0x7fff834b2d00, receiver=0x183e460, event=0x7fff834b21b0)
    at /var/tmp/portage/kde-base/kdelibs-4.4.0/work/kdelibs-4.4.0/kdeui/kernel/kapplication.cpp:302
#62 0x00007f18eae77d7b in QCoreApplication::notifyInternal (this=0x7fff834b2d00, receiver=0x183e460, event=0x7fff834b21b0) at kernel/qcoreapplication.cpp:704
#63 0x00007f18e9d1e64a in QCoreApplication::sendEvent (receiver=0x183e460, event=0x7fff834b21b0, alienWidget=0x183e460, nativeWidget=0x184fc20, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#64 QApplicationPrivate::sendMouseEvent (receiver=0x183e460, event=0x7fff834b21b0, alienWidget=0x183e460, nativeWidget=0x184fc20, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:2965
#65 0x00007f18e9da8223 in QETWidget::translateMouseEvent (this=0x184fc20, event=<value optimized out>) at kernel/qapplication_x11.cpp:4368
#66 0x00007f18e9da6ec9 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff834b2930) at kernel/qapplication_x11.cpp:3501
#67 0x00007f18e9dd0cca in x11EventSourceDispatch (s=0x1386d10, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#68 0x00007f18e640e03b in g_main_dispatch (context=0x1385620) at gmain.c:1960
#69 IA__g_main_context_dispatch (context=0x1385620) at gmain.c:2513
#70 0x00007f18e6411940 in g_main_context_iterate (context=0x1385620, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#71 0x00007f18e6411a70 in IA__g_main_context_iteration (context=0x1385620, may_block=1) at gmain.c:2654
#72 0x00007f18eaea4033 in QEventDispatcherGlib::processEvents (this=0x134ca40, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#73 0x00007f18e9dd088e in QGuiEventDispatcherGlib::processEvents (this=0x79a7, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#74 0x00007f18eae765d2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#75 0x00007f18eae769ad in QEventLoop::exec (this=0x7fff834b2c60, flags=) at kernel/qeventloop.cpp:201
#76 0x00007f18eae78ed3 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#77 0x000000000050e94b in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/app-cdr/k3b-9999-r1/work/k3b-9999/src/main.cpp:151

Reported using DrKonqi
Comment 1 Michał Małek 2010-02-21 19:17:42 UTC
SVN commit 1093921 by mmalek:

* Fixed crash in VCD project
* Fixed ordering issues in VCD Project
* Using QAbstractTableModel as a base for VcdProjectModel to avoid potential bugs in the model
* Removed redundatn VcdListView & VcdListViewItem classes, they're not needed anymore
BUG: 227855

 M  +1 -0      ChangeLog  
 M  +25 -21    libk3b/projects/videocd/k3bvcddoc.cpp  
 M  +22 -35    libk3b/projects/videocd/k3bvcddoc.h  
 M  +0 -2      src/CMakeLists.txt  
 D             src/projects/k3bvcdlistview.cpp  
 D             src/projects/k3bvcdlistview.h  
 D             src/projects/k3bvcdlistviewitem.cpp  
 D             src/projects/k3bvcdlistviewitem.h  
 M  +83 -98    src/projects/k3bvcdprojectmodel.cpp  
 M  +34 -47    src/projects/k3bvcdprojectmodel.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1093921