Bug 321759 - Kile crashes on Ubuntu (gdk_x_error)
Summary: Kile crashes on Ubuntu (gdk_x_error)
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kile
Classification: Applications
Component: user interface (show other bugs)
Version: 2.1.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
: 322046 322485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-29 12:16 UTC by Cathal Cummins
Modified: 2013-07-17 13:02 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cathal Cummins 2013-06-29 12:16:30 UTC
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
Comment 1 Jekyll Wu 2013-06-29 13:02:45 UTC
Please provide the backtrace and the debug output when you run kile in konsole, otherwise it is hard to know what has happened.
Comment 2 Cathal Cummins 2013-06-29 14:01:20 UTC
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:~$
Comment 3 rbro 2013-07-04 14:15:50 UTC
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.
Comment 4 Jekyll Wu 2013-07-05 02:01:04 UTC
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.
Comment 5 Markus Eichhorn 2013-07-05 08:01:45 UTC
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
Comment 6 Michel Ludwig 2013-07-07 09:26:26 UTC
*** Bug 322046 has been marked as a duplicate of this bug. ***
Comment 7 Tomasz Kapela 2013-07-07 18:15:40 UTC
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:
===
Comment 9 Christoph Feck 2013-07-17 13:02:09 UTC
*** Bug 322485 has been marked as a duplicate of this bug. ***