Bug 409345 - Okular crashes on opening menu
Summary: Okular crashes on opening menu
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.7.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-06-30 22:18 UTC by Alex
Modified: 2019-08-04 19:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2019-06-30 22:18:48 UTC
Application: okular (1.7.2)

Qt Version: 5.13.0
Frameworks Version: 5.59.0
Operating System: Linux 5.0.13-1-default x86_64
Distribution: "openSUSE Tumbleweed"

-- Information about the crash:
- What I was doing when the application crashed:
The problem appears when Okular is run from Emacs for a pdf created by Pdflatex. Then scrolling is okay; Okular crashes if I try to open the main menu. Tried several times with the same result.

Removing the "--unique" option and/or the "#src:..." portion of the command line makes no difference. The crach doesn't appear when I open pdf files from Dolphin.

- Custom settings of the application:
Today I updated some parts of my system (Opensuse) including KDE. Perhaps some old versions of libraries may remain, I however was unable to locate them.

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7fd9ab213700 (LWP 3242)):
#0  0x00007fd9c208e03c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fd9ab58833b in ?? () from /usr/lib64/dri/i965_dri.so
#2  0x00007fd9ab587f57 in ?? () from /usr/lib64/dri/i965_dri.so
#3  0x00007fd9c2087fab in start_thread () from /lib64/libpthread.so.0
#4  0x00007fd9c2b5c6af in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fd9b9764700 (LWP 3240)):
#0  0x00007fd9c2b51ae9 in poll () from /lib64/libc.so.6
#1  0x00007fd9c0e08156 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007fd9c0e0827c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007fd9c30f0ceb in QEventDispatcherGlib::processEvents (this=0x7fd9ac000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fd9c30992eb in QEventLoop::exec (this=this@entry=0x7fd9b9763d70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#5  0x00007fd9c2ed1f91 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#6  0x00007fd9c33794f6 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007fd9c2ed3112 in QThreadPrivate::start (arg=0x7fd9c33fbd80) at thread/qthread_unix.cpp:360
#8  0x00007fd9c2087fab in start_thread () from /lib64/libpthread.so.0
#9  0x00007fd9c2b5c6af in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fd9bc260700 (LWP 3239)):
#0  0x00007fd9c2b51ae9 in poll () from /lib64/libc.so.6
#1  0x00007fd9c210ccc2 in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fd9c210e8ba in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007fd9bce64f48 in QXcbEventQueue::run (this=0x55ba38c20030) at qxcbeventqueue.cpp:228
#4  0x00007fd9c2ed3112 in QThreadPrivate::start (arg=0x55ba38c20030) at thread/qthread_unix.cpp:360
#5  0x00007fd9c2087fab in start_thread () from /lib64/libpthread.so.0
#6  0x00007fd9c2b5c6af in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fd9becc6c80 (LWP 3238)):
[KCrash Handler]
#6  qglx_findConfig (display=display@entry=0x55ba38c113d0, screen=screen@entry=0, format=..., highestPixelFormat=highestPixelFormat@entry=false, drawableBit=drawableBit@entry=1, flags=flags@entry=1) at qglxconvenience.cpp:236
#7  0x00007fd9b07541e7 in qglx_findVisualInfo (display=display@entry=0x55ba38c113d0, screen=0, format=format@entry=0x55ba39bb7548, drawableBit=drawableBit@entry=1, flags=1) at qglxconvenience.cpp:276
#8  0x00007fd9b074fa32 in QXcbGlxWindow::createVisual (this=0x55ba39bb74f0) at ../../../xcb/qxcbscreen.h:174
#9  0x00007fd9bce53629 in QXcbWindow::create (this=0x55ba39bb74f0) at qxcbwindow.cpp:353
#10 0x00007fd9bce4047e in QXcbIntegration::createPlatformWindow (this=<optimized out>, window=0x7fd9b4007cc0) at qxcbintegration.cpp:252
#11 0x00007fd9c3541265 in QWindowPrivate::create (this=0x55ba39bb8bf0, recursive=recursive@entry=false, nativeHandle=nativeHandle@entry=0) at kernel/qwindow.cpp:516
#12 0x00007fd9c354163d in QWindow::create (this=this@entry=0x7fd9b4007cc0) at kernel/qwindow.cpp:639
#13 0x00007fd9c3b9a3a8 in QWidgetPrivate::create_sys (this=this@entry=0x55ba3930ec40, window=window@entry=0, initializeWindow=initializeWindow@entry=true, destroyOldWindow=destroyOldWindow@entry=true) at kernel/qwidget.cpp:1484
#14 0x00007fd9c3b9a9bc in QWidget::create (this=0x55ba38fdf780, window=0, initializeWindow=<optimized out>, destroyOldWindow=<optimized out>) at kernel/qwidget.cpp:1338
#15 0x00007fd9c3b9b0f0 in QWidgetPrivate::setScreenForPoint (this=this@entry=0x55ba3930ec40, pos=...) at kernel/qwidget.cpp:2599
#16 0x00007fd9c3ce8a01 in QMenu::popup (this=0x55ba38fdf780, p=..., atAction=atAction@entry=0x0) at widgets/qmenu.cpp:2332
#17 0x00007fd9c3cf4d85 in QMenuBarPrivate::popupAction (this=0x55ba3949cbd0, action=0x55ba39122390, activateFirst=<optimized out>) at /usr/include/c++/9/bits/atomic_base.h:413
#18 0x00007fd9c3cf6de0 in QMenuBarPrivate::setCurrentAction (this=this@entry=0x55ba3949cbd0, action=action@entry=0x55ba39122390, popup=popup@entry=true, activateFirst=activateFirst@entry=false) at widgets/qmenubar.cpp:392
#19 0x00007fd9c3cf765a in QMenuBar::mousePressEvent (this=0x55ba38fad4f0, e=0x7ffef0d9a650) at widgets/qmenubar.cpp:1068
#20 0x00007fd9c3ba875c in QWidget::event (this=this@entry=0x55ba38fad4f0, event=event@entry=0x7ffef0d9a650) at kernel/qwidget.cpp:8940
#21 0x00007fd9c3cf893b in QMenuBar::event (this=0x55ba38fad4f0, e=0x7ffef0d9a650) at widgets/qmenubar.cpp:1507
#22 0x00007fd9c3b65c42 in QApplicationPrivate::notify_helper (this=this@entry=0x55ba38bfb4d0, receiver=receiver@entry=0x55ba38fad4f0, e=e@entry=0x7ffef0d9a650) at kernel/qapplication.cpp:3740
#23 0x00007fd9c3b6f113 in QApplication::notify (this=<optimized out>, receiver=0x55ba38fad4f0, e=0x7ffef0d9a650) at kernel/qapplication.cpp:3200
#24 0x00007fd9c309a692 in QCoreApplication::notifyInternal2 (receiver=0x55ba38fad4f0, event=0x7ffef0d9a650) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#25 0x00007fd9c3b6e203 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55ba38fad4f0, event=event@entry=0x7ffef0d9a650, alienWidget=alienWidget@entry=0x55ba38fad4f0, nativeWidget=0x55ba38c13610, buttonDown=buttonDown@entry=0x7fd9c408f8b0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2686
#26 0x00007fd9c3bc39c9 in QWidgetWindow::handleMouseEvent (this=0x55ba39247390, event=0x7ffef0d9aad0) at /usr/include/c++/9/bits/atomic_base.h:413
#27 0x00007fd9c3bc6a24 in QWidgetWindow::event (event=0x7ffef0d9aad0, this=0x55ba39247390) at kernel/qwidgetwindow.cpp:280
#28 QWidgetWindow::event (this=0x55ba39247390, event=0x7ffef0d9aad0) at kernel/qwidgetwindow.cpp:224
#29 0x00007fd9c3b65c42 in QApplicationPrivate::notify_helper (this=this@entry=0x55ba38bfb4d0, receiver=receiver@entry=0x55ba39247390, e=e@entry=0x7ffef0d9aad0) at kernel/qapplication.cpp:3740
#30 0x00007fd9c3b6eec0 in QApplication::notify (this=0x7ffef0d9af60, receiver=0x55ba39247390, e=0x7ffef0d9aad0) at kernel/qapplication.cpp:3486
#31 0x00007fd9c309a692 in QCoreApplication::notifyInternal2 (receiver=0x55ba39247390, event=0x7ffef0d9aad0) at ../../include/QtCore/../../src/corelib/kernel/qobject.h:142
#32 0x00007fd9c35374b8 in QGuiApplicationPrivate::processMouseEvent (e=e@entry=0x55ba38f6ff40) at kernel/qguiapplication.cpp:2111
#33 0x00007fd9c3538d3b in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x55ba38f6ff40) at kernel/qguiapplication.cpp:1846
#34 0x00007fd9c3511acb in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1148
#35 0x00007fd9bce65e7a in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#36 0x00007fd9c0e07f4e in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#37 0x00007fd9c0e081e8 in ?? () from /usr/lib64/libglib-2.0.so.0
#38 0x00007fd9c0e0827c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#39 0x00007fd9c30f0cd1 in QEventDispatcherGlib::processEvents (this=0x55ba38ccfe10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#40 0x00007fd9c30992eb in QEventLoop::exec (this=this@entry=0x7ffef0d9ae80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#41 0x00007fd9c30a0e62 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#42 0x000055ba371599ea in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-19.04.2-1.1.x86_64/shell/main.cpp:90
[Inferior 1 (process 3238) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2019-07-01 21:23:56 UTC
Your system is broken, this is not an okular bug. Please seek advise in opensuse help system.
Comment 2 Christoph Feck 2019-07-01 23:00:58 UTC
Qt 5.13.0 regression?
Comment 3 Albert Astals Cid 2019-07-02 20:59:42 UTC
I'm on 5.13.0 just fine
Comment 4 Alex 2019-08-04 19:28:00 UTC
This bug turns out to be relevant to QT/KDE, not to Okular itself. It is triggered by the environment variable XLIB_SKIP_ARGB_VISUALS set by emacs. Other KDE applications then crash as well, provided that e.g. Oxygen or Breeze (my case) engine is in use. This problem is not new, I found its description at:

https://www.mail-archive.com/kde-bugs-dist@kde.org/msg172682.html