Bug 209539 - Okular crashes during fast scroll [ft_glyphslot_free_bitmap, FT_Load_Glyph, SplashFTFont::makeGlyph]
Summary: Okular crashes during fast scroll [ft_glyphslot_free_bitmap, FT_Load_Glyph, S...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-05 17:33 UTC by Tomas Vavra
Modified: 2012-08-08 21:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Okular crash - console (88.41 KB, text/plain)
2009-11-13 09:40 UTC, Tomas Vavra
Details
Okular crash - console (2.28 KB, text/plain)
2009-11-13 09:42 UTC, Tomas Vavra
Details
Okular crash - console (928.68 KB, text/plain)
2009-11-13 09:43 UTC, Tomas Vavra
Details
Okular crash - kcrash file (12.98 KB, application/octet-stream)
2009-11-13 09:44 UTC, Tomas Vavra
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Vavra 2009-10-05 17:33:49 UTC
Application: okular (0.9.80)
KDE Version: 4.3.70 (KDE 4.3.70 (KDE 4.4 >= 20091002)) (Compiled from sources)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-1-amd64 x86_64
Distribution: Debian GNU/Linux testing (squeeze)

What I was doing when the application crashed:
When I open any document a do fast scroll on 5-10 page okular crashes with this dump. I have latest nvidia drivers and poppler 0.10.7.

 -- Backtrace:
Application: Okular (okular), signal: Aborted
[Current thread is 1 (Thread 0x7f45c57c37f0 (LWP 21809))]

Thread 2 (Thread 0x7f45ad919910 (LWP 21838)):
[KCrash Handler]
#5  0x00007f45c1dacf45 in raise () from /lib/libc.so.6
#6  0x00007f45c1dafd80 in abort () from /lib/libc.so.6
#7  0x00007f45c1de257d in ?? () from /lib/libc.so.6
#8  0x00007f45c1debdd6 in ?? () from /lib/libc.so.6
#9  0x00007f45be8e395f in ft_glyphslot_free_bitmap () from /usr/lib/libfreetype.so.6
#10 0x00007f45be8e64f2 in FT_Load_Glyph () from /usr/lib/libfreetype.so.6
#11 0x00007f45ada7a232 in SplashFTFont::makeGlyph (this=0x1af5c20, c=80, xFrac=<value optimized out>, yFrac=<value optimized out>, bitmap=0x7f45ad918540, x0=961, y0=1495, clip=0x1a642a0, 
    clipRes=0x7f45ad91864c) at SplashFTFont.cc:199
#12 0x00007f45ada7b8c5 in SplashFont::getGlyph (this=0x1af5c20, c=80, xFrac=0, yFrac=0, bitmap=0x7f45ad918620, x0=-1042813952, y0=1495, clip=0x1a642a0, clipRes=0x7f45ad91864c) at SplashFont.cc:159
#13 0x00007f45ada6eee6 in Splash::fillChar (this=0x1a34490, x=<value optimized out>, y=<value optimized out>, c=80, font=0x1af5c20) at Splash.cc:1704
#14 0x00007f45ad9a8446 in SplashOutputDev::drawChar (this=0x1a7a400, state=0x1b313a0, x=470.99892560800004, y=58.920000000000002, dx=<value optimized out>, dy=<value optimized out>, 
    originX=<value optimized out>, originY=<value optimized out>, code=80, nBytes=<value optimized out>, u=<value optimized out>, uLen=<value optimized out>) at SplashOutputDev.cc:1371
#15 0x00007f45ad9e6620 in Gfx::doShowText (this=0x1ab0b80, s=0x1b39910) at Gfx.cc:3462
#16 0x00007f45ad9e99ad in Gfx::opShowSpaceText (this=0x1ab0b80, args=<value optimized out>, numArgs=<value optimized out>) at Gfx.cc:3327
#17 0x00007f45ad9dd64c in Gfx::go (this=0x1ab0b80, topLevel=1) at Gfx.cc:643
#18 0x00007f45ad9e1e46 in Gfx::display (this=0x1ab0b80, obj=0x7f45ad918d00, topLevel=1) at Gfx.cc:612
#19 0x00007f45ada24e40 in Page::displaySlice (this=0x1a46420, out=0x1a7a400, hDPI=146.94117647058823, vDPI=146.90909090909091, rotate=<value optimized out>, useMediaBox=<value optimized out>, 
    crop=1, sliceX=-1, sliceY=-1, sliceW=-1, sliceH=-1, printing=0, catalog=0x1a37d90, abortCheckCbk=0, abortCheckCbkData=0x0, annotDisplayDecideCbk=0, annotDisplayDecideCbkData=0x0) at Page.cc:442
#20 0x00007f45add3bf7d in Poppler::Page::renderToImage (this=0x1aa54c0, xres=146.94117647058823, yres=146.90909090909091, x=-1, y=-1, w=-1, h=-1, rotate=Poppler::Page::Rotate0) at poppler-page.cc:205
#21 0x00007f45adfd18ac in PDFPixmapGeneratorThread::run() () from /opt/kde4/lib/kde4/okularGenerator_poppler.so
#22 0x00007f45c37071c5 in QThreadPrivate::start (arg=0x1a337a0) at thread/qthread_unix.cpp:188
#23 0x00007f45c348573a in start_thread () from /lib/libpthread.so.0
#24 0x00007f45c1e4649d in clone () from /lib/libc.so.6
#25 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f45c57c37f0 (LWP 21809)):
#0  0x00007f45c1e3b543 in poll () from /lib/libc.so.6
#1  0x00007f45bd49990a in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f45bd49b91c in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#3  0x00007f45c0d0c0b4 in _XReply () from /usr/lib/libX11.so.6
#4  0x00007f45c0d0184d in XTranslateCoordinates () from /usr/lib/libX11.so.6
#5  0x00007f45c2ad3c4c in QWidget::mapFromGlobal (this=<value optimized out>, pos=<value optimized out>) at kernel/qwidget_x11.cpp:1193
#6  0x00007f45c2ad3cb9 in QWidget::mapFromGlobal (this=0x1789d30, pos=...) at kernel/qwidget_x11.cpp:1186
#7  0x00007f45c2ad3cb9 in QWidget::mapFromGlobal (this=0x18094c0, pos=...) at kernel/qwidget_x11.cpp:1186
#8  0x00007f45c2ad3cb9 in QWidget::mapFromGlobal (this=0x1893840, pos=...) at kernel/qwidget_x11.cpp:1186
#9  0x00007f45c2ad3cb9 in QWidget::mapFromGlobal (this=0x18ab6f0, pos=...) at kernel/qwidget_x11.cpp:1186
#10 0x00007f45c2ad3cb9 in QWidget::mapFromGlobal (this=0x181cc70, pos=...) at kernel/qwidget_x11.cpp:1186
#11 0x00007f45c2a4c5fb in QApplicationPrivate::pickMouseReceiver (candidate=0x17e3e70, globalPos=..., pos=..., type=QEvent::MouseMove, buttons=..., buttonDown=0x0, alienWidget=0x181cc70)
    at kernel/qapplication.cpp:2856
#12 0x00007f45c2abc81b in QETWidget::translateMouseEvent (this=0x17e3e70, event=<value optimized out>) at kernel/qapplication_x11.cpp:4399
#13 0x00007f45c2abb64f in QApplication::x11ProcessEvent (this=0x7ffff318c420, event=0x7ffff318c070) at kernel/qapplication_x11.cpp:3550
#14 0x00007f45c2ae25fc in x11EventSourceDispatch (s=0x16926e0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#15 0x00007f45bf3cd12a in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#16 0x00007f45bf3d0988 in ?? () from /lib/libglib-2.0.so.0
#17 0x00007f45bf3d0b3c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#18 0x00007f45c381578f in QEventDispatcherGlib::processEvents (this=0x16750a0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#19 0x00007f45c2ae1daf in QGuiEventDispatcherGlib::processEvents (this=0x7ffff318a0a0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#20 0x00007f45c37eb9a2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#21 0x00007f45c37ebd74 in QEventLoop::exec (this=0x7ffff318c3a0, flags=...) at kernel/qeventloop.cpp:201
#22 0x00007f45c37edfe4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#23 0x0000000000408244 in main ()

This bug may be a duplicate of or related to bug 206843, bug 195093.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2009-10-05 19:32:19 UTC
Weird backtrace, basically it seems it is crashing inside freetype, can you do two things?
 * Try with a driver different from the nvidia one
 * Try running okular with valgrind

And see if it crashes in those situations, if it crashes in valgrind please also paste the valgrind log
Comment 2 Dario Andres 2009-11-11 23:05:49 UTC
Waiting for feedback. Marking as NEEDSINFO.
Comment 3 Tomas Vavra 2009-11-12 10:16:13 UTC
Hi Dario,

When I run it in valgrind it runs that slow that I am not able reproduce. I tried with latest Stable Nvidia 190.42, but is same. If you have idea with which parameters I have to run valgrin, please point it and I will try.

Thanks
Comment 4 Albert Astals Cid 2009-11-12 21:48:33 UTC
Can you try doing in a shell
export MALLOC_CHECK_=1
okular /path/to/my/file

and see if it still crashes?
Comment 5 Tomas Vavra 2009-11-13 09:40:58 UTC
Created attachment 38295 [details]
Okular crash - console

export MALLOC_CHECK_=1
started okular
Comment 6 Tomas Vavra 2009-11-13 09:42:34 UTC
Created attachment 38296 [details]
Okular crash - console

export MALLOC_CHECK_=1
started okular and scroll
Comment 7 Tomas Vavra 2009-11-13 09:43:17 UTC
Created attachment 38297 [details]
Okular crash - console

export MALLOC_CHECK_=1
started okular and scroll
Comment 8 Tomas Vavra 2009-11-13 09:44:15 UTC
Created attachment 38298 [details]
Okular crash - kcrash file

Kcrash for (id=38297)
Comment 9 Tomas Vavra 2009-11-13 09:44:46 UTC
Hi Dario,

see attached files I hope it helps.

Tomas
Comment 10 Albert Astals Cid 2009-11-13 18:05:06 UTC
Question i didn't make. Any pdf file or just a particular one?
Comment 11 Tomas Vavra 2009-11-14 16:20:23 UTC
Any PDF, but more when there are some images (but not sure).

On Fri, Nov 13, 2009 at 6:05 PM, Albert Astals Cid <tsdgeos@terra.es> wrote:
> https://bugs.kde.org/show_bug.cgi?id=209539
>
>
>
>
>
> --- Comment #10 from Albert Astals Cid <tsdgeos terra es>  2009-11-13 18:05:06 ---
> Question i didn't make. Any pdf file or just a particular one?
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
Comment 12 Dario Andres 2009-12-14 23:20:02 UTC
- Is this still happening with an updated KDE build ? Thanks
Comment 13 Albert Astals Cid 2012-08-08 21:30:26 UTC
User doesn't care, closing as invalid. Tomas if you can still reproduce this error and are able to provide the requested information please add it to the bug and reopen it.