Bug 278469 - Calligra applications crash on print to PDF or Export to PDF
Summary: Calligra applications crash on print to PDF or Export to PDF
Status: RESOLVED FIXED
Alias: None
Product: calligrasheets
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Halla Rempt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-25 12:33 UTC by Leo Franchi
Modified: 2011-07-27 08:26 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 Leo Franchi 2011-07-25 12:33:37 UTC
Application: calligratables (2.4 Alpha 3)
KDE Platform Version: 4.7.40 (4.7.40 (KDE 4.8 >= 200110623) (Compiled from sources)
Qt Version: 4.8.0
Operating System: Linux 2.6.39-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Tried to export my spreadsheet as a PDF. Tried both File->Export to PDF and Print, Save To File (PDF).

Crashes immediately after doing this. Output a 0-size file with the name I had chosen, no PDF output.

The crash can be reproduced every time.

-- Backtrace:
Application: Tables (calligratables), signal: Aborted
[Current thread is 1 (Thread 0x7fd4d241b7a0 (LWP 12648))]

Thread 3 (Thread 0x7fd4ac28e700 (LWP 12655)):
#0  0x00007fd4cc0b4ac4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fd4cc36d14b in QWaitConditionPrivate::wait (this=0x2a53780, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:86
#2  0x00007fd4cc36cef5 in QWaitCondition::wait (this=0x2b01488, mutex=0x2b01480, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fd4cd8dcddf in QFileInfoGatherer::run (this=0x2b01470) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007fd4cc36bbac in QThreadPrivate::start (arg=0x2b01470) at thread/qthread_unix.cpp:298
#5  0x00007fd4c973b9e3 in ?? () from /usr/lib/libGL.so.1
#6  0x00007fd4cc0b0d60 in start_thread () from /lib/libpthread.so.0
#7  0x00007fd4cb3dbe2d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd4aca8f700 (LWP 12656)):
#0  0x00007fd4cb3d3b83 in poll () from /lib/libc.so.6
#1  0x00007fd4c58d67d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fd4c58d6d09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fd4cc4d8292 in QEventDispatcherGlib::processEvents (this=0x2892930, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fd4cc499e54 in QEventLoop::processEvents (this=0x7fd4aca8ec80, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fd4cc499fde in QEventLoop::exec (this=0x7fd4aca8ec80, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fd4cc369337 in QThread::exec (this=0x2b16cd0) at thread/qthread.cpp:495
#7  0x00007fd4cc4756eb in QInotifyFileSystemWatcherEngine::run (this=0x2b16cd0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd4cc36bbac in QThreadPrivate::start (arg=0x2b16cd0) at thread/qthread_unix.cpp:298
#9  0x00007fd4c973b9e3 in ?? () from /usr/lib/libGL.so.1
#10 0x00007fd4cc0b0d60 in start_thread () from /lib/libpthread.so.0
#11 0x00007fd4cb3dbe2d in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd4d241b7a0 (LWP 12648)):
[KCrash Handler]
#6  0x00007fd4cb33c795 in raise () from /lib/libc.so.6
#7  0x00007fd4cb33dc0b in abort () from /lib/libc.so.6
#8  0x00007fd4cc35ec03 in qt_message_output (msgType=QtFatalMsg, buf=0x2d8cd48 "ASSERT failure in QList<T>::operator[]: \"index out of range\", file /home/leo/qt/4.8/include/QtCore/qlist.h, line 477") at global/qglobal.cpp:2306
#9  0x00007fd4cc35ed76 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7fd4cc51f310 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7fffb080d328) at global/qglobal.cpp:2352
#10 0x00007fd4cc35f506 in qFatal (msg=0x7fd4cc51f310 "ASSERT failure in %s: \"%s\", file %s, line %d") at global/qglobal.cpp:2535
#11 0x00007fd4cc35e807 in qt_assert_x (where=0x7fd4d1dfc760 "QList<T>::operator[]", what=0x7fd4d1dfc740 "index out of range", file=0x7fd4d1dfc718 "/home/leo/qt/4.8/include/QtCore/qlist.h", line=477) at global/qglobal.cpp:2058
#12 0x00007fd4d1d56e5b in QList<int>::operator[] (this=0x1f34ea8, i=2) at /home/leo/qt/4.8/include/QtCore/qlist.h:477
#13 0x00007fd4d1d55393 in KoPrintingDialog::startPrinting (this=0x2b1ddf0, removePolicy=KoPrintJob::DeleteWhenDone) at /home/leo/kde/src/calligra/libs/main/KoPrintingDialog.cpp:335
#14 0x00007fd4bbd55e08 in Calligra::Tables::PrintJob::startPrinting (this=0x2b1ddf0, removePolicy=KoPrintJob::DeleteWhenDone) at /home/leo/kde/src/calligra/tables/part/PrintJob.cpp:324
#15 0x00007fd4d1d4b9d4 in KoMainWindow::slotFilePrint (this=0x1ee3b10) at /home/leo/kde/src/calligra/libs/main/KoMainWindow.cpp:1311
#16 0x00007fd4d1d502a3 in KoMainWindow::qt_static_metacall (_o=0x1ee3b10, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fffb080d8f0) at /home/leo/kde/build/calligra/libs/main/KoMainWindow.moc:123
#17 0x00007fd4cc4ba6b2 in QMetaObject::activate (sender=0x1f25a80, m=0x7fd4cdfd3aa0, local_signal_index=1, argv=0x7fffb080d8f0) at kernel/qobject.cpp:3574
#18 0x00007fd4cd264178 in QAction::triggered (this=0x1f25a80, _t1=false) at .moc/debug-shared/moc_qaction.cpp:277
#19 0x00007fd4cd263438 in QAction::activate (this=0x1f25a80, event=QAction::Trigger) at kernel/qaction.cpp:1257
#20 0x00007fd4cd2631aa in QAction::event (this=0x1f25a80, e=0x7fffb080e170) at kernel/qaction.cpp:1183
#21 0x00007fd4ce1a6402 in KAction::event (this=0x1f25a80, event=0x7fffb080e170) at /home/leo/kde/src/kdelibs/kdeui/actions/kaction.cpp:131
#22 0x00007fd4cd273996 in QApplicationPrivate::notify_helper (this=0x1ae3110, receiver=0x1f25a80, e=0x7fffb080e170) at kernel/qapplication.cpp:4495
#23 0x00007fd4cd270fd2 in QApplication::notify (this=0x7fffb080fa80, receiver=0x1f25a80, e=0x7fffb080e170) at kernel/qapplication.cpp:3877
#24 0x00007fd4ce2b11a3 in KApplication::notify (this=0x7fffb080fa80, receiver=0x1f25a80, event=0x7fffb080e170) at /home/leo/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#25 0x00007fd4cc49c5ba in QCoreApplication::notifyInternal (this=0x7fffb080fa80, receiver=0x1f25a80, event=0x7fffb080e170) at kernel/qcoreapplication.cpp:831
#26 0x00007fd4cd264731 in QCoreApplication::sendEvent (receiver=0x1f25a80, event=0x7fffb080e170) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 0x00007fd4cd2b3369 in QShortcutMap::dispatchEvent (this=0x1ae3230, e=0x7fffb080e9a0) at kernel/qshortcutmap.cpp:879
#28 0x00007fd4cd2b1b23 in QShortcutMap::tryShortcutEvent (this=0x1ae3230, o=0x2742500, e=0x7fffb080e9a0) at kernel/qshortcutmap.cpp:364
#29 0x00007fd4cd271270 in QApplication::notify (this=0x7fffb080fa80, receiver=0x2742500, e=0x7fffb080e9a0) at kernel/qapplication.cpp:3919
#30 0x00007fd4ce2b11a3 in KApplication::notify (this=0x7fffb080fa80, receiver=0x2742500, event=0x7fffb080e9a0) at /home/leo/kde/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#31 0x00007fd4cc49c5ba in QCoreApplication::notifyInternal (this=0x7fffb080fa80, receiver=0x2742500, event=0x7fffb080e9a0) at kernel/qcoreapplication.cpp:831
#32 0x00007fd4cd2761b3 in QCoreApplication::sendSpontaneousEvent (receiver=0x2742500, event=0x7fffb080e9a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#33 0x00007fd4cd273ce5 in qt_sendSpontaneousEvent (receiver=0x2742500, event=0x7fffb080e9a0) at kernel/qapplication.cpp:5489
#34 0x00007fd4cd34814e in QKeyMapper::sendKeyEvent (keyWidget=0x2742500, grab=false, type=QEvent::KeyPress, code=80, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=33, nativeVirtualKey=112, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1866
#35 0x00007fd4cd347e5c in QKeyMapperPrivate::translateKeyEvent (this=0x1b231b0, keyWidget=0x2742500, event=0x7fffb080f690, grab=false) at kernel/qkeymapper_x11.cpp:1836
#36 0x00007fd4cd31005d in QApplication::x11ProcessEvent (this=0x7fffb080fa80, event=0x7fffb080f690) at kernel/qapplication_x11.cpp:3492
#37 0x00007fd4cd34a210 in x11EventSourceDispatch (s=0x1ae6af0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007fd4c58d629d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#39 0x00007fd4c58d6a78 in ?? () from /usr/lib/libglib-2.0.so.0
#40 0x00007fd4c58d6d09 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#41 0x00007fd4cc4d826f in QEventDispatcherGlib::processEvents (this=0x1a07100, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#42 0x00007fd4cd34a5b0 in QGuiEventDispatcherGlib::processEvents (this=0x1a07100, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007fd4cc499e54 in QEventLoop::processEvents (this=0x7fffb080fa20, flags=...) at kernel/qeventloop.cpp:149
#44 0x00007fd4cc499fde in QEventLoop::exec (this=0x7fffb080fa20, flags=...) at kernel/qeventloop.cpp:204
#45 0x00007fd4cc49cc3a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1103
#46 0x00007fd4cd270bbc in QApplication::exec () at kernel/qapplication.cpp:3756
#47 0x00007fd4d205a7c6 in kdemain (argc=2, argv=0x7fffb080fc78) at /home/leo/kde/src/calligra/tables/part/Main.cpp:43
#48 0x0000000000400956 in main (argc=2, argv=0x7fffb080fc78) at /home/leo/kde/build/calligra/tables/calligratables_dummy.cpp:3

Reported using DrKonqi
Comment 1 Halla Rempt 2011-07-25 15:10:13 UTC
I'll take a look, I might have caused this problem.
Comment 2 Halla Rempt 2011-07-27 08:26:50 UTC
Git commit 90b4f59129981cf9b1d0f1ca552d60a234acf3e8 by Boudewijn Rempt.
Committed on 27/07/2011 at 10:26.
Pushed by rempt into branch 'master'.

Fix crash when printing to PDF

BUG:278469

M  +18   -23   libs/main/KoPrintingDialog.cpp

http://commits.kde.org/calligra/90b4f59129981cf9b1d0f1ca552d60a234acf3e8