Bug 317422 - crash while printing pdf from ps
Summary: crash while printing pdf from ps
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: 0.14.3
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-27 06:23 UTC by Swaprava
Modified: 2014-05-08 09:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
crash report created by kde (8.12 KB, application/octet-stream)
2013-03-27 06:25 UTC, Swaprava
Details
The ps file that generated the crash (179.91 KB, application/postscript)
2013-03-27 07:58 UTC, Swaprava
Details
terminal log of "valgrind okular myfile.ps" (37.31 KB, text/plain)
2013-04-08 05:03 UTC, Swaprava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Swaprava 2013-03-27 06:23:51 UTC
While creating a pdf file from the ps image I created, I changed the paper size from default A4 to A3 and triggered the printing. It crashed the okular.

Reproducible: Always

Steps to Reproduce:
1. Open ps image using okular
2. Print as pdf image, change the page size to A3, and orientation to landscape
3. Press print, it crashes
Actual Results:  
okular crashes

Expected Results:  
creating a pdf file
Comment 1 Swaprava 2013-03-27 06:25:10 UTC
Created attachment 78415 [details]
crash report created by kde
Comment 2 Albert Astals Cid 2013-03-27 07:33:58 UTC
Please attach the ps file that you were using
Comment 3 Swaprava 2013-03-27 07:58:34 UTC
Created attachment 78416 [details]
The ps file that generated the crash

attached on request
Comment 4 Swaprava 2013-03-27 09:22:07 UTC
Provided the info, so moving back
Comment 5 Albert Astals Cid 2013-04-07 15:54:08 UTC
Hmm, can't reproduce, what version of libspectre do you have installed?

Also can you reproduce the crash every time?

If so could you please run
valgrind okular myfile.ps
and attach the output you get in the terminal when trying to make it crash?
Comment 6 Swaprava 2013-04-08 05:03:12 UTC
Created attachment 78721 [details]
terminal log of "valgrind okular myfile.ps"

Attaching the log as requested
Comment 7 Swaprava 2013-04-08 05:03:43 UTC
I don't know what you mean by the version of libspectre. I could find the following version of okular from the help menu of the viewer. Let me know if this isn't what you were looking for.

Okular
Version 0.14.3
Using KDE Development Platform 4.8.5 (4.8.5)

And yes, it is reproducible every time! I'm attaching the valgrind output from the terminal as requested.
Comment 8 Swaprava 2013-04-08 05:16:01 UTC
running 'locate libspectre' I got the following output

$ locate libspectre
/usr/lib/libspectre.so.1
/usr/lib/libspectre.so.1.1.6
/usr/lib/debug/usr/lib/libspectre.so.1.1.6
/usr/share/doc/libspectre1
/usr/share/doc/libspectre1-dbg
/usr/share/doc/libspectre1/NEWS.gz
/usr/share/doc/libspectre1/README
/usr/share/doc/libspectre1/TODO
/usr/share/doc/libspectre1/changelog.Debian.gz
/usr/share/doc/libspectre1/copyright
/usr/share/doc/libspectre1-dbg/changelog.Debian.gz
/usr/share/doc/libspectre1-dbg/copyright
/var/cache/apt/archives/libspectre1-dbg_0.2.6-1build1_amd64.deb
/var/lib/dpkg/info/libspectre1-dbg.list
/var/lib/dpkg/info/libspectre1-dbg.md5sums
/var/lib/dpkg/info/libspectre1.list
/var/lib/dpkg/info/libspectre1.md5sums
/var/lib/dpkg/info/libspectre1.postinst
/var/lib/dpkg/info/libspectre1.postrm
/var/lib/dpkg/info/libspectre1.shlibs
Comment 9 Swaprava 2013-04-08 05:16:01 UTC
(In reply to comment #7)
> I don't know what you mean by the version of libspectre. I could find the
> following version of okular from the help menu of the viewer. Let me know if
> this isn't what you were looking for.
> 
> Okular
> Version 0.14.3
> Using KDE Development Platform 4.8.5 (4.8.5)
> 
> And yes, it is reproducible every time! I'm attaching the valgrind output
> from the terminal as requested.

running 'locate libspectre' I got the following output

$ locate libspectre
/usr/lib/libspectre.so.1
/usr/lib/libspectre.so.1.1.6
/usr/lib/debug/usr/lib/libspectre.so.1.1.6
/usr/share/doc/libspectre1
/usr/share/doc/libspectre1-dbg
/usr/share/doc/libspectre1/NEWS.gz
/usr/share/doc/libspectre1/README
/usr/share/doc/libspectre1/TODO
/usr/share/doc/libspectre1/changelog.Debian.gz
/usr/share/doc/libspectre1/copyright
/usr/share/doc/libspectre1-dbg/changelog.Debian.gz
/usr/share/doc/libspectre1-dbg/copyright
/var/cache/apt/archives/libspectre1-dbg_0.2.6-1build1_amd64.deb
/var/lib/dpkg/info/libspectre1-dbg.list
/var/lib/dpkg/info/libspectre1-dbg.md5sums
/var/lib/dpkg/info/libspectre1.list
/var/lib/dpkg/info/libspectre1.md5sums
/var/lib/dpkg/info/libspectre1.postinst
/var/lib/dpkg/info/libspectre1.postrm
/var/lib/dpkg/info/libspectre1.shlibs
Comment 10 Swaprava 2013-04-08 05:16:01 UTC
running 'locate libspectre' I got the following output

$ locate libspectre
/usr/lib/libspectre.so.1
/usr/lib/libspectre.so.1.1.6
/usr/lib/debug/usr/lib/libspectre.so.1.1.6
/usr/share/doc/libspectre1
/usr/share/doc/libspectre1-dbg
/usr/share/doc/libspectre1/NEWS.gz
/usr/share/doc/libspectre1/README
/usr/share/doc/libspectre1/TODO
/usr/share/doc/libspectre1/changelog.Debian.gz
/usr/share/doc/libspectre1/copyright
/usr/share/doc/libspectre1-dbg/changelog.Debian.gz
/usr/share/doc/libspectre1-dbg/copyright
/var/cache/apt/archives/libspectre1-dbg_0.2.6-1build1_amd64.deb
/var/lib/dpkg/info/libspectre1-dbg.list
/var/lib/dpkg/info/libspectre1-dbg.md5sums
/var/lib/dpkg/info/libspectre1.list
/var/lib/dpkg/info/libspectre1.md5sums
/var/lib/dpkg/info/libspectre1.postinst
/var/lib/dpkg/info/libspectre1.postrm
/var/lib/dpkg/info/libspectre1.shlibs
Comment 11 Albert Astals Cid 2013-04-10 22:32:24 UTC
I don't know which distribution you are using but please use it to query the  version of  the libspectre package you have installed
Comment 12 Swaprava 2013-04-11 03:57:10 UTC
(In reply to comment #11)
> I don't know which distribution you are using but please use it to query the
> version of  the libspectre package you have installed

How to query the version of the libspectre?
Comment 13 Albert Astals Cid 2013-04-11 07:10:07 UTC
As I already said, that depends on the distribution you are using, please ask in some specific distribution forum or use google.
Comment 14 Christoph Feck 2013-04-20 12:17:28 UTC
You can use "dpkg -s packagename" to get information about packages.
Comment 15 Swaprava 2013-04-21 05:20:00 UTC
Thanks Cristoph, here is the information.

$ dpkg -s libspectre1
Package: libspectre1
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 124
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: libspectre
Version: 0.2.6-1build1
Depends: libc6 (>= 2.8), libgs9 (>= 8.61.dfsg.1)
Suggests: libspectre1-dbg (= 0.2.6-1build1)
Description: Library for rendering PostScript documents
 libspectre is a small library for rendering PostScript documents. It provides
 a convenient easy to use API for handling and rendering PostScript documents.
Original-Maintainer: Debian Krap Maintainers <debian-qt-kde@lists.debian.org>
Homepage: http://libspectre.freedesktop.org
Comment 16 Albert Astals Cid 2013-06-23 16:35:12 UTC
Any chance you can update to libspectre 0.2.7 ? I'm using it and i don't get that crash nor that valgrind trace
Comment 17 Albert Astals Cid 2014-05-08 09:46:23 UTC
No answer in more than 6 months