Bug 435163 - crash on highlighter usage only after save
Summary: crash on highlighter usage only after save
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.2
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-03-30 20:37 UTC by e.sodja816
Modified: 2022-07-06 04:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
updated backtrace (4.11 KB, text/plain)
2021-03-31 14:44 UTC, e.sodja816
Details
Valgrind output (7.42 KB, text/plain)
2021-04-01 16:44 UTC, e.sodja816
Details
New crash information added by DrKonqi (4.34 KB, text/plain)
2022-06-02 16:25 UTC, Fushan Wen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description e.sodja816 2021-03-30 20:37:10 UTC
Application: okular (1.11.2)

Qt Version: 5.14.2
Frameworks Version: 5.74.0
Operating System: Linux 5.8.0-48-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.10

-- Information about the crash:
- What I was doing when the application crashed:

Highlighting a pdf document directly after saving with ctrl+s, as soon as I clicked it crashed. It now happens every time

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  0x00007efcf85d6524 in Okular::Page::rotation() const () from /usr/lib/x86_64-linux-gnu/libOkular5Core.so.9
#5  0x00007efcf8756a81 in PageView::textSelectionForItem (this=0x561e4a353000, item=0x561e4aedb270, startPoint=..., endPoint=...) at ./ui/pageview.cpp:3608
#6  0x00007efcf874e833 in TextSelectorEngine::event (this=this@entry=0x561e4b136840, type=type@entry=AnnotatorEngine::Move, button=button@entry=AnnotatorEngine::Left, nX=nX@entry=0, nY=nY@entry=1, xScale=67371010, yScale=-200998917) at ./ui/annotationtools.h:75
#7  0x00007efcf8748a9d in PageViewAnnotator::performRouteMouseOrTabletEvent (this=this@entry=0x561e4a1c8cc0, eventType=AnnotatorEngine::Move, button=AnnotatorEngine::Left, modifiers=..., pos=..., item=item@entry=0x561e4ab6c820) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:269
#8  0x00007efcf8748e3d in PageViewAnnotator::routeMouseEvent (this=0x561e4a1c8cc0, e=0x7ffcbc846f70, item=0x561e4ab6c820) at /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:128
#9  0x00007efd008a430e in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007efd0094d2a2 in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007efcffd22ed3 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007efd00863002 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007efd00868841 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007efcffd231ca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007efd0086773a in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007efd008bcf32 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007efd008bfd8e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007efd00863013 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007efcffd231ca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007efd0017e48b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#21 0x00007efd001542bb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007efcfbb3635e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#23 0x00007efcfe48d62b in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007efcfe48d8d8 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007efcfe48d9a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007efcffd7a843 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007efcffd21a4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007efcffd29fc6 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x0000561e483a4d7a in main (argc=<optimized out>, argv=0x7ffcbc847600) at ./shell/main.cpp:109
[Inferior 1 (process 36794) detached]

Possible duplicates by query: bug 426658, bug 324747, bug 323669, bug 192293.

Reported using DrKonqi
Comment 1 Albert Astals Cid 2021-03-30 22:16:02 UTC
Can you please follow the instructions from https://wiki.ubuntu.com/Debug%20Symbol%20Packages and install 
 libqt5core5a-dbgsym libqt5widgets5-dbgsym libokular5core9-dbgsym
and then attach an updated backtrace that you get when it crashes that will contain more information?
Comment 2 e.sodja816 2021-03-31 14:44:22 UTC
Created attachment 137200 [details]
updated backtrace
Comment 3 Albert Astals Cid 2021-03-31 22:33:27 UTC
Does this happen with every single file or just wiht one in particular?

If just one, can you share it?

If not can you run 
  valgrind okular myfile.pdf
and do what you do to make okular crash and then attach the output of valgrind?
Comment 4 e.sodja816 2021-04-01 16:44:47 UTC
Created attachment 137238 [details]
Valgrind output

With other documents (smaller ones, ~1.1MB) it reloads before highlight annotations are saved (asks if I would like to save changes as it spontaneously closes the document and reloads it), but not every time, and hasn't crashed all the way so far. With the original document (~2.9MB) it tries to reload after highlighting but crashes without the option to save. This output is from valgrind on smaller file.
Comment 5 Albert Astals Cid 2021-04-03 20:43:08 UTC
There's nothing really there that is useful, without the document so we can try to reproduce and figure it out what's happening there's nothing we can do.
Comment 6 Bug Janitor Service 2021-04-18 04:33:17 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2021-05-03 04:33:36 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 8 Fushan Wen 2022-06-02 16:25:05 UTC
Created attachment 149408 [details]
New crash information added by DrKonqi

okular (22.07.70) using Qt 5.15.2

1. Highlight a sentence
2. Save
3. Highlight another sentence
4. Crash

-- Backtrace (Reduced):
#6  0x00007ffb33334a80 in Okular::Page::number() const () from /lib64/libOkular5Core.so.10
[...]
#8  0x00007ffb3f802cde in QWidget::event (this=this@entry=0x562d25e6bd30, event=event@entry=0x7fff5109fe50) at kernel/qwidget.cpp:9020
#9  0x00007ffb3f8af5fe in QFrame::event (this=0x562d25e6bd30, e=0x7fff5109fe50) at widgets/qframe.cpp:550
#10 0x00007ffb3eb7c8c2 in QCoreApplicationPrivate::sendThroughObjectEventFilters (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.cpp:1190
#11 QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x562d25f08970, event=event@entry=0x7fff5109fe50) at kernel/qcoreapplication.cpp:1179
Comment 9 Albert Astals Cid 2022-06-06 09:10:11 UTC
Still nothing really useful in that backtrace

#6  0x00007ffb33334a80 in Okular::Page::number() const () from /lib64/libOkular5Core.so.10
#7  0x00007ffb334af496 in ?? () from /usr/lib64/qt5/plugins/okularpart.so

Should not be ?? but actual information.

Please install debug symbols and try to reproduce again.
Comment 10 Bug Janitor Service 2022-06-21 04:35:26 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2022-07-06 04:37:02 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!