You are not logged in.

#1 2015-02-21 08:04:32

bhrgunatha
Member
Registered: 2009-12-16
Posts: 103

Python TKInter bringing down xorg server

Berkelery's AI course on edX has a project to implement a search algorithm for a pacman style game which uses python 2.7 and TkInter.
When I try to run the graphical program it brings down KDE, Kwin, kdm and X11 too.
No error message, no warning, I am just dumped to a console.
Interestingly kdm eventually restarts by itself though.

The source code for the project

Here is a sample command that causes the situation

$ python2 pacman.py -l tinyMaze -p SearchAgent -a fn=tinyMazeSearch

If I try to run the program interacticveley it also blows up

$ python2 pacman.py

The relevant part of the system log:

$ jounralctl -b
...
Feb 21 15:30:43 starch org.a11y.atspi.Registry[587]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Feb 21 15:30:43 starch org.a11y.atspi.Registry[587]: after 1413 requests (1413 known processed) with 0 events remaining.
Feb 21 15:30:43 starch kdeinit5[751]: kdeinit5: Fatal IO error: client killed
Feb 21 15:30:43 starch kactivitymanagerd[739]: The X11 connection broke (error 1). Did the X11 server die?
Feb 21 15:30:43 starch kded5[745]: The X11 connection broke (error 1). Did the X11 server die?
Feb 21 15:30:43 starch org.kde.kuiserver[534]: kuiserver: Fatal IO error: client killed
Feb 21 15:30:43 starch org.kde.kded5[534]: klauncher: Exiting on signal 15
Feb 21 15:30:43 starch kdeinit5[752]: The X11 connection broke (error 1). Did the X11 server die?
Feb 21 15:30:43 starch polkitd[795]: Unregistered Authentication Agent for unix-session:c1 (system bus name :1.27, object path /org/kde/PolicyKit1/Authentica
Feb 21 15:30:43 starch kdm[447]: X server for display :0 terminated unexpectedly
Feb 21 15:30:44 starch org.a11y.Bus[532]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async r
Feb 21 15:30:44 starch org.gtk.vfs.Daemon[534]: A connection to the bus can't be made
Feb 21 15:30:44 starch org.gtk.vfs.Daemon[534]: g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an a
Feb 21 15:30:44 starch kdm[499]: :0[499]: pam_unix(kde:session): session closed for user bhrgunatha
Feb 21 15:30:44 starch kernel: nvidia 0000:01:00.0: irq 30 for MSI/MSI-X

I have 64bit installation using KDE 4.14.5.
All packages are up-to-date.

uname -srv
Linux 3.18.6-1-ARCH #1 SMP PREEMPT Sat Feb 7 08:44:05 CET 2015

Does anyone have any idea what can be causing this?
Or how to fix it?

Offline

#2 2015-02-21 08:09:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Python TKInter bringing down xorg server

Not a Programming issue, moving to Apps and DEs...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB