Bug 419675 - okular crashes when opening a menu if invoked from auctex
Summary: okular crashes when opening a menu if invoked from auctex
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.9.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-05 12:59 UTC by Reissner
Modified: 2020-06-29 04:33 UTC (History)
2 users (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 Reissner 2020-04-05 12:59:27 UTC
SUMMARY
okular crashes when opening a menu if invoked from auctex 

STEPS TO REPRODUCE
1. install emacs and auctex. 
2. create some .tex file, compile and view via command. 
Then the command is shown. 
It is something like 
okular -unique template.pdf#src:74./template.tex
3. press return and observe okular comes up correctly. 
4. try to press a menu entry: crash 

OBSERVED RESULT
crash as described above

EXPECTED RESULT
show the content of menu. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Very interesting: if invoked from command line, that crash does not occur. 
Even if then that command is invoked from auctex, (e.g. to view another line)
that problem disappeared. 
Note that auctex seemed to have changed sth: no master directory any more. 
This bug seems new, either in side of auctex or of okular.
Comment 1 Albert Astals Cid 2020-04-05 16:45:38 UTC
Could you give us the backtrace you get?

The crash dialog should give it to you, if not tell us and I'll try to give you the commands to get it via gdb
Comment 2 Bug Janitor Service 2020-04-20 04:33:10 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 3 Reissner 2020-04-20 08:09:29 UTC
(In reply to Albert Astals Cid from comment #1)
> Could you give us the backtrace you get?
> 
> The crash dialog should give it to you, if not tell us and I'll try to give
> you the commands to get it via gdb

Hello, 
there is no crash dialog, 
the window just disappears.
Comment 4 Albert Astals Cid 2020-04-20 19:23:56 UTC
Ok, then just run okular the way you make it crash, but before making it crash, open a terminal become root and type

 gdb attach `pidof okular`

once you end up inside the gdb terminal type "continue" and press enter

now make it crash

once it crashed type "bt" and then enter and attach the information here
Comment 5 Bug Janitor Service 2020-05-05 04:33:13 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 6 Reissner 2020-05-05 09:24:37 UTC
I tried but it requires 
`zypper install okular-debuginfo-20.04.0-1.1.x86_64` 
maybe i must configure a repo for that because cannot find.
Comment 7 Albert Astals Cid 2020-05-05 19:59:42 UTC
can't really help you with opensuse questions, sorry :/
Comment 8 Wolfgang Bauer 2020-05-06 11:54:19 UTC
(In reply to Reissner from comment #6)
> I tried but it requires 
> `zypper install okular-debuginfo-20.04.0-1.1.x86_64` 
> maybe i must configure a repo for that because cannot find.

You need to enable the debug repo first. (it should be preconfigured by default but disabled, if necessary you can find the URL here though: https://en.opensuse.org/openSUSE:Tumbleweed_upgrade#Repositories )

Or use this zypper command instead:
zypper --plus-content debug install okular-debuginfo
Comment 9 Bug Janitor Service 2020-05-21 04:33:22 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 10 Reissner 2020-05-22 12:02:46 UTC
I have new information: 

13:44 $ gdb attach `pidof okular`
Excess command line arguments ignored. (13399 ...)
GNU gdb (GDB; openSUSE Tumbleweed) 8.3.1
Copyright (C) 2019 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-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
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"...
attach: No such file or directory.
Attaching to process 13422
[New LWP 13423]
[New LWP 13424]
[New LWP 13425]
[New LWP 13426]
[New LWP 13427]
[New LWP 13428]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f7abde31acf in poll () from /lib64/libc.so.6
Missing separate debuginfos, use: zypper install okular-debuginfo-20.04.0-1.1.x86_64
(gdb) continue
Continuing.

Thread 1 "okular" received signal SIGSEGV, Segmentation fault.
0x00007f7ab1463d34 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
(gdb) bt
#0  0x00007f7ab1463d34 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#1  0x00007f7ab14643c7 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#2  0x00007f7ab145fa32 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#3  0x00007f7aba25b139 in QXcbWindow::create() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f7aba2480ee in QXcbIntegration::createPlatformWindow(QWindow*) const () from /usr/lib64/libQt5XcbQpa.so.5
#5  0x00007f7abe842a55 in QWindowPrivate::create(bool, unsigned long long) () from /usr/lib64/libQt5Gui.so.5
#6  0x00007f7abef605c8 in QWidgetPrivate::create() () from /usr/lib64/libQt5Widgets.so.5
#7  0x00007f7abef60bc6 in QWidget::create(unsigned long long, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#8  0x00007f7abef61320 in QWidgetPrivate::setScreen(QScreen*) () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007f7abf0b1744 in QMenu::popup(QPoint const&, QAction*) () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007f7abf0bcff0 in ?? () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007f7abf0bf100 in ?? () from /usr/lib64/libQt5Widgets.so.5
#12 0x00007f7abf0bf97a in QMenuBar::mousePressEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007f7abef6e5c9 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007f7abf0c0c9b in QMenuBar::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007f7abef2bcaf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007f7abef35043 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#17 0x00007f7abe385fe2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f7abef34123 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007f7abef895e9 in ?? () from /usr/lib64/libQt5Widgets.so.5
#20 0x00007f7abef8c684 in ?? () from /usr/lib64/libQt5Widgets.so.5
#21 0x00007f7abef2bcaf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#22 0x00007f7abef34df0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007f7abe385fe2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#24 0x00007f7abe8394d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib64/libQt5Gui.so.5
#25 0x00007f7abe83ab65 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib64/libQt5Gui.so.5
#26 0x00007f7abe81453b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/libQt5Gui.so.5
#27 0x00007f7aba26da6a in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#28 0x00007f7abca926e8 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f7abca92a70 in ?? () from /usr/lib64/libglib-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#30 0x00007f7abca92aff in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f7abe3dcbce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#32 0x00007f7abe384b7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#33 0x00007f7abe38c952 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#34 0x000056240169883e in ?? ()
#35 0x00007f7abdd63ceb in __libc_start_main () from /lib64/libc.so.6
#36 0x00005624016991da in ?? ()
(gdb) 
(gdb)
Comment 11 Reissner 2020-05-22 12:07:55 UTC
now with installed debug infos: 

Thread 1 "okular" received signal SIGSEGV, Segmentation fault.
0x00007f7ee198dd34 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
(gdb) bt
#0  0x00007f7ee198dd34 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#1  0x00007f7ee198e3c7 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#2  0x00007f7ee1989a32 in ?? () from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
#3  0x00007f7eea785139 in QXcbWindow::create() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f7eea7720ee in QXcbIntegration::createPlatformWindow(QWindow*) const () from /usr/lib64/libQt5XcbQpa.so.5
#5  0x00007f7eeed6ca55 in QWindowPrivate::create(bool, unsigned long long) () from /usr/lib64/libQt5Gui.so.5
#6  0x00007f7eef48a5c8 in QWidgetPrivate::create() () from /usr/lib64/libQt5Widgets.so.5
#7  0x00007f7eef48abc6 in QWidget::create(unsigned long long, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#8  0x00007f7eef48b320 in QWidgetPrivate::setScreen(QScreen*) () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007f7eef5db744 in QMenu::popup(QPoint const&, QAction*) () from /usr/lib64/libQt5Widgets.so.5
#10 0x00007f7eef5e6ff0 in ?? () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007f7eef5e9100 in ?? () from /usr/lib64/libQt5Widgets.so.5
#12 0x00007f7eef5e997a in QMenuBar::mousePressEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#13 0x00007f7eef4985c9 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007f7eef5eac9b in QMenuBar::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007f7eef455caf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#16 0x00007f7eef45f043 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#17 0x00007f7eee8affe2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#18 0x00007f7eef45e123 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib64/libQt5Widgets.so.5
#19 0x00007f7eef4b35e9 in ?? () from /usr/lib64/libQt5Widgets.so.5
#20 0x00007f7eef4b6684 in ?? () from /usr/lib64/libQt5Widgets.so.5
#21 0x00007f7eef455caf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#22 0x00007f7eef45edf0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007f7eee8affe2 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#24 0x00007f7eeed634d3 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib64/libQt5Gui.so.5
#25 0x00007f7eeed64b65 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib64/libQt5Gui.so.5
#26 0x00007f7eeed3e53b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/libQt5Gui.so.5
#27 0x00007f7eea797a6a in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#28 0x00007f7eecfbc6e8 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f7eecfbca70 in ?? () from /usr/lib64/libglib-2.0.so.0
--Type <RET> for more, q to quit, c to continue without paging--
#30 0x00007f7eecfbcaff in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#31 0x00007f7eee906bce in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#32 0x00007f7eee8aeb7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#33 0x00007f7eee8b6952 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#34 0x00005627392db83e in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-20.04.0-1.1.x86_64/shell/main.cpp:95
(gdb) 
(gdb)
Comment 12 Reissner 2020-05-22 12:10:44 UTC
Further info: has nothing to do with auctex, just with emacs. 
Still further hint: 
Emacs is a bit command line. 
One can make it display the command it issues. It is sth like 
`okular -unique recon.pdf#src:7./recon.tex`. 
Strange enough, if i do that on a shell, all is ok. 
So it must have sth to do with emacs...
Comment 13 Albert Astals Cid 2020-05-22 23:16:40 UTC
This is really weird, can you try installing the debug info for libqxcb-glx-integration.so if opensuse has it?
Comment 14 Wolfgang Bauer 2020-05-27 06:21:48 UTC
(In reply to Albert Astals Cid from comment #13)
> This is really weird, can you try installing the debug info for
> libqxcb-glx-integration.so if opensuse has it?
FYI, that should be in libQt5Gui5-debuginfo.
Comment 15 Bug Janitor Service 2020-06-14 04:33:11 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 16 Bug Janitor Service 2020-06-29 04:33:12 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!