You are not logged in.

#1 2018-10-30 11:58:07

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

[SOLVED]Okular crashes when highlighting text (poppler)

Okular crashes whenever I highlight / accentuate text on my Plasma machine, using the review tool.

It worked fine in the past, however I didn't tried it for months I guess. Today I wanted to add another color for highlighting text and started to highlight. Now whenever I do so, Okular displays the highlighting just fine and crashes one second after that. Other annotations (except for underlining) work just fine.

KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = okular path = /usr/bin pid = 7619
KCrash: Arguments: /usr/bin/okular 
KCrash: Attempting to start /usr/lib/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Angehalten              okular

I tried to delete the .okular folder, reinstalled okular with all its dependencies and deleted the pkg cache, just to be sure there were no corrupted packages.

pacman -Rsn okular
pacman -Scc
pacman -Syu
pacman -S okular

Still the same bug that crashes okular on my system. However I can change the color of highlights, I added previously with Mac OS X.

I just installed okular on another machine (gnome based) and hightlighting works just fine. So I really have no clue, what else I could do to fix this problem, as it seems to be something that should work.

Thanks for all your input!

Last edited by markus@sl30 (2018-11-02 10:07:50)


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#2 2018-10-30 14:33:05

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [SOLVED]Okular crashes when highlighting text (poppler)

Backtrace?

Offline

#3 2018-10-31 10:33:05

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: [SOLVED]Okular crashes when highlighting text (poppler)

arojas wrote:

Backtrace?

Thanks for pointing me into the right direction. However I never used traceback / gdb, etc. so I don't know whether I did everything right for debugging the problem. Please tell me if I have to do something differently!

Here is what I did after compiling Okular with -DCMAKE_BUILD_TYPE=RelWithDebInfo option:

[markus@X1_Carbon]: /home>$ gdb okular
GNU gdb (GDB) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from okular...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/okular 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffefe25700 (LWP 7303)]
[New Thread 0x7fffecff5700 (LWP 7304)]
[New Thread 0x7fffdf5d4700 (LWP 7305)]
[Detaching after fork from child process 7308]
[Detaching after fork from child process 7309]
[New Thread 0x7fffdd027700 (LWP 7316)]
[New Thread 0x7fffd7fff700 (LWP 7317)]
[Thread 0x7fffdd027700 (LWP 7316) exited]
[Thread 0x7fffd7fff700 (LWP 7317) exited]
[New Thread 0x7fffd7fff700 (LWP 7318)]
[Thread 0x7fffd7fff700 (LWP 7318) exited]
[New Thread 0x7fffd7fff700 (LWP 7319)]
[New Thread 0x7fffdd027700 (LWP 7320)]
[Thread 0x7fffd7fff700 (LWP 7319) exited]
[New Thread 0x7fffd7fff700 (LWP 7321)]
[Thread 0x7fffdd027700 (LWP 7320) exited]
[New Thread 0x7fffd7fff700 (LWP 7322)]
[Thread 0x7fffd7fff700 (LWP 7321) exited]
[New Thread 0x7fffd7fff700 (LWP 7323)]
[Thread 0x7fffd7fff700 (LWP 7322) exited]
[New Thread 0x7fffdd027700 (LWP 7324)]
[New Thread 0x7fffd7fff700 (LWP 7325)]
[Thread 0x7fffd7fff700 (LWP 7323) exited]
[Thread 0x7fffdd027700 (LWP 7324) exited]
[Thread 0x7fffd7fff700 (LWP 7325) exited]

Thread 1 "okular" received signal SIGSEGV, Segmentation fault.
0x00007fffde95a72f in Poppler::HighlightAnnotationPrivate::toQuadrilaterals(QList<Poppler::HighlightAnnotation::Quad> const&) const () from /usr/lib/libpoppler-qt5.so.1
(gdb) set logging file trace.log
(gdb) thread apply all bt full

Thread 4 (Thread 0x7fffdf5d4700 (LWP 7305)):
#0  0x00007ffff577fafc in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
No symbol table info available.
#1  0x00007fffdf8231ac in ?? () from /usr/lib/dri/i965_dri.so
No symbol table info available.
#2  0x00007fffdf822ee8 in ?? () from /usr/lib/dri/i965_dri.so
No symbol table info available.
#3  0x00007ffff5779a9d in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#4  0x00007ffff6418b23 in clone () from /usr/lib/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7fffecff5700 (LWP 7304)):
#0  0x00007ffff640dc21 in poll () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ffff4b36ee0 in ?? () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff4b36fce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff6936fc9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#4  0x00007ffff68e28cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#5  0x00007ffff672beb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#6  0x00007ffff6b88ba6 in ?? () from /usr/lib/libQt5DBus.so.5
No symbol table info available.
#7  0x00007ffff6735f65 in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#8  0x00007ffff5779a9d in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#9  0x00007ffff6418b23 in clone () from /usr/lib/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7fffefe25700 (LWP 7303)):
#0  0x00007ffff640dc21 in poll () from /usr/lib/libc.so.6
No symbol table info available.
#1  0x00007ffff59fe630 in ?? () from /usr/lib/libxcb.so.1
No symbol table info available.
#2  0x00007ffff5a002db in xcb_wait_for_event () from /usr/lib/libxcb.so.1
No symbol table info available.
#3  0x00007ffff13b4c5a in ?? () from /usr/lib/libQt5XcbQpa.so.5
No symbol table info available.
#4  0x00007ffff6735f65 in ?? () from /usr/lib/libQt5Core.so.5
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
#5  0x00007ffff5779a9d in start_thread () from /usr/lib/libpthread.so.0
No symbol table info available.
#6  0x00007ffff6418b23 in clone () from /usr/lib/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7ffff181b800 (LWP 7298)):
#0  0x00007fffde95a72f in Poppler::HighlightAnnotationPrivate::toQuadrilaterals(QList<Poppler::HighlightAnnotation::Quad> const&) const () from /usr/lib/libpoppler-qt5.so.1
No symbol table info available.
#1  0x00007fffde95a80f in Poppler::HighlightAnnotation::setHighlightQuads(QList<Poppler::HighlightAnnotation::Quad> const&) () from /usr/lib/libpoppler-qt5.so.1
No symbol table info available.
#2  0x00007fffde95bf69 in Poppler::HighlightAnnotationPrivate::createNativeAnnot(Page*, Poppler::DocumentData*) () from /usr/lib/libpoppler-qt5.so.1
No symbol table info available.
#3  0x00007fffde956cfe in Poppler::AnnotationPrivate::addAnnotationToPage(Page*, Poppler::DocumentData*, Poppler::Annotation const*) () from /usr/lib/libpoppler-qt5.so.1
No symbol table info available.
#4  0x00007fffdea0fde9 in ?? () from /usr/lib/qt/plugins/okular/generators/okularGenerator_poppler.so
No symbol table info available.
#5  0x00007fffec5779fd in ?? () from /usr/lib/libOkular5Core.so.9
No symbol table info available.
#6  0x00007fffec58c0f4 in ?? () from /usr/lib/libOkular5Core.so.9
No symbol table info available.
#7  0x00007ffff7662374 in QUndoStack::push(QUndoCommand*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#8  0x00007fffec56cdea in Okular::Document::addPageAnnotation(int, Okular::Annotation*) () from /usr/lib/libOkular5Core.so.9
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#9  0x00007fffec736cea in ?? () from /usr/lib/qt/plugins/okularpart.so
No symbol table info available.
#10 0x00007fffec737041 in ?? () from /usr/lib/qt/plugins/okularpart.so
No symbol table info available.
#11 0x00007fffec7596c8 in ?? () from /usr/lib/qt/plugins/okularpart.so
No symbol table info available.
#12 0x00007ffff732c658 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#13 0x00007ffff73d2cef in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#14 0x00007fffec75bb25 in ?? () from /usr/lib/qt/plugins/okularpart.so
No symbol table info available.
#15 0x00007ffff68e394b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#16 0x00007ffff72ece04 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#17 0x00007ffff72f492a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#18 0x00007ffff68e3c39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#19 0x00007ffff72f3c11 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#20 0x00007ffff734798c in ?? () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#21 0x00007ffff734a5d5 in ?? () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#22 0x00007ffff72ece14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#23 0x00007ffff72f46e1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
No symbol table info available.
#24 0x00007ffff68e3c39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#25 0x00007ffff6d1d0dc in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
No symbol table info available.
#26 0x00007ffff6d1f066 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
No symbol table info available.
#27 0x00007ffff6cf8a3c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
No symbol table info available.
#28 0x00007ffff144ae1d in ?? () from /usr/lib/libQt5XcbQpa.so.5
No symbol table info available.
#29 0x00007ffff68e28cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#30 0x00007ffff68eabc6 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
No symbol table info available.
#31 0x000055555555f6cd in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--
No symbol table info available.
#32 0x00007ffff6341223 in __libc_start_main () from /usr/lib/libc.so.6
No symbol table info available.
#33 0x0000555555560d9e in _start ()
No symbol table info available.
(gdb)

Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

#4 2018-10-31 21:15:40

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [SOLVED]Okular crashes when highlighting text (poppler)

You need to add

options=(debug !strip)

to the PKGBUILD, otherwise debug symbols are stripped. And setting CMAKE_BUILD_TYPE is not necessary, the debug option will set all required build flags.

Anyway, this is a known poppler issue, should be fixed soon.

Offline

#5 2018-11-01 07:52:02

Strawpants
Member
Registered: 2014-02-13
Posts: 6

Re: [SOLVED]Okular crashes when highlighting text (poppler)

I had the same thing. Only happens with highlighting/underlining text. Downgrading to okular version 18.08.1 didn't work either. Here's what i get from coredumpctl (sorry no time for recompiling with debug symbols)
           PID: 12000 (okular)
           UID: 1000 (roelof)
           GID: 100 (users)
        Signal: 11 (SEGV)
     Timestamp: Thu 2018-11-01 08:41:41 CET (2min 10s ago)
  Command Line: okular ManuscriptannotRR.pdf
    Executable: /usr/bin/okular
Control Group: /user.slice/user-1000.slice/session-2.scope
          Unit: session-2.scope
         Slice: user-1000.slice
       Session: 2
     Owner UID: 1000 (roelof)
       Boot ID: 1f8fbf1e73a241f28a213bcc798270d8
    Machine ID: e36f1688549349afaefe1d4422747b3b
      Hostname: peinzpad
       Storage: /var/lib/systemd/coredump/core.okular.1000.1f8fbf1e73a241f28a213bcc798270d8.12000.1541058101000000.lz4
       Message: Process 12000 (okular) of user 1000 dumped core.
               
                Stack trace of thread 12000:
                #0  0x00007f21408b272f _ZNK7Poppler26HighlightAnnotationPrivate16toQuadrilateralsERK5QListINS_19HighlightAnnotation4QuadEE (libpoppler-qt5.so.1)
                #1  0x00007f21408b280f _ZN7Poppler19HighlightAnnotation17setHighlightQuadsERK5QListINS0_4QuadEE (libpoppler-qt5.so.1)
                #2  0x00007f21408b3f69 _ZN7Poppler26HighlightAnnotationPrivate17createNativeAnnotEP4PagePNS_12DocumentDataE (libpoppler-qt5.so.1)
                #3  0x00007f21408aecfe _ZN7Poppler17AnnotationPrivate19addAnnotationToPageEP4PagePNS_12DocumentDataEPKNS_10AnnotationE (libpoppler-qt5.so.1)
                #4  0x00007f21423d7f39 n/a (okularGenerator_poppler.so)
                #5  0x00007f21486ae9ed n/a (libOkular5Core.so.9)
                #6  0x00007f21486c3254 n/a (libOkular5Core.so.9)
                #7  0x00007f2158209374 _ZN10QUndoStack4pushEP12QUndoCommand (libQt5Widgets.so.5)
                #8  0x00007f21486a3dda _ZN6Okular8Document17addPageAnnotationEiPNS_10AnnotationE (libOkular5Core.so.9)
                #9  0x00007f214885ad1a n/a (okularpart.so)
                #10 0x00007f214885b071 n/a (okularpart.so)
                #11 0x00007f214887d798 n/a (okularpart.so)
                #12 0x00007f2157ed3658 _ZN7QWidget5eventEP6QEvent (libQt5Widgets.so.5)
                #13 0x00007f2157f79cef _ZN6QFrame5eventEP6QEvent (libQt5Widgets.so.5)
                #14 0x00007f214887fbf5 n/a (okularpart.so)
                #15 0x00007f21573f194b _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent (libQt5Core.so.5)
                #16 0x00007f2157e93e04 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #17 0x00007f2157e9b92a _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #18 0x00007f21573f1c39 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #19 0x00007f2157e9ac11 _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb (libQt5Widgets.so.5)
                #20 0x00007f2157eee98c n/a (libQt5Widgets.so.5)
                #21 0x00007f2157ef15d5 n/a (libQt5Widgets.so.5)
                #22 0x00007f2157e93e14 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #23 0x00007f2157e9b6e1 _ZN12QApplication6notifyEP7QObjectP6QEvent (libQt5Widgets.so.5)
                #24 0x00007f21573f1c39 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5)
                #25 0x00007f21578c40dc _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE (libQt5Gui.so.5)
                #26 0x00007f21578c6066 _ZN22QGuiApplicationPrivate24processWindowSystemEventEPN29QWindowSystemInterfacePrivate17WindowSystemEventE (libQt5Gui.so.5)
                #27 0x00007f215789fa3c _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Gui.so.5)
                #28 0x00007f2151f18e1d n/a (libQt5XcbQpa.so.5)
                #29 0x00007f21573f08cc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #30 0x00007f21573f8bc6 _ZN16QCoreApplication4execEv (libQt5Core.so.5)
                #31 0x000055a4ed68d6cd n/a (okular)
                #32 0x00007f2156e4f223 __libc_start_main (libc.so.6)
                #33 0x000055a4ed68ed9e _start (okular)
               
                Stack trace of thread 12002:
                #0  0x00007f2156f1bc21 __poll (libc.so.6)
                #1  0x00007f2155643ee0 n/a (libglib-2.0.so.0)
                #2  0x00007f2155643fce g_main_context_iteration (libglib-2.0.so.0)
                #3  0x00007f2157444fc9 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5)
                #4  0x00007f21573f08cc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5)
                #5  0x00007f2157239eb9 _ZN7QThread4execEv (libQt5Core.so.5)
                #6  0x00007f2157696ba6 n/a (libQt5DBus.so.5)
                #7  0x00007f2157243f65 n/a (libQt5Core.so.5)
                #8  0x00007f2156287a9d start_thread (libpthread.so.0)
                #9  0x00007f2156f26b23 __clone (libc.so.6)
               
                Stack trace of thread 12001:
                #0  0x00007f2156f1bc21 __poll (libc.so.6)
                #1  0x00007f21564b0630 n/a (libxcb.so.1)
                #2  0x00007f21564b22db xcb_wait_for_event (libxcb.so.1)
                #3  0x00007f2151e82c5a n/a (libQt5XcbQpa.so.5)
                #4  0x00007f2157243f65 n/a (libQt5Core.so.5)
                #5  0x00007f2156287a9d start_thread (libpthread.so.0)
                #6  0x00007f2156f26b23 __clone (libc.so.6)
               
                Stack trace of thread 12003:
                #0  0x00007f215628dafc pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)
                #1  0x00007f214170a1ac n/a (i965_dri.so)
                #2  0x00007f2141709ee8 n/a (i965_dri.so)
                #3  0x00007f2156287a9d start_thread (libpthread.so.0)
                #4  0x00007f2156f26b23 __clone (libc.so.6)

Last edited by Strawpants (2018-11-01 07:57:15)

Offline

#6 2018-11-01 08:01:11

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,098

Re: [SOLVED]Okular crashes when highlighting text (poppler)

Fixed with poppler 0.70.1-2

Offline

#7 2018-11-01 08:14:42

Strawpants
Member
Registered: 2014-02-13
Posts: 6

Re: [SOLVED]Okular crashes when highlighting text (poppler)

great, I see it's in testing, so for the meanwhile I solved it by downgrading poppler from (/var/cache/pacman/pkg):
pacman -U poppler-0.67.0-1-x86_64.pkg.tar.xz poppler-glib-0.67.0-1-x86_64.pkg.tar.xz poppler-qt5-0.67.0-1-x86_64.pkg.tar.xz

Last edited by Strawpants (2018-11-01 08:16:48)

Offline

#8 2018-11-01 09:03:45

markus@sl30
Member
Registered: 2009-06-09
Posts: 18

Re: [SOLVED]Okular crashes when highlighting text (poppler)

Just got the update for poppler. All works fine now!

Closed!

Last edited by markus@sl30 (2018-11-02 10:06:57)


Arch Linux @ Thinkpad X1 Carbon Gen 5

Offline

Board footer

Powered by FluxBB