Bug 383675 - highlight makes text disappear
Summary: highlight makes text disappear
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-18 20:08 UTC by Germano Massullo
Modified: 2018-04-25 10:00 UTC (History)
3 users (show)

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


Attachments
screenshot (65.62 KB, image/jpeg)
2017-08-18 20:08 UTC, Germano Massullo
Details
screenshot2 (19.39 KB, image/jpeg)
2017-08-26 21:31 UTC, Germano Massullo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Germano Massullo 2017-08-18 20:08:29 UTC
Created attachment 107355 [details]
screenshot

Highlighting a text will make disappearing the entire text of PDF file. To resume the text you have to erase the highlights and refresh.
See attachment

okular-16.12.3-1.fc26.x86_64
Comment 1 Albert Astals Cid 2017-08-18 21:25:39 UTC
We're going to need that pdf file
Comment 2 Germano Massullo 2017-08-19 07:41:29 UTC
(In reply to Albert Astals Cid from comment #1)
> We're going to need that pdf file

Unfortunately I cannot share it
Comment 3 Yuri Chornoivan 2017-08-19 07:56:58 UTC
(In reply to Germano Massullo from comment #2)
> (In reply to Albert Astals Cid from comment #1)
> > We're going to need that pdf file
> 
> Unfortunately I cannot share it

Ok. Does it happen for every file or just a particular file you cannot share?

Is there any way to produce some other file with this issue so you can share it?

What is the way the faulty file has been produced (File -> Properties)?

Thanks in advance for your answers.
Comment 4 Germano Massullo 2017-08-26 21:31:19 UTC
Created attachment 107537 [details]
screenshot2

(In reply to Yuri Chornoivan from comment #3)
> 
> Ok. Does it happen for every file or just a particular file you cannot share?

For this file. Instead on other files I am getting invisible highlights.

> Is there any way to produce some other file with this issue so you can share
> it?

I will send you the file by e-mail, so it will not shared publicly

> What is the way the faulty file has been produced (File -> Properties)?

See attachment
Comment 5 Germano Massullo 2017-08-26 21:34:41 UTC
Moreover, when I try to erase the strange highlight/revision, Okular crashes with the following crashreport


[user@machine ~]$ gdb okular
GNU gdb (GDB) Fedora 8.0-22.fc26
Copyright (C) 2017 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-redhat-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...Reading symbols from /usr/lib/debug/usr/bin/okular.debug...done.
done.
(gdb) run
Starting program: /usr/bin/okular 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fd2706ee700 (LWP 17423)]
[New Thread 0x7fd2609ed700 (LWP 17424)]
[New Thread 0x7fd24c107700 (LWP 17436)]
[New Thread 0x7fd24b7c5700 (LWP 17437)]
[New Thread 0x7fd24adbf700 (LWP 17438)]
[New Thread 0x7fd24a5be700 (LWP 17439)]
[New Thread 0x7fd249dbd700 (LWP 17440)]
[New Thread 0x7fd2495bc700 (LWP 17441)]
[New Thread 0x7fd246714700 (LWP 17472)]
[New Thread 0x7fd245f13700 (LWP 17473)]
[Thread 0x7fd246714700 (LWP 17472) exited]
[New Thread 0x7fd246714700 (LWP 17474)]
[Thread 0x7fd245f13700 (LWP 17473) exited]
[Thread 0x7fd246714700 (LWP 17474) exited]
[New Thread 0x7fd246714700 (LWP 17475)]
[New Thread 0x7fd245f13700 (LWP 17476)]
[Thread 0x7fd246714700 (LWP 17475) exited]
[Thread 0x7fd245f13700 (LWP 17476) exited]
[New Thread 0x7fd245f13700 (LWP 17477)]
[New Thread 0x7fd246714700 (LWP 17478)]
[Thread 0x7fd245f13700 (LWP 17477) exited]
[Thread 0x7fd246714700 (LWP 17478) exited]
[New Thread 0x7fd246714700 (LWP 17479)]
[Thread 0x7fd246714700 (LWP 17479) exited]
Illegal icon group:  7
[New Thread 0x7fd246714700 (LWP 17481)]
[Thread 0x7fd246714700 (LWP 17481) exited]
[New Thread 0x7fd246714700 (LWP 17490)]
okular: Annot.cc:1898: int Annot::getRotation() const: Assertion `pageobj != NULL' failed.

Thread 19 "Okular::PixmapG" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fd246714700 (LWP 17490)]
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51      }
Missing separate debuginfos, use: dnf debuginfo-install compat-openssl10-1.0.2j-6.fc26.x86_64
(gdb) thread apply all backtrac

Thread 19 (Thread 0x7fd246714700 (LWP 17490)):
#0  0x00007fd2794ef69b in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fd2794f14a0 in __GI_abort () at abort.c:89
#2  0x00007fd2794e7d5a in __assert_fail_base (fmt=0x7fd2796514a8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7fd247dd5624 "pageobj != NULL", file=file@entry=0x7fd247dd55cb "Annot.cc", line=line@entry=1898, function=function@entry=0x7fd247dd9590 <Annot::getRotation() const::__PRETTY_FUNCTION__> "int Annot::getRotation() const") at assert.c:92
#3  0x00007fd2794e7dd2 in __GI___assert_fail (assertion=assertion@entry=0x7fd247dd5624 "pageobj != NULL", file=file@entry=0x7fd247dd55cb "Annot.cc", line=line@entry=1898, function=function@entry=0x7fd247dd9590 <Annot::getRotation() const::__PRETTY_FUNCTION__> "int Annot::getRotation() const") at assert.c:101
#4  0x00007fd247cc92a1 in Annot::getRotation() const (this=0x102ffc2c0) at Annot.cc:1898
#5  0x00007fd247cc9af3 in AnnotTextMarkup::draw(Gfx*, bool) (this=0x102ffc2c0, gfx=0x7fd240004e00, printing=<optimized out>) at Annot.cc:3917
#6  0x00007fd247d55627 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) (this=0x1008b3190, out=0x7fd2467139f0, out@entry=0x130, hDPI=112.47058823529412, hDPI@entry=0, vDPI=112.54545454545453, 
    vDPI@entry=2.1219957909652723e-314, rotate=0, rotate@entry=1, useMediaBox=useMediaBox@entry=13, crop=crop@entry=true, sliceX=-1, 
    sliceX@entry=32722, sliceY=<optimized out>, sliceW=<optimized out>, sliceH=<optimized out>, printing=false, abortCheckCbk=<optimized out>, abortCheckCbkData=<optimized out>, annotDisplayDecideCbk=<optimized out>, annotDisplayDecideCbkData=<optimized out>, copyXRef=true) at Page.cc:622
#7  0x00007fd247d59df9 in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) (this=<optimized out>, out=0x130, out@entry=0x7fd2467139f0, page=-1382767675, hDPI=0, 
    hDPI@entry=112.47058823529412, vDPI=2.1219957909652723e-314, vDPI@entry=112.54545454545453, rotate=1, 
    rotate@entry=0, useMediaBox=useMediaBox@entry=false, crop=crop@entry=true, printing=<optimized out>, sliceX=<optimized out>, sliceY=<optimized out>, sliceW=<optimized out>, sliceH=<optimized out>, abortCheckCbk=<optimized out>, abortCheckCbkData=<optimized out>, annotDisplayDecideCbk=<optimized out>, annotDisplayDecideCbkData=<optimized out>, copyXRef=true) at PDFDoc.cc:523
#8  0x00007fd2480d4f97 in Poppler::Page::renderToImage(double, double, int, int, int, int, Poppler::Page::Rotation) const (this=this@entry=0x7fd24000ef40, xres=xres@---Type <return> to continue, or q <return> to quit---
entry=112.47058823529412, yres=yres@entry=112.54545454545453, x=x@entry=-1, y=y@entry=-1, w=w@entry=-1, h=h@entry=-1, rotate=Poppler::Page::Rotate0)
    at poppler-page.cc:367
#9  0x00007fd248383536 in PDFGenerator::image(Okular::PixmapRequest*) (this=0x10087cf50, request=0x100966eb0)
    at /usr/src/debug/okular-16.12.3/generators/poppler/generator_pdf.cpp:919
#10 0x00007fd256a56674 in Okular::PixmapGenerationThread::run() (this=0x10087e480) at /usr/src/debug/okular-16.12.3/core/generator_p.cpp:64
#11 0x00007fd27a1e1c9e in QThreadPrivate::start(void*) (arg=0x10087e480) at thread/qthread_unix.cpp:368
#12 0x00007fd2782cb36d in start_thread (arg=0x7fd246714700) at pthread_create.c:456
#13 0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 9 (Thread 0x7fd2495bc700 (LWP 17441)):
#0  0x00007fd2782d181b in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x100703970) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fd2782d181b in __pthread_cond_wait_common (abstime=0x0, mutex=0x100703920, cond=0x100703948) at pthread_cond_wait.c:502
#2  0x00007fd2782d181b in __pthread_cond_wait (cond=0x100703948, mutex=0x100703920) at pthread_cond_wait.c:655
#3  0x00007fd24fdad6ab in cnd_wait (mtx=0x100703920, cond=0x100703948) at ../../include/c11/threads_posix.h:159
#4  0x00007fd24fdad6ab in util_queue_thread_func (input=input@entry=0x100703eb0) at u_queue.c:158
#5  0x00007fd24fdad3e7 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd2495bc700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 8 (Thread 0x7fd249dbd700 (LWP 17440)):
#0  0x00007fd2782d181b in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x100703970) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fd2782d181b in __pthread_cond_wait_common (abstime=0x0, mutex=0x100703920, cond=0x100703948) at pthread_cond_wait.c:502
#2  0x00007fd2782d181b in __pthread_cond_wait (cond=0x100703948, mutex=0x100703920) at pthread_cond_wait.c:655
---Type <return> to continue, or q <return> to quit---
#3  0x00007fd24fdad6ab in cnd_wait (mtx=0x100703920, cond=0x100703948) at ../../include/c11/threads_posix.h:159
#4  0x00007fd24fdad6ab in util_queue_thread_func (input=input@entry=0x100703eb0) at u_queue.c:158
#5  0x00007fd24fdad3e7 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd249dbd700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 7 (Thread 0x7fd24a5be700 (LWP 17439)):
#0  0x00007fd2782d181b in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x100703970) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fd2782d181b in __pthread_cond_wait_common (abstime=0x0, mutex=0x100703920, cond=0x100703948) at pthread_cond_wait.c:502
#2  0x00007fd2782d181b in __pthread_cond_wait (cond=0x100703948, mutex=0x100703920) at pthread_cond_wait.c:655
#3  0x00007fd24fdad6ab in cnd_wait (mtx=0x100703920, cond=0x100703948) at ../../include/c11/threads_posix.h:159
#4  0x00007fd24fdad6ab in util_queue_thread_func (input=input@entry=0x100703eb0) at u_queue.c:158
#5  0x00007fd24fdad3e7 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd24a5be700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 6 (Thread 0x7fd24adbf700 (LWP 17438)):
#0  0x00007fd2782d181b in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x100703970) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fd2782d181b in __pthread_cond_wait_common (abstime=0x0, mutex=0x100703920, cond=0x100703948) at pthread_cond_wait.c:502
#2  0x00007fd2782d181b in __pthread_cond_wait (cond=0x100703948, mutex=0x100703920) at pthread_cond_wait.c:655
#3  0x00007fd24fdad6ab in cnd_wait (mtx=0x100703920, cond=0x100703948) at ../../include/c11/threads_posix.h:159
#4  0x00007fd24fdad6ab in util_queue_thread_func (input=input@entry=0x100703eb0) at u_queue.c:158
#5  0x00007fd24fdad3e7 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
---Type <return> to continue, or q <return> to quit---
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd24adbf700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 5 (Thread 0x7fd24b7c5700 (LWP 17437)):
#0  0x00007fd2782d181b in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1006ff7a0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fd2782d181b in __pthread_cond_wait_common (abstime=0x0, mutex=0x1006ff750, cond=0x1006ff778) at pthread_cond_wait.c:502
#2  0x00007fd2782d181b in __pthread_cond_wait (cond=0x1006ff778, mutex=0x1006ff750) at pthread_cond_wait.c:655
#3  0x00007fd24fdad6ab in cnd_wait (mtx=0x1006ff750, cond=0x1006ff778) at ../../include/c11/threads_posix.h:159
#4  0x00007fd24fdad6ab in util_queue_thread_func (input=input@entry=0x1006ff5c0) at u_queue.c:158
#5  0x00007fd24fdad3e7 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd24b7c5700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7fd24c107700 (LWP 17436)):
#0  0x00007fd2782d181b in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x1006fec90) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  0x00007fd2782d181b in __pthread_cond_wait_common (abstime=0x0, mutex=0x1006fec40, cond=0x1006fec68) at pthread_cond_wait.c:502
#2  0x00007fd2782d181b in __pthread_cond_wait (cond=0x1006fec68, mutex=0x1006fec40) at pthread_cond_wait.c:655
#3  0x00007fd24fdad6ab in cnd_wait (mtx=0x1006fec40, cond=0x1006fec68) at ../../include/c11/threads_posix.h:159
#4  0x00007fd24fdad6ab in util_queue_thread_func (input=input@entry=0x1006fde00) at u_queue.c:158
#5  0x00007fd24fdad3e7 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd24c107700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

---Type <return> to continue, or q <return> to quit---
Thread 3 (Thread 0x7fd2609ed700 (LWP 17424)):
#0  0x00007fd2795bdacd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fd276a13c97 in poll (__timeout=-1, __nfds=1, __fds=0x7fd2609ecbf0) at /usr/include/bits/poll2.h:46
#2  0x00007fd276a13c97 in _xcb_conn_wait (c=c@entry=0x10027fd40, cond=cond@entry=0x10027fd80, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:479
#3  0x00007fd276a15a8a in xcb_wait_for_event (c=0x10027fd40) at xcb_in.c:693
#4  0x00007fd26fddbba9 in QXcbEventReader::run() (this=0x100292d90) at qxcbconnection.cpp:1343
#5  0x00007fd27a1e1c9e in QThreadPrivate::start(void*) (arg=0x100292d90) at thread/qthread_unix.cpp:368
#6  0x00007fd2782cb36d in start_thread (arg=0x7fd2609ed700) at pthread_create.c:456
#7  0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7fd2706ee700 (LWP 17423)):
#0  0x00007fd2795bdacd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fd272e67569 in g_main_context_poll (priority=<optimized out>, n_fds=3, fds=0x7fd268003390, timeout=<optimized out>, context=0x7fd268001600)
    at gmain.c:4271
#2  0x00007fd272e67569 in g_main_context_iterate (context=context@entry=0x7fd268001600, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at gmain.c:3967
#3  0x00007fd272e6767c in g_main_context_iteration (context=0x7fd268001600, may_block=may_block@entry=1) at gmain.c:4033
#4  0x00007fd27a3d4e4f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fd2680008c0, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007fd27a38560a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fd2706edcb0, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#6  0x00007fd27a1dd99a in QThread::exec() (this=this@entry=0x7fd27a653060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at thread/qthread.cpp:507
---Type <return> to continue, or q <return> to quit---
#7  0x00007fd27a5e0a39 in QDBusConnectionManager::run() (this=0x7fd27a653060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at qdbusconnection.cpp:178
#8  0x00007fd27a1e1c9e in QThreadPrivate::start(void*) (arg=0x7fd27a653060 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>)
    at thread/qthread_unix.cpp:368
#9  0x00007fd2782cb36d in start_thread (arg=0x7fd2706ee700) at pthread_create.c:456
#10 0x00007fd2795c9bbf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7fd2706f28c0 (LWP 17414)):
#0  0x00007fd27a258632 in ucstricmp(ushort const*, ushort const*, ushort const*, ushort const*) (a=0x10057e478, ae=0x10057e4a8, b=0x10333a788, be=0x10333a7a4)
    at tools/qstring.cpp:380
#1  0x00007fd27a7fa8c7 in QtFontFamily::matchesFamilyName(QString const&) const (this=0x10057e5e0, familyName=...) at text/qfontdatabase.cpp:411
#2  0x00007fd27a802b1e in fallbacksForFamily(QString const&, QFont::Style, QFont::StyleHint, QChar::Script) (family=..., style=<optimized out>, styleHint=<optimized out>, script=script@entry=QChar::Script_Common) at text/qfontdatabase.cpp:865
#3  0x00007fd27a803b51 in QFontDatabase::findFont(QFontDef const&, int) (request=..., script=script@entry=2) at text/qfontdatabase.cpp:2689
#4  0x00007fd27a8043e7 in QFontDatabase::load(QFontPrivate const*, int) (d=d@entry=0x10332aa60, script=script@entry=2) at text/qfontdatabase.cpp:2792
#5  0x00007fd27a7dad43 in QFontPrivate::engineForScript(int) const (this=0x10332aa60, script=script@entry=2) at text/qfont.cpp:217
#6  0x00007fd27a80b018 in QTextEngine::fontEngine(QScriptItem const&, QFixed*, QFixed*, QFixed*) const (this=this@entry=0x102ff0460, si=..., ascent=ascent@entry=0x102ffc5a0, descent=descent@entry=0x102ffc59c, leading=leading@entry=0x102ffc5a4) at text/qtextengine.cpp:2071
#7  0x00007fd27a80bfec in QTextEngine::shapeText(int) const (this=this@entry=0x102ff0460, item=item@entry=1) at text/qtextengine.cpp:1000
#8  0x00007fd27a80cbdf in QTextEngine::shape(int) const (this=this@entry=0x102ff0460, item=item@entry=1) at text/qtextengine.cpp:1534
#9  0x00007fd27a81f08c in QTextLine::layout_helper(int) (this=this@entry=0x7fffffffa2a0, maxGlyphs=maxGlyphs@entry=2147483647) at text/qtextlayout.cpp:1826
#10 0x00007fd27a81fc90 in QTextLine::setLineWidth(double) (this=0x7fffffffa2a0, width=<optimized out>) at text/qtextlayout.cpp:1591
#11 0x00007fd27a860065 in QTextDocumentLayoutPrivate::layoutBlock(QTextBlock const&, int, QTextBlockFormat const&, QTextLayoutStruct*, int, int, QTextBlockFormat con---Type <return> to continue, or q <return> to quit---
st*) (this=this@entry=0x103087200, bl=..., blockPosition=blockPosition@entry=15, blockFormat=..., layoutStruct=layoutStruct@entry=0x7fffffffa570, layoutFrom=layoutFrom@entry=0, layoutTo=2147483647, previousBlockFormat=0x7fffffffa3e0) at text/qtextdocumentlayout.cpp:2678
#12 0x00007fd27a860d6c in QTextDocumentLayoutPrivate::layoutFlow(QTextFrame::iterator, QTextLayoutStruct*, int, int, QFixed) (this=this@entry=0x103087200, it=..., layoutStruct=layoutStruct@entry=0x7fffffffa570, layoutFrom=layoutFrom@entry=0, layoutTo=layoutTo@entry=2147483647, width=..., width@entry=...)
    at text/qtextdocumentlayout.cpp:2462
#13 0x00007fd27a8653fd in QTextDocumentLayoutPrivate::layoutFrame(QTextFrame*, int, int, QFixed, QFixed, QFixed) (this=this@entry=0x103087200, f=f@entry=0x102fca8a0, layoutFrom=layoutFrom@entry=0, layoutTo=layoutTo@entry=2147483647, frameWidth=..., frameWidth@entry=..., frameHeight=..., parentY=...)
    at text/qtextdocumentlayout.cpp:2203
#14 0x00007fd27a8658e9 in QTextDocumentLayoutPrivate::layoutFrame(QTextFrame*, int, int, QFixed) (this=this@entry=0x103087200, f=f@entry=0x102fca8a0, layoutFrom=layoutFrom@entry=0, layoutTo=layoutTo@entry=2147483647, parentY=..., parentY@entry=...) at text/qtextdocumentlayout.cpp:2092
#15 0x00007fd27a866018 in QTextDocumentLayout::doLayout(int, int, int) (this=0x102fc8030, from=0, oldLength=oldLength@entry=0, length=2147483647)
    at text/qtextdocumentlayout.cpp:3002
#16 0x00007fd27a8660c8 in QTextDocumentLayoutPrivate::ensureLayoutedByPosition(int) const (this=0x103087200, position=1000) at text/qtextdocumentlayout.cpp:3174
#17 0x00007fd27a8667ed in QTextDocumentLayoutPrivate::ensureLayoutedByPosition(int) const (position=<optimized out>, this=0x103087200)
    at text/qtextdocumentlayout.cpp:3182
#18 0x00007fd27a8667ed in QTextDocumentLayoutPrivate::layoutStep() const (this=this@entry=0x103087200) at text/qtextdocumentlayout.cpp:3180
#19 0x00007fd27a867267 in QTextDocumentLayout::documentChanged(int, int, int) (this=0x102fc8030, from=0, oldLength=0, length=91)
    at text/qtextdocumentlayout.cpp:2959
#20 0x00007fd27a833156 in QTextDocument::documentLayout() const (this=this@entry=0x7fffffffa8e0) at text/qtextdocument.cpp:1104
#21 0x00007fd27a8331b9 in QTextDocument::size() const (this=this@entry=0x7fffffffa8e0) at text/qtextdocument.cpp:844
#22 0x00007fd256dd98c4 in TreeView::paintEvent(QPaintEvent*) (this=0x100489ed0, event=<optimized out>) at /usr/src/debug/okular-16.12.3/ui/side_reviews.cpp:68
#23 0x00007fd27aca2e50 in QWidget::event(QEvent*) (this=this@entry=0x100489ed0, event=event@entry=0x7fffffffae70) at kernel/qwidget.cpp:9161
#24 0x00007fd27ad861be in QFrame::event(QEvent*) (this=0x100489ed0, e=0x7fffffffae70) at widgets/qframe.cpp:550
---Type <return> to continue, or q <return> to quit---
#25 0x00007fd27aead693 in QAbstractItemView::viewportEvent(QEvent*) (this=this@entry=0x100489ed0, event=event@entry=0x7fffffffae70)
    at itemviews/qabstractitemview.cpp:1747
#26 0x00007fd27aeecbac in QTreeView::viewportEvent(QEvent*) (this=0x100489ed0, event=0x7fffffffae70) at itemviews/qtreeview.cpp:1320
#27 0x00007fd27a3863bc in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) (receiver=receiver@entry=0x1003e4ba0, event=event@entry=0x7fffffffae70) at kernel/qcoreapplication.cpp:1099
#28 0x00007fd27ac5c5b5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x1003e4ba0, e=0x7fffffffae70)
    at kernel/qapplication.cpp:3795
#29 0x00007fd27ac63c74 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffd5e0, receiver=0x1003e4ba0, e=0x7fffffffae70) at kernel/qapplication.cpp:3556
#30 0x00007fd27a386627 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=receiver@entry=0x1003e4ba0, event=event@entry=0x7fffffffae70)
    at kernel/qcoreapplication.cpp:988
#31 0x00007fd27ac9be0a in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) (event=0x7fffffffae70, receiver=<optimized out>)
    at ../../src/corelib/kernel/qcoreapplication.h:234
#32 0x00007fd27ac9be0a in QWidgetPrivate::sendPaintEvent(QRegion const&) (this=this@entry=0x10048a080, toBePainted=...) at kernel/qwidget.cpp:5705
#33 0x00007fd27ac9c3ca in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10048a080, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5645
#34 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1004fce60, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#35 0x00007fd27ac9d1a9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1004fce60, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5826
#36 0x00007fd27ac9d1a9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBa---Type <return> to continue, or q <return> to quit---
ckingStore*) (this=this@entry=0x1004fce60, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5826
#37 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1004fce60, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#38 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1003e49d0, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#39 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1003e49d0, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#40 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x100364740, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#41 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x100364740, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#42 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10037c830, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#43 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10037c830, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
---Type <return> to continue, or q <return> to quit---
#44 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1003861e0, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#45 0x00007fd27ac9d1a9 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1003861e0, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5826
#46 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1003861e0, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#47 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x100373850, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#48 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x100373850, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#49 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10067f910, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#50 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10067f910, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#51 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10067f6c0, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backing---Type <return> to continue, or q <return> to quit---
Store=0x1006a6b20) at kernel/qwidget.cpp:5840
#52 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x10067f6c0, pdev=pdev@entry=0x1002ec490, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>)
    at kernel/qwidget.cpp:5696
#53 0x00007fd27ac9d020 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1002fe640, pdev=pdev@entry=0x1002ec490, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x1006a6b20) at kernel/qwidget.cpp:5840
#54 0x00007fd27ac9bfd6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) (this=this@entry=0x1002fe640, pdev=0x1002ec490, rgn=..., offset=..., flags=flags@entry=5, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>) at kernel/qwidget.cpp:5696
#55 0x00007fd27ac6be03 in QWidgetBackingStore::doSync() (this=this@entry=0x1006a6b20) at kernel/qwidgetbackingstore.cpp:1400
#56 0x00007fd27ac6c02d in QWidgetBackingStore::sync() (this=0x1006a6b20) at kernel/qwidgetbackingstore.cpp:1179
#57 0x00007fd27ac8b1af in QWidgetPrivate::syncBackingStore() (this=0x1002fe640) at kernel/qwidget.cpp:1962
#58 0x00007fd27aca2ef8 in QWidget::event(QEvent*) (this=this@entry=0x1002f71c0, event=event@entry=0x1007c6a50) at kernel/qwidget.cpp:9100
#59 0x00007fd27ad9cf2b in QMainWindow::event(QEvent*) (this=this@entry=0x1002f71c0, event=event@entry=0x1007c6a50) at widgets/qmainwindow.cpp:1543
#60 0x00007fd27d0d4a57 in KMainWindow::event(QEvent*) (this=this@entry=0x1002f71c0, ev=ev@entry=0x1007c6a50)
    at /usr/src/debug/kxmlgui-5.36.0/src/kmainwindow.cpp:867
#61 0x00007fd27d119a65 in KXmlGuiWindow::event(QEvent*) (this=0x1002f71c0, ev=0x1007c6a50) at /usr/src/debug/kxmlgui-5.36.0/src/kxmlguiwindow.cpp:119
#62 0x00007fd27ac5c5dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x1002f71c0, e=0x1007c6a50)
    at kernel/qapplication.cpp:3799
#63 0x00007fd27ac63c74 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffd5e0, receiver=0x1002f71c0, e=0x1007c6a50) at kernel/qapplication.cpp:3556
#64 0x00007fd27a386627 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x1002f71c0, event=event@entry=0x1007c6a50)
    at kernel/qcoreapplication.cpp:988
#65 0x00007fd27a38885b in QCoreApplication::sendEvent(QObject*, QEvent*) (event=0x1007c6a50, receiver=<optimized out>) at kernel/qcoreapplication.h:231
---Type <return> to continue, or q <return> to quit---
#66 0x00007fd27a38885b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x100239050) at kernel/qcoreapplication.cpp:1649
#67 0x00007fd27a388d68 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0)
    at kernel/qcoreapplication.cpp:1503
#68 0x00007fd27a3d4dd3 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x1002c8be0) at kernel/qeventdispatcher_glib.cpp:276
#69 0x00007fd272e67247 in g_main_dispatch (context=0x7fd2680016f0) at gmain.c:3234
#70 0x00007fd272e67247 in g_main_context_dispatch (context=context@entry=0x7fd2680016f0) at gmain.c:3899
#71 0x00007fd272e675e8 in g_main_context_iterate (context=context@entry=0x7fd2680016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at gmain.c:3972
#72 0x00007fd272e6767c in g_main_context_iteration (context=0x7fd2680016f0, may_block=may_block@entry=1) at gmain.c:4033
#73 0x00007fd27a3d4e4f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x1002d8e70, flags=...)
    at kernel/qeventdispatcher_glib.cpp:423
#74 0x00007fd27a38560a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffd4c0, flags=..., flags@entry=...)
    at kernel/qeventloop.cpp:212
#75 0x00007fd27a38d27c in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1261
#76 0x000000010000bbdd in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-16.12.3/shell/main.cpp:85
(gdb)
Comment 6 Yuri Chornoivan 2017-08-27 06:02:00 UTC
I can confirm the bug on Okular 1.0.3. On my system, the bug for the sent file (produced in Adobe InDesign CS 6, Adobe PDF Library 10.0.1, inbuilt fonts with subsetting) can also be seen in all poppler-based viewers, qpdfview 0.4.16, evince 3.24.1 (all poppler 0.52-based).

After extraction of some pages with PDF-Shuffler, highlighting for the extracted pages works as expected.
Comment 7 Germano Massullo 2018-04-25 10:00:01 UTC
The bug is no longer happening