Bug 200224 - Opening a pdf file that contains arabic font
Summary: Opening a pdf file that contains arabic font
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: qt (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-14 21:11 UTC by Ryan Voots
Modified: 2009-07-18 20:08 UTC (History)
2 users (show)

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 Ryan Voots 2009-07-14 21:11:26 UTC
Application that crashed: okular
Version of the application: 0.8.80
KDE Version: 4.2.91 (KDE 4.2.91 (KDE 4.3 >= 20090609))
Qt Version: 4.5.1
Operating System: Linux 2.6.29-gentoo-r2 x86_64

What I was doing when the application crashed:
While looking at tables of unicode codepoints/characters and looking at http://unicode.org/charts/PDF/UFB50.pdf okular seems to rather randomly crash, usually when scrolling and going to the next page.

 -- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f43edfda170 in mem2chunk_check () from /lib/libc.so.6
#6  0x00007f43edfdc000 in free_check () from /lib/libc.so.6
#7  0x00007f43eed69f35 in QRasterPaintEngine::fillPath () from /usr/lib64/qt4/libQtGui.so.4
#8  0x00007f43eed73c05 in QRasterPaintEngine::drawPath () from /usr/lib64/qt4/libQtGui.so.4
#9  0x00007f43eed076b7 in QPainterPrivate::draw_helper () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007f43eed0a18e in QPainter::drawRects () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007f43eed0b7b6 in QPainter::drawImage () from /usr/lib64/qt4/libQtGui.so.4
#12 0x00007f43eef0ac8f in QPainter::drawImage () from /usr/lib64/qt4/libQtGui.so.4
#13 0x00007f43eef2aa6b in QCleanlooksStyle::drawComplexControl () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007f43eefdf46f in QScrollBar::paintEvent () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007f43eec516ce in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
#16 0x00007f43eec0491d in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00007f43eec0d1ea in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00007f43f06bb73b in KApplication::notify () from /usr/kde/4.3/lib64/libkdeui.so.5
#19 0x00007f43ef8a7d03 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#20 0x00007f43eec54407 in QWidgetPrivate::drawWidget () from /usr/lib64/qt4/libQtGui.so.4
#21 0x00007f43eedd6424 in QWidgetBackingStore::sync () from /usr/lib64/qt4/libQtGui.so.4
#22 0x00007f43eec46aaa in QWidgetPrivate::syncBackingStore () from /usr/lib64/qt4/libQtGui.so.4
#23 0x00007f43eec515d5 in QWidget::event () from /usr/lib64/qt4/libQtGui.so.4
#24 0x00007f43eefaaa2b in QMainWindow::event () from /usr/lib64/qt4/libQtGui.so.4
#25 0x00007f43f07c5e18 in KXmlGuiWindow::event () from /usr/kde/4.3/lib64/libkdeui.so.5
#26 0x00007f43eec0491d in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#27 0x00007f43eec0d1ea in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#28 0x00007f43f06bb73b in KApplication::notify () from /usr/kde/4.3/lib64/libkdeui.so.5
#29 0x00007f43ef8a7d03 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#30 0x00007f43ef8a8606 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib64/qt4/libQtCore.so.4
#31 0x00007f43ef8ccf93 in postEventSourceDispatch () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f43eb5c48e1 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007f43eb5c7eb8 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#34 0x00007f43eb5c807c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007f43ef8ccc3f in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#36 0x00007f43eec89ddf in QGuiEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtGui.so.4
#37 0x00007f43ef8a6702 in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#38 0x00007f43ef8a6895 in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#39 0x00007f43ef8a8894 in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#40 0x00000000004086bb in main ()

Reported using DrKonqi
Comment 1 Dario Andres 2009-07-14 22:34:31 UTC
Can you reproduce the crash at will ?
Can you reproduce the crash if you launch okular as "okular -graphicssystem native" on Konsole ?
Thanks
Comment 2 Ryan Voots 2009-07-15 04:38:36 UTC
It does happen at will with this pdf file.
It does still happen with '-graphicssystem native' also.
The backtrace looks the same when it crashes with -graphicssystem native.
Comment 3 Dario Andres 2009-07-15 15:27:29 UTC
Weird, it should not look ~the same~
Do you have Qt4.5.2 available to install ?
Thanks
Comment 4 Radu Benea 2009-07-17 12:01:08 UTC
works without any crashes here Okular
Version 0.8.90
Using KDE 4.2.96 (KDE 4.2.96 (KDE 4.3 RC2))

I downloaded the file and completely scrolled up and down 3 times both normally and opened with okular -graphicssystem native UFB50.pdf
Comment 5 Christoph Feck 2009-07-17 17:54:25 UTC
Note that the original poster uses Cleanlooks style, to reproduce, you should try with "-style cleanlooks" too.
Comment 6 Radu Benea 2009-07-17 18:00:32 UTC
just tried with cleanlooks, still works, I even tried zooming in and out and switching the continuous mode on and off, I have not been able to crash okular
Comment 7 Dario Andres 2009-07-18 15:51:03 UTC
Trying here using:

Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76
        Date:   Fri Jun 26 13:45:37 2009 +0200)
KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090706))
kdelibs svn rev. 997539 / kdebase svn rev. 997539
kdegraphics svn rev. 998742
poppler 0.10.7
on ArchLinux i686 - Kernel 2.6.30.1

Scrolling the testcase PDF document:
- Using Skulpture: it doesn't crash
- Using Cleanlooks: it doesn't crash neither.

I even tried with Cleanlooks+ forced Raster engine+ different Okular options (different zoom levels) and it didn't crashed.

Do you use any other non-default option at Okular ?

It could be a heisenbug, or it could be fixed on Qt4.5.2+

Thanks
Comment 8 Ryan Voots 2009-07-18 19:40:15 UTC
On Saturday 18 July 2009 09:51:05 Dario Andres wrote:
> --- Comment #7 from Dario Andres <andresbajotierra gmail com>  2009-07-18
> 15:51:03 --- Trying here using:
>
> Qt: 4.5.2 (KDE-Qt git commit 46a247a2c9a8c0c4456a02f6a0922d859d88fe76
>         Date:   Fri Jun 26 13:45:37 2009 +0200)
> KDE: 4.3.60 (KDE 4.3.60 (KDE 4.4 >= 20090706))
> kdelibs svn rev. 997539 / kdebase svn rev. 997539
> kdegraphics svn rev. 998742
> poppler 0.10.7
> on ArchLinux i686 - Kernel 2.6.30.1
>
> Scrolling the testcase PDF document:
> - Using Skulpture: it doesn't crash
> - Using Cleanlooks: it doesn't crash neither.
>
> I even tried with Cleanlooks+ forced Raster engine+ different Okular
> options (different zoom levels) and it didn't crashed.
>
> Do you use any other non-default option at Okular ?
>
> It could be a heisenbug, or it could be fixed on Qt4.5.2+
>
> Thanks

well over the week i finally had time to get 4.2.96 built and installed and the 
problem seems to have disappeared along with some of the others i had and 
reported, i have not been able to reproduce this all day.  i'm not sure if it 
was some strange cruft in my config (i ended up wiping it out slightly on 
purpose, slightly on accident) but i no longer get crashes with that pdf 
anymore.
Comment 9 Dario Andres 2009-07-18 20:08:44 UTC
Ok, marking as WORKSFORME. Reopen if you experience the crash again. Thanks