Bug 368151 - Use with Xvnc and Xrdp causes immediate crash.
Summary: Use with Xvnc and Xrdp causes immediate crash.
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.20.3
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-02 13:12 UTC by kde
Modified: 2016-10-02 22:03 UTC (History)
1 user (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 kde 2016-09-02 13:12:16 UTC
Application: okular (0.20.2)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.0-4-amd64 x86_64
Distribution: Debian GNU/Linux 8.5 (jessie)

-- Information about the crash:
Upon start of Okular (no matter what the PDF) it immediately crashes.

Using KDE on debian with xrdp (e.g. access using rxdp).

The X11 host is Xvnc:

Xvnc Free Edition 4.1.1 - built Apr  2 2015 21:54:27
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40300000, The XFree86 Project, Inc

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f398166699a in ?? () from /usr/lib/x86_64-linux-gnu/kde4/plugins/kscreen/1/KSC_XRandR11.so
#7  0x00007f39872e80a5 in Okular::Utils::realDpi (widgetOnScreen=0x1825080) at ../core/utils.cpp:105
#8  0x00007f39872c0336 in Okular::DocumentPrivate::openDocumentInternal (this=0x1817470, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at ../core/document.cpp:939
#9  0x00007f39872c0e5a in Okular::Document::openDocument (this=0x17fe550, docFile=..., url=..., _mime=..., password=...) at ../core/document.cpp:2227
#10 0x00007f398758f193 in Okular::Part::doOpenFile (this=0x17f5bf0, mimeA=..., fileNameToOpenA=..., isCompressedFile=<optimized out>) at ../part.cpp:1253
#11 0x00007f398759122f in Okular::Part::openFile (this=0x16ff8a8) at ../part.cpp:1374
#12 0x00007f399916373a in ?? () from /usr/lib/libkparts.so.4
#13 0x00007f3999165b76 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#14 0x00007f398758603b in Okular::Part::openUrl (this=0x17f5bf0, _url=...) at ../part.cpp:1527
#15 0x000000000040ee96 in Shell::openUrl (this=this@entry=0x17cfea0, url=..., serializedOptions=...) at ../../shell/shell.cpp:235
#16 0x000000000040f15b in Shell::openDocument (this=this@entry=0x17cfea0, url=..., serializedOptions=...) at ../../shell/shell.cpp:181
#17 0x0000000000409d8f in Okular::main (paths=..., serializedOptions=...) at ../../shell/okular_main.cpp:148
#18 0x0000000000409662 in main (argc=<optimized out>, argv=<optimized out>) at ../../shell/main.cpp:51

Possible duplicates by query: bug 341867, bug 335698, bug 334415, bug 334088.

Report to https://bugs.kde.org/

Reproducible: Always

Steps to Reproduce:
1. open any pdf
2.
3.
Comment 1 Albert Astals Cid 2016-10-02 22:03:36 UTC
You're using a very old version of okular and libkscreen. This has been fixed since, as a stop gap measure you can try removing KSC_XRandR11.so, but that's always a bit dangerous of course.