[Okular-devel] [Bug 264667] okular crashed while reloading a pdf file

Piotr Mitas yabolus at gmail.com
Fri Jan 28 19:50:38 CET 2011


https://bugs.kde.org/show_bug.cgi?id=264667





--- Comment #3 from Piotr Mitas <yabolus gmail com>  2011-01-28 19:50:32 ---
==9636== Memcheck, a memory error detector
==9636== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==9636== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==9636== Command: okular latex.pdf
==9636== 
==9636== Invalid read of size 8
==9636==    at 0x5D653F8: qt_blend_argb32_on_argb32_ssse3(unsigned char*, int,
unsigned char const*, int, int, int, int) (qdrawhelper_ssse3.cpp:179)
==9636==    by 0x5F29D26: QRasterPaintEngine::drawImage(QPointF const&, QImage
const&) (qpaintengine_raster.cpp:2500)
==9636==    by 0x5F3803D: QRasterPaintEngine::drawPixmap(QPointF const&,
QPixmap const&) (qpaintengine_raster.cpp:2375)
==9636==    by 0x5EB7A6E: QPainter::drawPixmap(QPointF const&, QPixmap const&)
(qpainter.cpp:5263)
==9636==    by 0xEDEEEF7:
Oxygen::Style::standardIconImplementation(QStyle::StandardPixmap, QStyleOption
const*, QWidget const*) const (qpainter.h:852)
==9636==    by 0xEDE10D3: Oxygen::Style::qt_metacall(QMetaObject::Call, int,
void**) (oxygenstyle.moc:92)
==9636==    by 0x6E62104: QMetaMethod::invoke(QObject*, Qt::ConnectionType,
QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument) const
(qmetaobject.cpp:1578)
==9636==    by 0x6E62D36: QMetaObject::invokeMethod(QObject*, char const*,
Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)
(qmetaobject.cpp:1151)
==9636==    by 0x6059BA0: QStyle::standardIcon(QStyle::StandardPixmap,
QStyleOption const*, QWidget const*) const (qstyle.cpp:2279)
==9636==    by 0x13FE11A3: PageViewTopMessage::PageViewTopMessage(QWidget*)
(pageviewutils.cpp:408)
==9636==    by 0x13F909A9: Okular::Part::Part(QWidget*, QObject*,
QList<QVariant> const&) (part.cpp:354)
==9636==    by 0x13F9854E: QObject*
KPluginFactory::createPartInstance<Okular::Part>(QWidget*, QObject*,
QList<QVariant> const&) (kpluginfactory.h:479)
==9636==  Address 0x17ce7b90 is 896 bytes inside a block of size 900 alloc'd
==9636==    at 0x4C2640E: malloc (vg_replace_malloc.c:236)
==9636==    by 0x5E28B84: QImageData::create(QSize const&, QImage::Format, int)
(qimage.cpp:243)
==9636==    by 0x5E29D6A: QImage::QImage(int, int, QImage::Format)
(qimage.cpp:843)
==9636==    by 0x5E51523: QRasterPixmapData::fill(QColor const&)
(qpixmap_raster.cpp:209)
==9636==    by 0xEE04E35: Oxygen::StyleHelper::windecoButton(QColor const&,
bool, int) (oxygenstylehelper.cpp:161)
==9636==    by 0xEDEEEB3:
Oxygen::Style::standardIconImplementation(QStyle::StandardPixmap, QStyleOption
const*, QWidget const*) const (oxygenstyle.cpp:8079)
==9636==    by 0xEDE10D3: Oxygen::Style::qt_metacall(QMetaObject::Call, int,
void**) (oxygenstyle.moc:92)
==9636==    by 0x6E62104: QMetaMethod::invoke(QObject*, Qt::ConnectionType,
QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument) const
(qmetaobject.cpp:1578)
==9636==    by 0x6E62D36: QMetaObject::invokeMethod(QObject*, char const*,
Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument,
QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)
(qmetaobject.cpp:1151)
==9636==    by 0x6059BA0: QStyle::standardIcon(QStyle::StandardPixmap,
QStyleOption const*, QWidget const*) const (qstyle.cpp:2279)
==9636==    by 0x13FE11A3: PageViewTopMessage::PageViewTopMessage(QWidget*)
(pageviewutils.cpp:408)
==9636==    by 0x13F909A9: Okular::Part::Part(QWidget*, QObject*,
QList<QVariant> const&) (part.cpp:354)
==9636== 
okular(9636)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(9636)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(9636)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(9636)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:        
okular(9636)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:        
okular(9636)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory!    
==9636== Conditional jump or move depends on uninitialised value(s)             
==9636==    at 0x13FD14AF: PageView::resizeEvent(QResizeEvent*)
(pageview.cpp:1255)                                                             
==9636==    by 0x5DBECF4: QWidget::event(QEvent*) (qwidget.cpp:8354)            
==9636==    by 0x6148B55: QFrame::event(QEvent*) (qframe.cpp:557)               
==9636==    by 0x13FD05DC: PageView::viewportEvent(QEvent*) (pageview.cpp:2315) 
==9636==    by 0x6E596D5:
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
(qcoreapplication.cpp:847)                                                      
==9636==    by 0x5D6D700: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:4441)                                                         
==9636==    by 0x5D72219: QApplication::notify(QObject*, QEvent*)
(qapplication.cpp:4324)                                                         
==9636==    by 0x5781FF5: KApplication::notify(QObject*, QEvent*)
(kapplication.cpp:311)                                                          
==9636==    by 0x6E5955A: QCoreApplication::notifyInternal(QObject*, QEvent*)
(qcoreapplication.cpp:732)                                                      
==9636==    by 0x5E08186: QWidgetPrivate::setGeometry_sys(int, int, int, int,
bool) (qcoreapplication.h:215)                                                  
==9636==    by 0x5DBAC8A: QWidget::setGeometry(QRect const&) (qwidget.cpp:6802) 
==9636==    by 0x61C8BC8: QAbstractScrollAreaPrivate::layoutChildren()
(qabstractscrollarea.cpp:480)                                                   
==9636==                                                                        
==9636== Invalid read of size 8                                                 
==9636==    at 0x5D653F8: qt_blend_argb32_on_argb32_ssse3(unsigned char*, int,
unsigned char const*, int, int, int, int) (qdrawhelper_ssse3.cpp:179)           
==9636==    by 0x5F2B2B7: QRasterPaintEngine::drawImage(QRectF const&, QImage
const&, QRectF const&, QFlags<Qt::ImageConversionFlag>)
(qpaintengine_raster.cpp:2761)                                                  
==9636==    by 0x5EB8CA2: QPainter::drawImage(QRectF const&, QImage const&,
QRectF const&, QFlags<Qt::ImageConversionFlag>) (qpainter.cpp:5665)             
==9636==    by 0x13FC140F: PagePainter::paintCroppedPageOnPainter(QPainter*,
Okular::Page const*, int, int, int, int, QRect const&, Okular::NormalizedRect
const&) (qpainter.h:927)                                                        
==9636==    by 0x13FCF23E: PageView::drawDocumentOnPainter(QRect const&,
QPainter*) (pageview.cpp:2469)                                                  
==9636==    by 0x13FCFA53: PageView::paintEvent(QPaintEvent*)
(pageview.cpp:1226)                                                             
==9636==    by 0x5DBECC0: QWidget::event(QEvent*) (qwidget.cpp:8346)            
==9636==    by 0x6148B55: QFrame::event(QEvent*) (qframe.cpp:557)               
==9636==    by 0x13FD05DC: PageView::viewportEvent(QEvent*) (pageview.cpp:2315) 
==9636==    by 0x6E596D5:
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
(qcoreapplication.cpp:847)                                                      
==9636==    by 0x5D6D700: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:4441)                                                         
==9636==    by 0x5D72219: QApplication::notify(QObject*, QEvent*)
(qapplication.cpp:4324)                                                         
==9636==  Address 0xe0daa08 is 0 bytes after a block of size 25,896 alloc'd     
==9636==    at 0x4C2640E: malloc (vg_replace_malloc.c:236)
==9636==    by 0x5E28B84: QImageData::create(QSize const&, QImage::Format, int)
(qimage.cpp:243)
==9636==    by 0x5E29D6A: QImage::QImage(int, int, QImage::Format)
(qimage.cpp:843)
==9636==    by 0x13FC0841: PagePainter::scalePixmapOnImage(QImage&, QPixmap
const*, int, int, QRect const&, QImage::Format) (pagepainter.cpp:737)
==9636==    by 0x13FC133B: PagePainter::paintCroppedPageOnPainter(QPainter*,
Okular::Page const*, int, int, int, int, QRect const&, Okular::NormalizedRect
const&) (pagepainter.cpp:229)
==9636==    by 0x13FCF23E: PageView::drawDocumentOnPainter(QRect const&,
QPainter*) (pageview.cpp:2469)
==9636==    by 0x13FCFA53: PageView::paintEvent(QPaintEvent*)
(pageview.cpp:1226)
==9636==    by 0x5DBECC0: QWidget::event(QEvent*) (qwidget.cpp:8346)
==9636==    by 0x6148B55: QFrame::event(QEvent*) (qframe.cpp:557)
==9636==    by 0x13FD05DC: PageView::viewportEvent(QEvent*) (pageview.cpp:2315)
==9636==    by 0x6E596D5:
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
(qcoreapplication.cpp:847)
==9636==    by 0x5D6D700: QApplicationPrivate::notify_helper(QObject*, QEvent*)
(qapplication.cpp:4441)
==9636== 
okular(9636)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory! 
okular(9636)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory! 
==9636== Invalid read of size 4
==9636==    at 0x1A290F24: UnicodeMap::mapUnicode(unsigned int, char*, int)
(UnicodeMap.cc:214)
==9636==    by 0x19F5CFF8: Poppler::unicodeToQString(unsigned int*, int)
(poppler-private.cc:91)
==9636==    by 0x19F5DA5B: Poppler::DocumentData::addTocChildren(QDomDocument*,
QDomNode*, GooList*) (poppler-private.cc:237)
==9636==    by 0x19F4A40F: Poppler::Document::toc() const
(poppler-document.cc:429)
==9636==    by 0x19CC3A5F: PDFGenerator::generateDocumentSynopsis()
(generator_pdf.cpp:592)
==9636==    by 0x13FFA818: TOC::notifySetup(QVector<Okular::Page*> const&, int)
(toc.cpp:75)
==9636==    by 0x142C31DA: Okular::Document::openDocument(QString const&, KUrl
const&, KSharedPtr<KMimeType> const&) (document.cpp:1667)
==9636==    by 0x13F8EAD9: Okular::Part::openFile() (part.cpp:955)
==9636==    by 0x4E5664F: KParts::ReadOnlyPartPrivate::openLocalFile()
(part.cpp:592)
==9636==    by 0x4E56C95: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:556)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==  Address 0x1123c3a8 is 8 bytes inside a block of size 88 free'd
==9636==    at 0x4C2588F: operator delete(void*) (vg_replace_malloc.c:387)
==9636==    by 0x1A26C13E: GlobalParams::~GlobalParams() (GlobalParams.cc:863)
==9636==    by 0x19F4ADE4: Poppler::Document::~Document()
(poppler-private.h:121)
==9636==    by 0x19CC72C4: PDFGenerator::doCloseDocument()
(generator_pdf.cpp:448)
==9636==    by 0x142CA1C9: Okular::Generator::closeDocument()
(generator.cpp:203)
==9636==    by 0x142C0807: Okular::Document::closeDocument()
(document.cpp:1782)
==9636==    by 0x13F8F46B: Okular::Part::closeUrl() (part.cpp:1136)
==9636==    by 0x4E56B90: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:547)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==    by 0x6E6DBA6: QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (qobject.cpp:3272)
==9636==    by 0x6E6D3D8: QObject::event(QEvent*) (qobject.cpp:1175)
==9636== 
==9636== Invalid read of size 8
==9636==    at 0x1A291060: UnicodeMap::mapUnicode(unsigned int, char*, int)
(UnicodeMap.cc:215)
==9636==    by 0x19F5CFF8: Poppler::unicodeToQString(unsigned int*, int)
(poppler-private.cc:91)
==9636==    by 0x19F5DA5B: Poppler::DocumentData::addTocChildren(QDomDocument*,
QDomNode*, GooList*) (poppler-private.cc:237)
==9636==    by 0x19F4A40F: Poppler::Document::toc() const
(poppler-document.cc:429)
==9636==    by 0x19CC3A5F: PDFGenerator::generateDocumentSynopsis()
(generator_pdf.cpp:592)
==9636==    by 0x13FFA818: TOC::notifySetup(QVector<Okular::Page*> const&, int)
(toc.cpp:75)
==9636==    by 0x142C31DA: Okular::Document::openDocument(QString const&, KUrl
const&, KSharedPtr<KMimeType> const&) (document.cpp:1667)
==9636==    by 0x13F8EAD9: Okular::Part::openFile() (part.cpp:955)
==9636==    by 0x4E5664F: KParts::ReadOnlyPartPrivate::openLocalFile()
(part.cpp:592)
==9636==    by 0x4E56C95: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:556)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==  Address 0x1123c3b0 is 16 bytes inside a block of size 88 free'd
==9636==    at 0x4C2588F: operator delete(void*) (vg_replace_malloc.c:387)
==9636==    by 0x1A26C13E: GlobalParams::~GlobalParams() (GlobalParams.cc:863)
==9636==    by 0x19F4ADE4: Poppler::Document::~Document()
(poppler-private.h:121)
==9636==    by 0x19CC72C4: PDFGenerator::doCloseDocument()
(generator_pdf.cpp:448)
==9636==    by 0x142CA1C9: Okular::Generator::closeDocument()
(generator.cpp:203)
==9636==    by 0x142C0807: Okular::Document::closeDocument()
(document.cpp:1782)
==9636==    by 0x13F8F46B: Okular::Part::closeUrl() (part.cpp:1136)
==9636==    by 0x4E56B90: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:547)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==    by 0x6E6DBA6: QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) (qobject.cpp:3272)
==9636==    by 0x6E6D3D8: QObject::event(QEvent*) (qobject.cpp:1175)
==9636== 
okular(9636)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory! 
okular(9636)/kdeui (kdelibs): Attempt to use QAction "" with KXMLGUIFactory! 
==9636== Invalid read of size 8
==9636==    at 0x1A290F31: UnicodeMap::mapUnicode(unsigned int, char*, int)
(UnicodeMap.cc:220)
==9636==    by 0x19F5CFF8: Poppler::unicodeToQString(unsigned int*, int)
(poppler-private.cc:91)
==9636==    by 0x19F5DA5B: Poppler::DocumentData::addTocChildren(QDomDocument*,
QDomNode*, GooList*) (poppler-private.cc:237)
==9636==    by 0x19F4A40F: Poppler::Document::toc() const
(poppler-document.cc:429)
==9636==    by 0x19CC3A5F: PDFGenerator::generateDocumentSynopsis()
(generator_pdf.cpp:592)
==9636==    by 0x13FFA818: TOC::notifySetup(QVector<Okular::Page*> const&, int)
(toc.cpp:75)
==9636==    by 0x142C31DA: Okular::Document::openDocument(QString const&, KUrl
const&, KSharedPtr<KMimeType> const&) (document.cpp:1667)
==9636==    by 0x13F8EAD9: Okular::Part::openFile() (part.cpp:955)
==9636==    by 0x4E5664F: KParts::ReadOnlyPartPrivate::openLocalFile()
(part.cpp:592)
==9636==    by 0x4E56C95: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:556)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==  Address 0x1123c3b0 is not stack'd, malloc'd or (recently) free'd
==9636== 
==9636== Invalid read of size 4
==9636==    at 0x1A290F35: UnicodeMap::mapUnicode(unsigned int, char*, int)
(UnicodeMap.cc:219)
==9636==    by 0x19F5CFF8: Poppler::unicodeToQString(unsigned int*, int)
(poppler-private.cc:91)
==9636==    by 0x19F5DA5B: Poppler::DocumentData::addTocChildren(QDomDocument*,
QDomNode*, GooList*) (poppler-private.cc:237)
==9636==    by 0x19F4A40F: Poppler::Document::toc() const
(poppler-document.cc:429)
==9636==    by 0x19CC3A5F: PDFGenerator::generateDocumentSynopsis()
(generator_pdf.cpp:592)
==9636==    by 0x13FFA818: TOC::notifySetup(QVector<Okular::Page*> const&, int)
(toc.cpp:75)
==9636==    by 0x142C31DA: Okular::Document::openDocument(QString const&, KUrl
const&, KSharedPtr<KMimeType> const&) (document.cpp:1667)
==9636==    by 0x13F8EAD9: Okular::Part::openFile() (part.cpp:955)
==9636==    by 0x4E5664F: KParts::ReadOnlyPartPrivate::openLocalFile()
(part.cpp:592)
==9636==    by 0x4E56C95: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:556)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==  Address 0x1123c3b8 is not stack'd, malloc'd or (recently) free'd
==9636== 
==9636== Invalid read of size 4
==9636==    at 0x1A290F39: UnicodeMap::mapUnicode(unsigned int, char*, int)
(UnicodeMap.cc:220)
==9636==    by 0x19F5CFF8: Poppler::unicodeToQString(unsigned int*, int)
(poppler-private.cc:91)
==9636==    by 0x19F5DA5B: Poppler::DocumentData::addTocChildren(QDomDocument*,
QDomNode*, GooList*) (poppler-private.cc:237)
==9636==    by 0x19F4A40F: Poppler::Document::toc() const
(poppler-document.cc:429)
==9636==    by 0x19CC3A5F: PDFGenerator::generateDocumentSynopsis()
(generator_pdf.cpp:592)
==9636==    by 0x13FFA818: TOC::notifySetup(QVector<Okular::Page*> const&, int)
(toc.cpp:75)
==9636==    by 0x142C31DA: Okular::Document::openDocument(QString const&, KUrl
const&, KSharedPtr<KMimeType> const&) (document.cpp:1667)
==9636==    by 0x13F8EAD9: Okular::Part::openFile() (part.cpp:955)
==9636==    by 0x4E5664F: KParts::ReadOnlyPartPrivate::openLocalFile()
(part.cpp:592)
==9636==    by 0x4E56C95: KParts::ReadOnlyPart::openUrl(KUrl const&)
(part.cpp:556)
==9636==    by 0x13F8AE9D: Okular::Part::slotDoFileDirty() (part.cpp:1244)
==9636==    by 0x13F97104: Okular::Part::qt_metacall(QMetaObject::Call, int,
void**) (part.moc:244)
==9636==  Address 0xffffff00ffffff is not stack'd, malloc'd or (recently)
free'd
==9636== 
KCrash: Application 'okular' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/piotrek/.kde4/socket-localhost/kdeinit4__0

[1]+  Stopped                 valgrind okular latex.pdf
==9636== 
==9636== HEAP SUMMARY:
==9636==     in use at exit: 6,300,741 bytes in 54,257 blocks
==9636==   total heap usage: 373,695 allocs, 319,438 frees, 237,580,422 bytes
allocated
==9636== 
==9636== LEAK SUMMARY:
==9636==    definitely lost: 3,806 bytes in 12 blocks
==9636==    indirectly lost: 13,444 bytes in 422 blocks
==9636==      possibly lost: 898,688 bytes in 12,099 blocks
==9636==    still reachable: 5,384,803 bytes in 41,724 blocks
==9636==         suppressed: 0 bytes in 0 blocks
==9636== Rerun with --leak-check=full to see details of leaked memory
==9636== 
==9636== For counts of detected and suppressed errors, rerun with: -v
==9636== Use --track-origins=yes to see where uninitialised values come from
==9636== ERROR SUMMARY: 46 errors from 8 contexts (suppressed: 9 from 7)

I'll attach the file just in case.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list