[okular] [Bug 410844] Okular segfault
Tobias Deiminger
bugzilla_noreply at kde.org
Wed Aug 21 21:52:01 BST 2019
https://bugs.kde.org/show_bug.cgi?id=410844
Tobias Deiminger <haxtibal at posteo.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|REPORTED |CONFIRMED
--- Comment #11 from Tobias Deiminger <haxtibal at posteo.de> ---
I was able to reproduce the issue on a KDE neon User Edition 5.16. As assumed
in comment 10, the crash is caused by a negative page index.
The negative page value eventually stems from the freshly generated
MobiDocument. If we iterate over all QTextBlocks in the MobiDocument, and check
newDocument->documentLayout()->blockBoundingRect(nth_QTextBlock), we see there
are lots of blocks with negative top and bottom values, like left = 20.000000,
top = -33553713.000000, right = 580, bottom = -33553695.000000.
This is not the case if I do the same on my "normal" development machine, where
all top/bottom values are positive for the same .mobi file.
The Okular mobi generator seems mostly unchanged for years. Therefore I'd
suspect an upstream regression. KDE Neon ships libqmobipocket.so.2.0.0 from
kdegraphics-mobipocket 19.08.0, while on my dev machine I have it from
kdegraphics-mobipocket 19.04.0.
I'm going to open a merge request to catch negative page indexes, and will
further investigate in what's going on upstream.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list