Bug 341485 - okular crashes every time
Summary: okular crashes every time
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 1.0.5
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Alex Fiestas
URL:
Keywords: drkonqi
: 341867 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-02 10:55 UTC by Marek Vandas
Modified: 2014-12-19 23:24 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Vandas 2014-12-02 10:55:20 UTC
Application: okular (0.20.3)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.6-2-desktop x86_64
Distribution: "openSUSE 13.2 (Harlequin) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
When I call okular from terminal (okular file.pdf) it immediately crashes (literally with any file). The same crash occurs when the file is viewed through konqueror (which uses okular). I have recently installed new system - opensuse 13.2 and met this error. I installed the system automatically using an official distribution. I have opensuse 13.1 (i.e. older version) on another computer and okular works fine there.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007f4c31b75610 in  () at /usr/lib64/kde4/plugins/kscreen/KSC_XRandR11.so
#6  0x00007f4c36675742 in Okular::Utils::realDpi(QWidget*) () at /usr/lib64/libokularcore.so.5
#7  0x00007f4c3665057f in  () at /usr/lib64/libokularcore.so.5
#8  0x00007f4c36650c8c in Okular::Document::openDocument(QString const&, KUrl const&, KSharedPtr<KMimeType> const&, QString const&) () at /usr/lib64/libokularcore.so.5
#9  0x00007f4c36919d73 in Okular::Part::doOpenFile(KSharedPtr<KMimeType> const&, QString const&, bool*) () at /usr/lib64/kde4/okularpart.so
#10 0x00007f4c3691b075 in Okular::Part::openFile() () at /usr/lib64/kde4/okularpart.so
#11 0x00007f4c480bd0b7 in  () at /usr/lib64/libkparts.so.4
#12 0x00007f4c480be69e in KParts::ReadOnlyPart::openUrl(KUrl const&) () at /usr/lib64/libkparts.so.4
#13 0x00007f4c3691015b in Okular::Part::openUrl(KUrl const&) () at /usr/lib64/kde4/okularpart.so
#14 0x000000000040fd96 in _start ()

Reported using DrKonqi
Comment 1 Albert Astals Cid 2014-12-02 19:27:56 UTC
Your libkscreen is old. Tell the opensuse people to update it.
Comment 2 Christoph Feck 2014-12-02 20:26:25 UTC
openSUSE 13.2 has libkscreen 1.0.5+kscreen 1.0.71. Is there a newer release?
Comment 3 Albert Astals Cid 2014-12-02 20:39:23 UTC
1.0.5 should be fine. Marek can you install libkscreen debug pacakge and attach the backtrace with more symbols? Also make sure you have 1.0.5 of libkscreen
Comment 4 Marek Vandas 2014-12-05 06:32:28 UTC
I have libkscreen 1.0.5-1.1 installed. The libkscreen debug pacakge is not offered in my yast software managmentI for opensuse 13.2..  I should know the exact name of this package (including version) and where to find it (I browse internet, several versions were offered in source form, none precompiled; web description told debug but packages did not include "debug" in their names, only libkscreen, so I hesitate to install them). Also it is not clear me if the debugging is automatic after installation or something must be adjusted.

                        Marek Vandas
Comment 5 Marek Vandas 2014-12-05 09:24:22 UTC
Additional information which I figured out after reporting the problem:
It occurs because I work with the PC in play as a remote server.
I connect to it via ssh by an older PC with suse linux 8.2 installed. And
it makes this problem (crashes). When I work with the server locally, okular
works fine. Other X-applications via this connection works, only
displaying is rather slow (e.g., konqueror, yast2, gv). Yast2 works but
writes this error message "libGL error: failed to load driver: swrast".
I do not know if this is related to our problem, I list it here
for completness. When I connect with the older PC to my notebook with
opensuse 13.1 installed (server has 13.2), okular does not crash.
Comment 6 Christoph Feck 2014-12-05 12:10:01 UTC
Then it is a kscreen bug, related to bug 331537, indicating it fails to find xrandr information on remote displays.
Comment 7 Christoph Feck 2014-12-05 12:11:28 UTC
Please ask in a forum of your distribution which packages you need to install for debugging symbols in this case.
Comment 8 Marek Vandas 2014-12-11 07:52:12 UTC
I installed okular-debuginfo-4.11.0-2.1.x86_64. However the backtrace log did not improve.

Here is the output in the terminal:

vandas@foz:~> okular OpenMP4.0.0.pdf
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.addin.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.presentation.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.template.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.template.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.template.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-word.document.macroEnabled.12"
okular(26082) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-powerpoint.slide.macroEnabled.12"
KCrash: Application 'okular' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/vandas/.kde4/socket-foz/kdeinit4_localhost_10

[1]+  Stopped                 okular OpenMP4.0.0.pdf

Output from Crash Reporting Assistant on the terminal:

warning: the debug information found in "/usr/lib/debug//usr/bin/okular.debug" does not match "/usr/bin/okular" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/bin/okular.debug" does not match "/usr/bin/okular" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug//usr/lib64/kde4/okularpart.so.debug" does not match "/usr/lib64/kde4/okularpart.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/lib64/kde4/okularpart.so.debug" does not match "/usr/lib64/kde4/okularpart.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug//usr/lib64/kde4/okularGenerator_poppler.so.debug" does not match "/usr/lib64/kde4/okularGenerator_poppler.so" (CRC mismatch).


warning: the debug information found in "/usr/lib/debug/usr/lib64/kde4/okularGenerator_poppler.so.debug" does not match "/usr/lib64/kde4/okularGenerator_poppler.so" (CRC mismatch).

Got object file from memory but can't read symbols: File truncated.

I do not know how to continue.
Comment 9 Christoph Feck 2014-12-12 20:52:15 UTC
You installed the debug packages from a different repository or from a different version in the same repository.
Comment 10 Marek Vandas 2014-12-15 09:18:57 UTC
I have okular-4.14.3-4.2.x86_64. I installed okular-debuginfo-4.14.3-4.2.x86_64.
Here is the backtrace:

Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00007fc723a9a610 in  () at /usr/lib64/kde4/plugins/kscreen/KSC_XRandR11.so
#6  0x00007fc728589742 in Okular::Utils::realDpi(QWidget*) (widgetOnScreen=0x194a5c0) at /usr/src/debug/okular-4.14.3/core/utils.cpp:105
#7  0x00007fc72856457f in Okular::DocumentPrivate::openDocumentInternal(KSharedPtr<KService> const&, bool, QString const&, QByteArray const&, QString const&) (this=0x193d740, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at /usr/src/debug/okular-4.14.3/core/document.cpp:939
#8  0x00007fc728564c8c in Okular::Document::openDocument(QString const&, KUrl const&, KSharedPtr<KMimeType> const&, QString const&) (this=<optimized out>, docFile=..., url=..., _mime=..., password=...) at /usr/src/debug/okular-4.14.3/core/document.cpp:2227
#9  0x00007fc72882dd73 in Okular::Part::doOpenFile(KSharedPtr<KMimeType> const&, QString const&, bool*) (this=this@entry=0x18f8e90, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7fff824afc6f) at /usr/src/debug/okular-4.14.3/part.cpp:1253
#10 0x00007fc72882f075 in Okular::Part::openFile() (this=0x18f8e90) at /usr/src/debug/okular-4.14.3/part.cpp:1374
#11 0x00007fc739fd20b7 in  () at /usr/lib64/libkparts.so.4
#12 0x00007fc739fd369e in KParts::ReadOnlyPart::openUrl(KUrl const&) () at /usr/lib64/libkparts.so.4
#13 0x00007fc72882415b in Okular::Part::openUrl(KUrl const&) (this=0x18f8e90, _url=...) at /usr/src/debug/okular-4.14.3/part.cpp:1527
#14 0x000000000040fd96 in Shell::openUrl(KUrl const&, QString const&) (this=this@entry=0x18edec0, url=..., serializedOptions=...) at /usr/src/debug/okular-4.14.3/shell/shell.cpp:235
#15 0x0000000000410069 in Shell::openDocument(QString const&, QString const&) (this=this@entry=0x18edec0, url=..., serializedOptions=...) at /usr/src/debug/okular-4.14.3/shell/shell.cpp:181
#16 0x000000000040acc0 in Okular::main(QStringList const&, QString const&) (paths=..., serializedOptions=...) at /usr/src/debug/okular-4.14.3/shell/okular_main.cpp:148
#17 0x000000000040a592 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-4.14.3/shell/main.cpp:51
Comment 11 Albert Astals Cid 2014-12-19 23:12:15 UTC
*** Bug 341867 has been marked as a duplicate of this bug. ***
Comment 12 Albert Astals Cid 2014-12-19 23:12:36 UTC
As a stop gap measure you can try removing KSC_XRandR11.so
Comment 13 Albert Astals Cid 2014-12-19 23:24:52 UTC
Git commit 257aae50cffbcedf488245c289b30c334c2d5cc0 by Albert Astals Cid.
Committed on 19/12/2014 at 23:23.
Pushed by aacid into branch 'master'.

Fix crash in XRandr1.1 backend

REVIEW: 121605

M  +4    -0    backends/xrandr1.1/xrandr11.cpp

http://commits.kde.org/libkscreen/257aae50cffbcedf488245c289b30c334c2d5cc0