| Summary: | Kate regularly crashes whole X session when files have changed on disk | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | adrianna.pinska |
| Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | crash | Keywords: | triaged |
| Priority: | NOR | ||
| Version First Reported In: | 3.9.5 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Sorry, with this info we can't do anything about it. Besides, I've never heard of this problem before, maybe it's an installation problem? Or some underlying library is buggy? I have installed the kate-dbg package and will run kate inside gdb inside screen on both computers, in the hopes that the next time the crash occurs I will be able to get a backtrace from gdb. I am open to all other suggestions. It's entirely possible that another system component is responsible for the X session crash, but whatever happens certainly looks like it's being triggered by something that happens inside Kate. There have been several bugs about Kate crashing when files are reloaded (e.g. #97896, #243219, #220153, #228911), so this kind of issue is not completely unheard of. I have made some progress -- I can reproduce the crash by following the steps in bug #220153. But I can't get a backtrace from gdb, and I don't get a segfault like the reporter of that bug -- it just looks like kate is killed when X crashes. I'm going to try reproducing the bug under different conditions (e.g. without xcompmgr running) to see if I can pinpoint what is contributing to the X crash. No such luck. I have tried to follow the steps a second time, and I can't reproduce the bug again -- I have tried creating completely new files, to no avail. 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 set the bug status 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! 15 days? In the *five years* since I filed this bug, I switched to a different editor because of the lack of a response or any practical way for me to debug the issue further, used the other editor for several years, switched back to Kate, and found that whatever had been broken had been fixed (presumably by complete coincidence) in the intervening time. So I'm setting this to RESOLVED/WORKSFORME myself, I guess. |
I have had this problem for months -- possibly over a year now. I've found very old bugs which report something vaguely similar, but they're marked as fixed or as duplicates. Every now and then, when files have changed on disk, no matter whether I choose to refresh them or ignore them Kate crashes, and takes my entire X session with it. The only way I can avoid this is by ignoring the dialog and killing Kate from the command line (although I can't verify that for sure, since I currently have no way of knowing if any particular instance of refreshing is going to cause the crash). This happens on two separate machines with a similar software setup but dissimilar hardware (e,g graphics cards). I can't reproduce the crash reliably -- refreshing documents which have been edited on disk usually works without a problem. I typically experience this issue when I sync the files on two machines using version control, after some time has passed since the last crash, so I'm guessing there's something additional I must be doing in the intervening time that triggers the bug. I have looked in .xsession-errors, and can't find anything useful -- there's some output from Kate about refreshing files, and then X gets killed. Here's the end of my last file: kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: deleted! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: modified! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: deleted! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: modified! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: deleted! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: modified! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: deleted! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: modified! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: deleted! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: modified! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: deleted! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: modified! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: created! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: created! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: created! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: created! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: created! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: created! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: BEGIN! kate(2861)/kate-filetree KateFileTreeModel::setupIcon: END! kate(2861)/kate-filetree KateFileTreeModel::documentModifiedOnDisc: END! ** Message: applet now removed from the notification area (nm-applet:2471): Gdk-CRITICAL **: gdk_error_trap_pop_internal: assertion `trap != NULL' failed kdeinit4: Fatal IO error: client killed klauncher: Exiting on signal 15 kded4: Fatal IO error: client killed kdeinit4: Fatal IO error: client killed kglobalaccel: Fatal IO error: client killed knotify4: Fatal IO error: client killed (update-notifier:2466): Gdk-WARNING **: update-notifier: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. plugin-container: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. ** (zeitgeist-datahub:2467): WARNING **: zeitgeist-datahub.vala:227: Unable to get name "org.gnome.zeitgeist.datahub" on the bus! (polkit-gnome-authentication-agent-1:2418): Gdk-WARNING **: polkit-gnome-authentication-agent-1: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. yakuake: Fatal IO error: client killed yakuake(2553)/konsole Konsole::SessionManager::~SessionManager: Konsole SessionManager destroyed with sessions still alive XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0" after 706378789 requests (706378789 known processed) with 0 events remaining. applet.py: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. parcellite: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. (gnome-sound-applet:2423): Gdk-WARNING **: gnome-sound-applet: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. gkrellm: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. firefox: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. quasselclient: Fatal IO error: client killed kate: Fatal IO error: client killed I'd be happy to do more debugging if anyone has any suggestions, but I don't know where to start. I don't get a crash dialog from Kate, because the X session is gone -- whatever I use for debugging needs to log to some kind of file that will outlive the X session. Reproducible: Sometimes Steps to Reproduce: 1. ??? 2. change files on disk, e.g. by updating version-controlled working directory 3. refresh or ignore in the popup dialog; it crashes either way Actual Results: Entire X session crashes Expected Results: Files are refreshed (or ignored). I'm running Fluxbox (with xcompmgr for compositing) on Ubuntu (currently Quantal, but I've been experiencing the issue for several versions now). Unfortunately I don't recall the exact Kate version when I first started to experience the issue.