Bug 390383 - Kile crashes when user accepts prompt for presentation mode
Summary: Kile crashes when user accepts prompt for presentation mode
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other All
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-13 16:30 UTC by arr8
Modified: 2018-04-12 19:14 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 arr8 2018-02-13 16:30:18 UTC
Hello,

The LaTeX hyperref package allows setting of PDF display options. In particular, setting:

\hypersetup{pdfpagemode=FullScreen}

causes Okular to prompt to enter presentation mode when the generated PDF is opened, as would be expected.

However, enabling live preview for this document causes the same prompt to appear in Kile, and accepting consistently causes a crash. This was tested on Linux and Windows. Even if declining the prompt, every subsequent compilation causes it to reappear, which is quite annoying.
Comment 1 Albert Astals Cid 2018-04-12 14:03:51 UTC
do you have a crash backtrace? Do you know how to get one?
Comment 2 arr8 2018-04-12 14:38:18 UTC
I think so, this is what gdb gives me:

Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `kile'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8b39c0fe15 in QAction::setEnabled(bool) ()
   from /usr/lib/libQt5Widgets.so.5
[Current thread is 1 (Thread 0x7f8b3fcc4880 (LWP 27525))]
(gdb) bt
#0  0x00007f8b39c0fe15 in QAction::setEnabled(bool) ()
    at /usr/lib/libQt5Widgets.so.5
#1  0x00007f8affb663e6 in  () at /usr/lib/qt/plugins/okularpart.so
#2  0x00007f8affac4741 in Okular::Part::slotShowPresentation() ()
    at /usr/lib/qt/plugins/okularpart.so
#3  0x00007f8affb97e38 in  () at /usr/lib/qt/plugins/okularpart.so
#4  0x00007f8b38ec7062 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#5  0x00007f8b39c13fec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#6  0x00007f8b39c1b9c6 in QApplication::notify(QObject*, QEvent*) ()
    at /usr/lib/libQt5Widgets.so.5
#7  0x00007f8b38e95cf0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
    at /usr/lib/libQt5Core.so.5
#8  0x00007f8b38e98956 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#9  0x00007f8b38ef2c54 in  () at /usr/lib/libQt5Core.so.5
#10 0x00007f8b31274368 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#11 0x00007f8b312745b1 in  () at /usr/lib/libglib-2.0.so.0
#12 0x00007f8b3127463e in g_main_context_iteration ()
    at /usr/lib/libglib-2.0.so.0
#13 0x00007f8b38ef2241 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#14 0x00007f8b2700b482 in  () at /usr/lib/libQt5XcbQpa.so.5
#15 0x00007f8b38e9432b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#16 0x00007f8b38e9d728 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#17 0x00007f8b3f74ad94 in kdemain () at /usr/lib/libkdeinit5_kile.so
#18 0x00007f8b3f17cf4a in __libc_start_main () at /usr/lib/libc.so.6
#19 0x00005618c8ece76a in _start ()
Comment 3 Albert Astals Cid 2018-04-12 16:28:46 UTC
Yep, makes sense
Comment 4 Albert Astals Cid 2018-04-12 16:41:23 UTC
Git commit 88faff5b3c1c69d33e7f8d4e86ecb33f9783c6d0 by Albert Astals Cid.
Committed on 12/04/2018 at 16:40.
Pushed by aacid into branch 'Applications/18.04'.

Fix crash in Kile preview mode when enabling fullscreen

Does not make sese to ask the user if he wants to go fullscreen on the
kile preview widget (or the milou preview widget, the other user of this
feature), and besides not making sense, it's crashing :D

M  +3    -2    part.cpp

https://commits.kde.org/okular/88faff5b3c1c69d33e7f8d4e86ecb33f9783c6d0
Comment 5 arr8 2018-04-12 19:14:32 UTC
Thank you!