Bug 309528 - Okular crashes upon opening PS file
Summary: Okular crashes upon opening PS file
Status: RESOLVED DUPLICATE of bug 308629
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.15.2
Platform: Chakra Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-04 14:28 UTC by Bernd Oliver Sünderhauf
Modified: 2012-11-05 10:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
PS file leading to the crash (210.92 KB, application/postscript)
2012-11-04 14:30 UTC, Bernd Oliver Sünderhauf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Oliver Sünderhauf 2012-11-04 14:28:31 UTC
Application: okular (0.15.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.3
Operating System: Linux 3.5.6-1-CHAKRA x86_64
Distribution: "Chakra"

-- Information about the crash:
- What I was doing when the application crashed:

I opened a simple PS file (created with Scribus) using Okular.

This immediately killed Okular:
  GPL Ghostscript 9.05: Error: Font Renderer Plugin ( FreeType ) return code = -1
  GPL Ghostscript 9.05: Error: Font Renderer Plugin ( FreeType ) return code = -1
  invalidaccess -7
  KCrash: Application 'okular' crashing...
  KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
  sock_file=/home/pancho/.kde4/socket-Luka/kdeinit4__0
on Chakra with:
  okular: 0:15.2
  libspectre 0.2.6.1
  ghostscript: 9.05
  freetype2: 2.4.7

It is nearly 1:1 reproducible with the following output:
  GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
  GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1
  invalidaccess -7
  okular: Fatal IO error: client killed
  KCrash: Application 'okular' crashing...
  KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
  sock_file=/home/pancho/.kde/socket-anna/kdeinit4__0
on Kubuntu 11.10 with:
  okular: 0.15.2
  libspectre: 0.2.7
  ghostscript: 9.06
  libfreetype6: 2.4.10

Whereas the PS file displays nice with: <gs Dokument-1.ps>

This bug is probably related to https://bugs.freedesktop.org/show_bug.cgi?id=20138 in libspectre, especially as Evince also fails displaying the file.

However libspectre's failure shouldn't make Okular crash, but should at least show an error.


Btw, the Freetype patch:
https://savannah.nongnu.org/bugs/?func=detailitem&item_id=35833 /
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=9a55cb7a
and the followup:
https://savannah.nongnu.org/bugs/?func=detailitem&item_id=35847
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=b43e0f44
should have fixed the Font Renderer Plugin issue in 2.4.10, but I'm not sure it has.
Does someone know whether libspectre comes bundled with an old version of freetype?
Then I'd know whether to file this against freetype or libspectre.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fe7bece1780 (LWP 6564))]

Thread 2 (Thread 0x7fe7b09ea700 (LWP 6565)):
[KCrash Handler]
#6  0x00007fe7b359c558 in GSRendererThread::run (this=0x18c2b40) at /chakra/desktop-testing/kdegraphics-okular/src/okular-4.9.2/generators/spectre/rendererthread.cpp:74
#7  0x00007fe7c655057c in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fe7c3e07ede in start_thread () from /lib/libpthread.so.0
#9  0x00007fe7c5c9b60d in clone () from /lib/libc.so.6

Thread 1 (Thread 0x7fe7bece1780 (LWP 6564)):
#0  0x00007fe7c5c8f10d in read () from /lib/libc.so.6
#1  0x00007fe7c2914ecf in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fe7c28d9cfa in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x00007fe7c28da202 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007fe7c28da384 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007fe7c667a916 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fe7c70d996e in ?? () from /usr/lib/libQtGui.so.4
#7  0x00007fe7c664b5ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007fe7c664b888 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#9  0x00007fe7c6650528 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#10 0x000000000040798e in main (argc=<optimized out>, argv=<optimized out>) at /chakra/desktop-testing/kdegraphics-okular/src/okular-4.9.2/shell/main.cpp:85

Possible duplicates by query: bug 308160, bug 296587, bug 295504.

Reported using DrKonqi
Comment 1 Bernd Oliver Sünderhauf 2012-11-04 14:30:16 UTC
Created attachment 74998 [details]
PS file leading to the crash
Comment 2 Bernd Oliver Sünderhauf 2012-11-04 15:48:36 UTC
Concerning the "GPL Ghostscript 9.06: Error: Font Renderer Plugin ( FreeType ) return code = -1" messages, I opened a separate ticket: https://bugs.kde.org/show_bug.cgi?id=309536
Comment 3 Pino Toscano 2012-11-04 15:58:53 UTC
Most probably the same cause as #308629, so either
a) ask your distro to backport that patch
b) compile yourself okular with that patch
c) wait for KDE 4.9.3 (with okular 0.15.3), due in few days, and update
and then check whether the crash still happens.
Comment 4 Albert Astals Cid 2012-11-05 10:05:05 UTC

*** This bug has been marked as a duplicate of bug 308629 ***