Kile window closes immediately once a file is selected to be opened from the GUI. Not restricted to opening -- if the "about" window is selected from the help menu and subsequently closed, kile crashes upon closing the window. Will probably happen with other menu items. Reproducible: Always Steps to Reproduce: 1. Open kile 2. Select new file or open file 3. Select empty file or choose file from computer Actual Results: Kile crashes every time -- window simply disappears as if it was closed by the user. Expected Results: Kile should have created a new file or opened an existing one. The problem isn't limited to opening/creating files it seems to be a problem across the menu interface. A possible workaround for those who are unable to open files is to locate the files on the computer and open them from outside of kile. This will, at least, allow the user to edit existing documents. The bug affects user experience. OS: Ubuntu 13.04
Please provide the backtrace and the debug output when you run kile in konsole, otherwise it is hard to know what has happened.
Here is the output from the konsole. The part before the asterisks happens when kile is opened and running fine, the part inside the asterisks happens when it crashes. cathal@xps:~$ kile kile(11421)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so" QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action QVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const: Condition failed: action kile(11421)/konsole Konsole::Session::run: Attempted to re-run an already running session. ****The program 'kile' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 3903 error_code 3 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) kile(11421)/konsole Konsole::SessionManager::~SessionManager: Konsole SessionManager destroyed with sessions still alive**** cathal@xps:~$
The bug seems to be of a bigger sort. It also appears when for instance a dialog is opened and then canceled (new project, save as.., etc). Does appear under Ubuntu 13.04 with Unity, not with LXDE though.
Thanks for the feedback. That looks like a more serious problem of the system, instead of kile itself. Actually, I have noticed a few similar 'crash' reports (bug 321931, bug 321972, bug 321954) created recently, and all of them are from Ubuntu systems.
Confirm same problem, active over multiple computers running Ubuntu 13.04 with only minor variations. Specimen output: USER:~$ kile --sync kile(7683)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so" kile(7683)/konsole Konsole::Session::run: Attempted to re-run an already running session. The program 'kile' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 7184 error_code 3 request_code 20 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) kile(7683)/konsole Konsole::SessionManager::~SessionManager: Konsole SessionManager destroyed with sessions still alive
*** Bug 322046 has been marked as a duplicate of this bug. ***
I checked kile on new Linux Mint 15 with MATE desktop and the output is similar but kile do not crash and still is usable. I just opened kile and closed it after a while (there was pop up: about migration to KDE4 and required restart). During next starts the output is much smaller (contains 3 lines as above but without BadWindow). Gdb do not show more information. === Console output ==== Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString) QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. kbuildsycoca4 running... kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Keywords in "/usr/share/applications/firefox.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/im-config.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/language-selector.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/mintBackup.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/mintBackup_mime.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/mintInstall.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/mintInstall_kde.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/mintInstall_mime.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Keywords in "/usr/share/applications/thunderbird.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Actions in "/usr/share/applications/thunderbird.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/upload-manager.desktop" is not compliant with XDG standard (missing trailing semicolon). kbuildsycoca4(14947) kdemain: Emitting notifyDatabaseChanged ("servicetypes", "xdgdata-mime", "services", "apps") kile(14934)/kdecore (KLibrary) findLibraryInternal: plugins should not have a 'lib' prefix: "libkonsolepart.so" QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave. kile(14934)/konsole Konsole::Session::run: Attempted to re-run an already running session. X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x32000bb X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x32000bb X Error: BadWindow (invalid Window parameter) 3 Major opcode: 18 (X_ChangeProperty) Resource id: 0x32000bb kile(14934)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: ===
See https://bugs.launchpad.net/ubuntu/+source/kile/+bug/1195007
*** Bug 322485 has been marked as a duplicate of this bug. ***