Bug 300812 - Crash with auto-preview immediately after saving (triggering build for auto-preview)
Summary: Crash with auto-preview immediately after saving (triggering build for auto-p...
Status: RESOLVED WORKSFORME
Alias: None
Product: kile
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.9.60
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 13:48 UTC by Bas van Schaik
Modified: 2018-11-29 09:39 UTC (History)
2 users (show)

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


Attachments
New crash information added by DrKonqi (6.25 KB, text/plain)
2013-03-23 09:00 UTC, Marco Poletti
Details
New crash information added by DrKonqi (7.35 KB, text/plain)
2013-04-22 13:40 UTC, Alex Richardson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bas van Schaik 2012-05-29 13:48:41 UTC
Application: kile (2.9.60)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

Auto-preview is set to kick in when I save the file. I had finished typing some new text, hit CTRL+S to save and Kile immediately crashed. I had been working with this Kile instance for about three hours (saving, auto-building, editing, saving, ... many times) - not sure what triggered this crash.

Compiled from git f18df21, now pulling and building 3a65e86 but the git log doesn't show any changes that could be relevant to this bug.

-- Backtrace:
Application: Kile (kile), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9e7845e780 (LWP 12199))]

Thread 6 (Thread 0x7f9e61f8b700 (LWP 12200)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e7544d4db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00000000005ccf6b in KileParser::ParserThread::run (this=0x11850e0) at /opt/kile-livepreview-git/src/kile/src/parser/parserthread.cpp:168
#3  0x00007f9e7544cfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f9e7143ae9a in start_thread (arg=0x7f9e61f8b700) at pthread_create.c:308
#5  0x00007f9e73ca54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9e6178a700 (LWP 12201)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e7544d4db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00000000005ccf6b in KileParser::ParserThread::run (this=0x11b83f0) at /opt/kile-livepreview-git/src/kile/src/parser/parserthread.cpp:168
#3  0x00007f9e7544cfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f9e7143ae9a in start_thread (arg=0x7f9e6178a700) at pthread_create.c:308
#5  0x00007f9e73ca54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9e5afb3700 (LWP 12202)):
#0  0x00007f9e6f558591 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9e6f51c713 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9e6f51cf1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9e6f51d124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9e7557b426 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f9e7554ac82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f9e7554aed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f9e75449fa7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f9e7552a9ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f9e7544cfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f9e7143ae9a in start_thread (arg=0x7f9e5afb3700) at pthread_create.c:308
#11 0x00007f9e73ca54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9e5a128700 (LWP 12203)):
#0  0x00007f9e73c99b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9e6f51cff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9e6f51d124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9e7557b426 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f9e7554ac82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f9e7554aed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f9e75449fa7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f9e7552a9ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f9e7544cfcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f9e7143ae9a in start_thread (arg=0x7f9e5a128700) at pthread_create.c:308
#10 0x00007f9e73ca54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9e4b15a700 (LWP 12355)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9e76c5d222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f9e76c5d259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f9e7143ae9a in start_thread (arg=0x7f9e4b15a700) at pthread_create.c:308
#4  0x00007f9e73ca54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9e7845e780 (LWP 12199)):
[KCrash Handler]
#6  0x00000000005e0601 in QHash<QString, QString>::operator= (this=0x8, other=...) at /usr/include/qt4/QtCore/qhash.h:593
#7  0x00000000005da436 in KileTool::LivePreviewManager::updatePreviewInformationAfterCompilationFinished (this=0x1f2efa0) at /opt/kile-livepreview-git/src/kile/src/livepreview.cpp:1331
#8  0x00000000005da7eb in KileTool::LivePreviewManager::childToolDone (this=0x1f2efa0, base=0x805d0e0, i=0, childToolSpawned=false) at /opt/kile-livepreview-git/src/kile/src/livepreview.cpp:1324
#9  0x00007f9e75560281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x0000000000517e7a in KileTool::Base::done (this=<optimized out>, _t1=0x805d0e0, _t2=0, _t3=false) at /opt/kile-livepreview-git/build-kile/src/kiletool.moc:153
#11 0x00000000005180ac in KileTool::Base::finish (this=0x805d0e0, result=0) at /opt/kile-livepreview-git/src/kile/src/kiletool.cpp:479
#12 0x000000000052d3d9 in KileTool::LaTeX::latexOutputParserResultInstalled (this=0x805d0e0) at /opt/kile-livepreview-git/src/kile/src/kilestdtools.cpp:208
#13 0x00000000005cb5e7 in KileParser::Manager::handleOutputParsingComplete (this=<optimized out>, url=..., output=<optimized out>) at /opt/kile-livepreview-git/src/kile/src/parser/parsermanager.cpp:107
#14 0x00007f9e75565446 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007f9e74651894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007f9e74656713 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007f9e75facbb6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#18 0x00007f9e7554be9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007f9e7554fc6a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007f9e7557af93 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007f9e6f51cc9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007f9e6f51d060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007f9e6f51d124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#24 0x00007f9e7557b3bf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#25 0x00007f9e746f9d5e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007f9e7554ac82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007f9e7554aed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007f9e7554ff67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x000000000043ca85 in main (argc=1, argv=0x7fff5e854938) at /opt/kile-livepreview-git/src/kile/src/main.cpp:171

Reported using DrKonqi
Comment 1 Michel Ludwig 2012-09-05 20:49:46 UTC
I think to fix this bug it will be very important to find a reliable way to reproduce the crash.

Did you encounter some more crashes in the meantime?
Comment 2 Marco Poletti 2013-03-23 09:00:45 UTC
Created attachment 78307 [details]
New crash information added by DrKonqi

kile (2.9.60) on KDE Platform 4.10.1 using Qt 4.8.4

I'm also getting this issue with today's Kile from git. I wasn't getting any crashes before updating kile (with a few weeks old version from git).
This happens every ~15 minutes during usual LaTeX writing.

-- Backtrace (Reduced):
#5  operator= (other=..., this=0x8) at /usr/include/qt4/QtCore/qhash.h:593
#6  KileTool::LivePreviewManager::updatePreviewInformationAfterCompilationFinished (this=0x28f99b0) at /var/tmp/portage/app-editors/kile-9999/work/kile-9999/src/livepreview.cpp:1343
[...]
#8  0x000000000054eaea in KileTool::Base::done (this=this@entry=0x54b23d0, _t1=_t1@entry=0x54b23d0, _t2=_t2@entry=0, _t3=false) at /var/tmp/portage/app-editors/kile-9999/work/kile-9999_build/src/kiletool.moc:154
#9  0x000000000054eb68 in KileTool::Base::finish (this=0x54b23d0, result=0) at /var/tmp/portage/app-editors/kile-9999/work/kile-9999/src/kiletool.cpp:487
#10 0x000000000056930f in KileTool::LaTeX::latexOutputParserResultInstalled (this=0x54b23d0) at /var/tmp/portage/app-editors/kile-9999/work/kile-9999/src/kilestdtools.cpp:257
Comment 3 Alex Richardson 2013-04-22 13:40:25 UTC
Created attachment 79377 [details]
New crash information added by DrKonqi

kile (2.9.60) on KDE Platform 4.10.2 "release 556" using Qt 4.8.4

I can confim this crash, happens with Kile compiled from Git today and KDE 4.10.2

-- Backtrace (Reduced):
#6  operator= (other=..., this=0x8) at /usr/include/QtCore/qhash.h:593
#7  KileTool::LivePreviewManager::updatePreviewInformationAfterCompilationFinished (this=0x1ae54c0) at /home/alex/devel/kdesrc/extragear/office/kile/src/livepreview.cpp:1343
[...]
#9  0x000000000054f13a in KileTool::Base::done (this=this@entry=0x2c5a0e0, _t1=_t1@entry=0x2c5a0e0, _t2=_t2@entry=0, _t3=false) at /home/alex/devel/build/kdesrc/extragear/office/kile/src/kiletool.moc:154
#10 0x000000000054f1b3 in KileTool::Base::finish (this=0x2c5a0e0, result=0) at /home/alex/devel/kdesrc/extragear/office/kile/src/kiletool.cpp:487
#11 0x00000000005697c3 in KileTool::LaTeX::latexOutputParserResultInstalled (this=0x2c5a0e0) at /home/alex/devel/kdesrc/extragear/office/kile/src/kilestdtools.cpp:257
Comment 4 Andrew Crouthamel 2018-10-30 00:01:37 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2018-11-14 11:29:32 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 Bug Janitor Service 2018-11-29 09:39:57 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!