Bug 149416 - printing PDF crashes konqueror
Summary: printing PDF crashes konqueror
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: OpenSUSE Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-31 13:05 UTC by S. Burmeister
Modified: 2007-09-02 17:40 UTC (History)
0 users

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 S. Burmeister 2007-08-31 13:05:25 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    SuSE RPMs
OS:                Linux

Download the file to your harddisk:

http://www.ruhr-uni-bochum.de/thermo/Lehre/pdf_files/Klausuren_mit_Losungen_Bochum.pdf

Use konqueror to browse to the file and open it, i.e. kpdf displaying it within konqueror. Click on print and type "1" in the selection text-field, i.e. print only page one.

If I do the above konqueror crashes.

Überprüfung der Systemkonfiguration beim Start deaktiviert.

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1231504896 (LWP 10395)]
[KCrash handler]
#9  0xb55c1593 in GfxCIDFont::getCodeToGIDMap ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#10 0xb55eb4ff in PSOutputDev::setupExternalCIDTrueTypeFont ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#11 0xb56171ce in PSOutputDev::setupFont ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#12 0xb5617464 in PSOutputDev::setupFonts ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#13 0xb561755a in PSOutputDev::setupResources ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#14 0xb56179c0 in PSOutputDev::writeDocSetup ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#15 0xb5617f00 in PSOutputDev::init () from /opt/kde3/lib/kde3/libkpdfpart.so
#16 0xb56181c9 in PSOutputDev::PSOutputDev ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#17 0xb5678ddb in PDFGenerator::print () from /opt/kde3/lib/kde3/libkpdfpart.so
#18 0xb5667311 in KPDFDocument::print () from /opt/kde3/lib/kde3/libkpdfpart.so
#19 0xb5586144 in KPDF::Part::doPrint () from /opt/kde3/lib/kde3/libkpdfpart.so
#20 0xb5586540 in KPDF::Part::slotPrint ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#21 0xb5586570 in KPDF::BrowserExtension::print ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#22 0xb55865b2 in KPDF::BrowserExtension::qt_invoke ()
   from /opt/kde3/lib/kde3/libkpdfpart.so
#23 0xb74e8f1d in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0xb74e9b5d in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0xb6d50ef9 in KAction::activated () from /opt/kde3/lib/libkdeui.so.4
#26 0xb6d8aa22 in KAction::slotActivated () from /opt/kde3/lib/libkdeui.so.4
#27 0xb6d8a9bc in KAction::slotButtonClicked ()
   from /opt/kde3/lib/libkdeui.so.4
#28 0xb6e846b6 in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#29 0xb74e8f1d in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0xb6d8cd40 in KToolBarButton::buttonClicked ()
   from /opt/kde3/lib/libkdeui.so.4
#31 0xb6d8d046 in KToolBarButton::mouseReleaseEvent ()
   from /opt/kde3/lib/libkdeui.so.4
#32 0xb7521880 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0xb6e013e1 in KToolBarButton::event () from /opt/kde3/lib/libkdeui.so.4
#34 0xb74899c7 in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0xb748a909 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0xb7b0c8d2 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#37 0xb7428f57 in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0xb74280ff in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#39 0xb743898a in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#40 0xb74a07f0 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#41 0xb74a0686 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#42 0xb748957f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#43 0xb6705665 in kdemain () from /opt/kde3/lib/libkdeinit_konqueror.so
#44 0xb7261524 in kdeinitmain () from /opt/kde3/lib/kde3/konqueror.so
#45 0x0804e2ff in launch ()
#46 0x0804eb82 in handle_launcher_request ()
#47 0x0804ef2f in handle_requests ()
#48 0x08050123 in main ()
Comment 1 Pino Toscano 2007-08-31 13:18:21 UTC
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47574283305872 (LWP 10197)]
[KCrash handler]
#5  0x00002b44c0e118f8 in GfxCIDFont::getCodeToGIDMap (this=0xc07240, 
    ff=0xc09d90, mapsizep=0x7ffff0ce87fc)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/GfxFont.cc:1533
#6  0x00002b44c0e3b683 in PSOutputDev::setupExternalCIDTrueTypeFont (
    this=0xc07ca0, font=0xc07240, fileName=0xc069e0, faceIndex=0)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:2250
#7  0x00002b44c0e641f6 in PSOutputDev::setupFont (this=0xc07ca0, 
    font=0xc07240, parentResDict=0x0)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:1751
#8  0x00002b44c0e64418 in PSOutputDev::setupFonts (this=0xc07ca0, 
    resDict=0x998c70)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:1536
#9  0x00002b44c0e644f4 in PSOutputDev::setupResources (this=0x0, 
    resDict=0x3c0)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:1421
#10 0x00002b44c0e648b0 in PSOutputDev::writeDocSetup (this=0xc07ca0, 
    catalog=0x962ea0, firstPage=<value optimized out>, lastPage=65)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:1340
#11 0x00002b44c0e64db7 in PSOutputDev::init (this=0xc07ca0, 
    outputFuncA=<value optimized out>, outputStreamA=0xc07f10, 
    fileTypeA=psFile, pstitle=0xaa3a30 "Aufgabe1", 
    xrefA=<value optimized out>, catalog=0x962ea0, firstPage=1, lastPage=65, 
    modeA=psModePS, imgLLXA=0, imgLLYA=0, imgURXA=595, imgURYA=842, 
    manualCtrlA=0)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:1117
#12 0x00002b44c0e6507d in PSOutputDev (this=0xc07ca0, 
    fileName=0xaa7fb0 "/tmp/kde-pino/kpdfdlxoUa.ps", 
    pstitle=0xaa3a30 "Aufgabe1", xrefA=0x9253c0, catalog=0x962ea0, 
    firstPage=1, lastPage=65, modeA=psModePS, imgLLXA=0, imgLLYA=0, 
    imgURXA=595, imgURYA=842, forceRasterizeA=0, manualCtrlA=0)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/xpdf/xpdf/PSOutputDev.cc:1005
#13 0x00002b44c0eb99df in PDFGenerator::print (this=0x9df110, 
    printer=@0x7ffff0ce9030)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/core/generator_pdf/generator_pdf.cpp:469
#14 0x00002b44c0ea9478 in KPDFDocument::print (this=<value optimized out>, 
    printer=@0x3c0)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/core/document.cpp:1097
#15 0x00002b44c0ddd1df in KPDF::Part::doPrint (this=0x70b470, 
    printer=@0x7ffff0ce9030)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/part.cpp:1035
#16 0x00002b44c0dde916 in KPDF::Part::slotPrintPreview (this=0x70b470)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/part.cpp:892
#17 0x00002b44c0ddf5c0 in KPDF::Part::qt_invoke (this=0x70b470, _id=18, 
    _o=0x7ffff0ce91f0) at ./part.moc:202
#18 0x00002b44bc1d84ee in QObject::activate_signal (this=0x829c70, 
    clist=0x82a030, o=0x7ffff0ce91f0) at kernel/qobject.cpp:2356
#19 0x00002b44bc1d9088 in QObject::activate_signal (this=0x829c70, signal=2)
    at kernel/qobject.cpp:2325
#20 0x00002b44bb5e8bfd in KAction::slotPopupActivated (this=0x829c70)
    at /build/buildd/kdelibs-3.5.7.dfsg.1/./kdeui/kaction.cpp:1137
#21 0x00002b44bb5e8ea3 in KAction::qt_invoke (this=0x829c70, _id=16, 
    _o=0x7ffff0ce9350) at ./kaction.moc:219
#22 0x00002b44bc1d84ee in QObject::activate_signal (this=0x886720, 
    clist=0x87aee0, o=0x7ffff0ce9350) at kernel/qobject.cpp:2356
#23 0x00002b44bc546591 in QSignal::signal (this=0x886720, t0=@0x886770)
    at .moc/debug-shared-mt/moc_qsignal.cpp:100
#24 0x00002b44bc1f7697 in QSignal::activate (this=0x886720)
    at kernel/qsignal.cpp:212
#25 0x00002b44bc2f7244 in QPopupMenu::mouseReleaseEvent (this=0x867b70, 
    e=0x7ffff0ce9a80) at widgets/qpopupmenu.cpp:1697
#26 0x00002b44bc20cb9c in QWidget::event (this=0x867b70, e=0x7ffff0ce9a80)
    at kernel/qwidget.cpp:4702
#27 0x00002b44bc173842 in QApplication::internalNotify (this=0x7ffff0cea370, 
    receiver=0x867b70, e=0x7ffff0ce9a80) at kernel/qapplication.cpp:2635
#28 0x00002b44bc1759c5 in QApplication::notify (this=0x7ffff0cea370, 
    receiver=0x867b70, e=0x7ffff0ce9a80) at kernel/qapplication.cpp:2421
#29 0x00002b44bbad43f8 in KApplication::notify (this=0x7ffff0cea370, 
    receiver=0x867b70, event=0x7ffff0ce9a80)
    at /build/buildd/kdelibs-3.5.7.dfsg.1/./kdecore/kapplication.cpp:550
#30 0x00002b44bc106864 in QApplication::sendSpontaneousEvent (
    receiver=0x867b70, event=0x7ffff0ce9a80) at kernel/qapplication.h:523
#31 0x00002b44bc105204 in QETWidget::translateMouseEvent (this=0x867b70, 
    event=0x7ffff0cea020) at kernel/qapplication_x11.cpp:4243
#32 0x00002b44bc1037e7 in QApplication::x11ProcessEvent (this=0x7ffff0cea370, 
    event=0x7ffff0cea020) at kernel/qapplication_x11.cpp:3478
#33 0x00002b44bc11993f in QEventLoop::processEvents (this=0x650550, flags=4)
    at kernel/qeventloop_x11.cpp:192
#34 0x00002b44bc18ce27 in QEventLoop::enterLoop (this=0x650550)
    at kernel/qeventloop.cpp:198
#35 0x00002b44bc18cc2f in QEventLoop::exec (this=0x650550)
    at kernel/qeventloop.cpp:145
#36 0x00002b44bc175324 in QApplication::exec (this=0x7ffff0cea370)
    at kernel/qapplication.cpp:2758
#37 0x000000000040a153 in main (argc=7316768, argv=<value optimized out>)
    at /build/buildd/kdegraphics-3.5.7/./kpdf/shell/main.cpp:79
#38 0x00002b44ba9ecb44 in __libc_start_main () from /lib/libc.so.6
#39 0x0000000000408f59 in _start ()
Comment 2 Albert Astals Cid 2007-09-02 17:40:25 UTC
SVN commit 707656 by aacid:


Don't crash when we don't have a ctu. Fix imported from poppler
BUGS: 149416



 M  +1 -0      GfxFont.cc  


--- branches/KDE/3.5/kdegraphics/kpdf/xpdf/xpdf/GfxFont.cc #707655:707656
@@ -1514,6 +1514,7 @@
   int cidlen;
 
   *mapsizep = 0;
+  if (!ctu) return NULL;
 
   /* we use only unicode cmap */
   cmap = -1;