Bug 409462 - Crash when right-clicking on an active button
Summary: Crash when right-clicking on an active button
Status: RESOLVED DUPLICATE of bug 408849
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.6.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-07-03 14:04 UTC by David
Modified: 2019-07-03 21:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David 2019-07-03 14:04:06 UTC
Application: okular (1.6.2)

Qt Version: 5.11.3
Frameworks Version: 5.58.0
Operating System: Linux 5.1.11-200.fc29.x86_64 x86_64
Distribution: "Fedora release 29 (Twenty Nine)"

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

Right click on the enable/disable buttons on the margin note in page 4 of this document triggers the crash:
http://ctan.uib.no/macros/latex2e/contrib/microtype/microtype.pdf

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7febb2e4e940 (LWP 14041))]

Thread 3 (Thread 0x7feba4ce0700 (LWP 14043)):
#0  0x00007febb5fc0fe4 in read () at /usr/lib64/libc.so.6
#1  0x00007febb3506e90 in  () at /usr/lib64/libglib-2.0.so.0
#2  0x00007febb34bfe9b in g_main_context_check () at /usr/lib64/libglib-2.0.so.0
#3  0x00007febb34c0350 in  () at /usr/lib64/libglib-2.0.so.0
#4  0x00007febb34c04d0 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#5  0x00007febb667485b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#6  0x00007febb66233db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#7  0x00007febb648ad36 in QThread::exec() () at /usr/lib64/libQt5Core.so.5
#8  0x00007febb68caf89 in  () at /usr/lib64/libQt5DBus.so.5
#9  0x00007febb649419b in  () at /usr/lib64/libQt5Core.so.5
#10 0x00007febb5cc658e in start_thread () at /usr/lib64/libpthread.so.0
#11 0x00007febb5fd0713 in clone () at /usr/lib64/libc.so.6

Thread 2 (Thread 0x7feba5b87700 (LWP 14042)):
#0  0x00007febb5fc5481 in poll () at /usr/lib64/libc.so.6
#1  0x00007febb570b39f in poll (__timeout=-1, __nfds=1, __fds=0x7feba5b86b78) at /usr/include/bits/poll2.h:46
#2  0x00007febb570b39f in _xcb_conn_wait (c=c@entry=0x55de8241b520, cond=cond@entry=0x55de8241b560, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:479
#3  0x00007febb570d01a in xcb_wait_for_event (c=0x55de8241b520) at xcb_in.c:697
#4  0x00007feba5d13459 in  () at /usr/lib64/libQt5XcbQpa.so.5
#5  0x00007febb649419b in  () at /usr/lib64/libQt5Core.so.5
#6  0x00007febb5cc658e in start_thread () at /usr/lib64/libpthread.so.0
#7  0x00007febb5fd0713 in clone () at /usr/lib64/libc.so.6

Thread 1 (Thread 0x7febb2e4e940 (LWP 14041)):
[KCrash Handler]
#6  0x00007feba44088e2 in  () at /usr/lib64/qt5/plugins/okularpart.so
#7  0x00007feba441bb89 in  () at /usr/lib64/qt5/plugins/okularpart.so
#8  0x00007febb6ff3108 in QWidget::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#9  0x00007febb7097b02 in QFrame::event(QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#10 0x00007feba441c769 in  () at /usr/lib64/qt5/plugins/okularpart.so
#11 0x00007febb66242de in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#12 0x00007febb6fb4295 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#13 0x00007febb6fbba48 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#14 0x00007febb6624496 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#15 0x00007febb6fbad7d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () at /usr/lib64/libQt5Widgets.so.5
#16 0x00007febb700df68 in  () at /usr/lib64/libQt5Widgets.so.5
#17 0x00007febb7010b0e in  () at /usr/lib64/libQt5Widgets.so.5
#18 0x00007febb6fb42a5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#19 0x00007febb6fbb800 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/libQt5Widgets.so.5
#20 0x00007febb6624496 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt5Core.so.5
#21 0x00007febb6a60853 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib64/libQt5Gui.so.5
#22 0x00007febb6a62725 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib64/libQt5Gui.so.5
#23 0x00007febb6a3dadb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Gui.so.5
#24 0x00007feba5daa3ff in  () at /usr/lib64/libQt5XcbQpa.so.5
#25 0x00007febb66233db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt5Core.so.5
#26 0x00007febb662b386 in QCoreApplication::exec() () at /usr/lib64/libQt5Core.so.5
#27 0x000055de813c2b75 in  ()
#28 0x00007febb5ef7413 in __libc_start_main () at /usr/lib64/libc.so.6
#29 0x000055de813c419e in _start ()
[Inferior 1 (process 14041) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2019-07-03 20:29:28 UTC

*** This bug has been marked as a duplicate of bug 408849 ***
Comment 2 David 2019-07-03 21:00:13 UTC
It may not be a duplicate.

That bug is marked as resolved, but this crash keeps happening on a freshly built version from master.
Comment 3 Albert Astals Cid 2019-07-03 21:18:56 UTC
No, it does not crash with master

Did you build master yourself?

Did you install to /usr? (hope you didn't)

Because your backtrace says you're using /usr/lib64/qt5/plugins/okularpart.so

So if you did build yourself, you're not running the thing you built. Read the bottom of https://okular.kde.org/download.php
Comment 4 David 2019-07-03 21:38:13 UTC
Ah, yes, okularpart.

The backtrace is with the released version, but after reporting, I built it and installed in ~/.local. But yes, I was loading the okularpart from the system.
Fixing the paths, it works.