Bug 383980 - Okular crashes when latex updates synctex
Summary: Okular crashes when latex updates synctex
Status: RESOLVED DUPLICATE of bug 383915
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.2.70
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-08-24 23:00 UTC by Eugene Shalygin
Modified: 2017-09-02 18:00 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 Eugene Shalygin 2017-08-24 23:00:56 UTC
Application: okular (1.3.70)
 (Compiled from sources)
Qt Version: 5.9.1
Frameworks Version: 5.37.0
Operating System: Linux 4.12.8-gentoo x86_64
Distribution: "Gentoo Base System release 2.4.1"

-- Information about the crash:
- What I was doing when the application crashed:
When Okular views a PDF file which is beeing updated by lualatex with synctex enabled, Okular crashes during latex run.

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 0x7f7004fdcd80 (LWP 13051))]

Thread 3 (Thread 0x7f6fe5f66700 (LWP 13053)):
#0  0x00007f70002ff29d in poll () from /lib64/libc.so.6
#1  0x00007f6ff9b50a19 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#2  0x00007f6ff9b50b2c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007f700118a22b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007f70011377ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f7000f8efda in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007f70050a5629 in QDBusConnectionManager::run() () from /usr/lib64/libQt5DBus.so.5
#7  0x00007f7000f93302 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#8  0x00007f6fff2a3617 in start_thread () from /lib64/libpthread.so.0
#9  0x00007f700030a69f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f6ff27bd700 (LWP 13052)):
#0  0x00007f70002ff29d in poll () from /lib64/libc.so.6
#1  0x00007f6ffda0a60f in _xcb_conn_wait () from /usr/lib64/libxcb.so.1
#2  0x00007f6ffda128c9 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007f6ff44ebcd9 in QXcbEventReader::run() () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007f7000f93302 in QThreadPrivate::start(void*) () from /usr/lib64/libQt5Core.so.5
#5  0x00007f6fff2a3617 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f700030a69f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f7004fdcd80 (LWP 13051)):
[KCrash Handler]
#6  0x000000000aca1020 in ?? ()
#7  0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#8  0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#9  0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#10 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#11 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#12 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#13 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#14 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#15 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#16 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#17 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#18 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#19 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#20 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#21 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#22 0x00007f6fe45647d5 in _synctex_free_leaf () from /usr/lib64/libOkular5Core.so.7
#23 0x00007f6fe4564700 in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#24 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#25 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#26 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#27 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#28 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#29 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#30 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#31 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#32 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#33 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#34 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#35 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#36 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#37 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#38 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#39 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#40 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#41 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#42 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#43 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#44 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#45 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#46 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#47 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#48 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#49 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#50 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#51 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#52 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#53 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#54 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#55 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#56 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#57 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#58 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#59 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#60 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#61 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#62 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#63 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#64 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#65 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#66 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#67 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#68 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#69 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#70 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#71 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#72 0x00007f6fe4564700 in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#73 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#74 0x00007f6fe4564700 in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#75 0x00007f6fe4564700 in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#76 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#77 0x00007f6fe4564700 in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#78 0x00007f6fe4564700 in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#79 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#80 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#81 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#82 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#83 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#84 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#85 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#86 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#87 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#88 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#89 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#90 0x00007f6fe456469a in _synctex_free_node () from /usr/lib64/libOkular5Core.so.7
#91 0x00007f6fe4569af8 in synctex_scanner_free () from /usr/lib64/libOkular5Core.so.7
#92 0x00007f6fe45269a6 in Okular::Document::closeDocument() () from /usr/lib64/libOkular5Core.so.7
#93 0x00007f6fe482d45b in Okular::Part::closeUrl(bool) () from /usr/lib64/qt5/plugins/okularpart.so
#94 0x00007f6fe48281b0 in Okular::Part::slotDoFileDirty() () from /usr/lib64/qt5/plugins/okularpart.so
#95 0x00007f7001161a97 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#96 0x00007f700116def7 in QTimer::timeout(QTimer::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5
#97 0x00007f700116e208 in QTimer::timerEvent(QTimerEvent*) () from /usr/lib64/libQt5Core.so.5
#98 0x00007f700116269b in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#99 0x00007f700199dcfc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#100 0x00007f70019a5534 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#101 0x00007f7001138a77 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#102 0x00007f70011894db in QTimerInfoList::activateTimers() () from /usr/lib64/libQt5Core.so.5
#103 0x00007f7001189e0c in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib64/libQt5Core.so.5
#104 0x00007f6ff9b50867 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#105 0x00007f6ff9b50a98 in g_main_context_iterate.isra () from /usr/lib64/libglib-2.0.so.0
#106 0x00007f6ff9b50b2c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#107 0x00007f700118a20f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#108 0x00007f70011377ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#109 0x00007f700113ff64 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#110 0x000000000040bb37 in main ()

Reported using DrKonqi
Comment 1 Eugene Shalygin 2017-08-24 23:04:44 UTC
Okular does not crash when I recompile the same .tex source with synctex disabled.
Comment 2 null 2017-08-28 23:31:55 UTC
Thanks for reporting.

Closing this as a duplicate of bug 383980, which has a fix targeted for KDE Applications 17.12. If you can compile from git, please help testing the synctex functionality as the fix involves a huge upgrade from synctex 1.16 to 1.19.

*** This bug has been marked as a duplicate of bug 383915 ***