Version: unspecified (using KDE 4.6.5) OS: Linux Installation of any applet that is written in python lead to silent crash (or program end) of kdeinit4 plasma-desktop. This lead to the state, that after insering of usb keys, or harddisks mounting of these devices is impossible. Reproducible: Always Steps to Reproduce: Install python applet on desktop/panel like: veromix: http://kde-apps.org/content/show.php/Veromix+-+volume+control+%2B+soundmenu?content=116676 tail: http://kde-apps.org/content/show.php/tail?content=118067 After that, try to mount inserted usb stick Actual Results: The usb key will no be mounted, and on log there will appear following message: console-kit-daemon[2097]: WARNING: Couldn't read /proc/2766/environ: Failed to open file '/proc/2766/environ': No such file or directory where mentioned proc (in that case 2766) is: kdeinit4 plasma-desktop, which silently disappeared at the moment of starting of the python applet. Expected Results: Normal mount of usb stick. It happen frequently, that if there are active python applets, the login procedure to kde is taking very long time, and plasma-desktop is taking 100% of cpu usage. killing of plasma-desktop, and restarting it after few minutes helps in most cases.
I just checked on kde-4.7.3 The problems still persists. As I can see, in the process list, the process kdeinit4: plasma-desktop is restarted after activation of the python-plasmoid. In the following process list there are two snapshots, first one before loading of python plasmoid, and second one after loading of the python plasmoid. 1 S mirek 21805 1 0 80 0 - 77576 poll_s 09:37 ? 00:00:00 kdeinit4: kdeinit4 Running... 1 S mirek 21812 21805 0 80 0 - 78820 poll_s 09:37 ? 00:00:00 kdeinit4: klauncher [kdeinit] --fd=8 1 S mirek 21821 1 1 80 0 - 171439 poll_s 09:37 ? 00:00:01 kdeinit4: kded4 [kdeinit] 1 S mirek 21844 1 0 80 0 - 96779 poll_s 09:37 ? 00:00:00 kdeinit4: kglobalaccel [kdeinit] 1 S mirek 21862 1 0 80 0 - 97394 poll_s 09:37 ? 00:00:00 kdeinit4: kwalletd [kdeinit] 1 S mirek 21896 21805 0 80 0 - 117233 poll_s 09:37 ? 00:00:00 kdeinit4: ksmserver [kdeinit] 1 S mirek 22022 1 16 80 0 - 250569 poll_s 09:37 ? 00:00:11 kdeinit4: plasma-desktop [kdeinit] 1 S mirek 22097 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/lancelotG22049.slave-socket 1 S mirek 22099 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/lancelotD22049.slave-socket 1 S mirek 22103 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/lancelotA22049.slave-socket 1 S mirek 22188 21805 0 80 0 - 81695 poll_s 09:37 ? 00:00:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/plasma-desktops22022.slave-socket 1 S mirek 22191 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/plasma-desktopr22022.slave-socket 1 S mirek 22210 1 0 80 0 - 97071 poll_s 09:37 ? 00:00:00 kdeinit4: kaccess [kdeinit] 1 S mirek 22218 1 2 80 0 - 169514 poll_s 09:37 ? 00:00:01 kdeinit4: krunner [kdeinit] 1 S mirek 22270 21805 0 80 0 - 81695 poll_s 09:37 ? 00:00:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/krunnerX22218.slave-socket 1 S mirek 22472 1 0 80 0 - 139910 poll_s 09:37 ? 00:00:00 kdeinit4: kmix [kdeinit] -session 10144143108142000132121202800000166360011_1321212751_83906 1 S mirek 22506 1 0 80 0 - 97810 poll_s 09:37 ? 00:00:00 kdeinit4: klipper [kdeinit] 1 R mirek 22676 1 1 80 0 - 120477 - 09:37 ? 00:00:00 kdeinit4: konsole [kdeinit] --profile Shell 0 S mirek 25001 22689 0 80 0 - 1746 pipe_w 09:38 pts/4 00:00:00 grep --colour=auto kdeinit mirek@laptop-mirka ~ $ ps -afel|grep kdeinit 0 S mirek 931 22689 0 80 0 - 1745 pipe_w 09:39 pts/4 00:00:00 grep --colour=auto kdeinit 1 S mirek 21805 1 0 80 0 - 77576 poll_s 09:37 ? 00:00:00 kdeinit4: kdeinit4 Running... 1 S mirek 21812 21805 0 80 0 - 78266 poll_s 09:37 ? 00:00:00 kdeinit4: klauncher [kdeinit] --fd=8 1 S mirek 21821 1 1 80 0 - 171439 poll_s 09:37 ? 00:00:01 kdeinit4: kded4 [kdeinit] 1 S mirek 21844 1 0 80 0 - 96779 poll_s 09:37 ? 00:00:00 kdeinit4: kglobalaccel [kdeinit] 1 S mirek 21862 1 0 80 0 - 97394 poll_s 09:37 ? 00:00:00 kdeinit4: kwalletd [kdeinit] 1 S mirek 21896 21805 0 80 0 - 117233 poll_s 09:37 ? 00:00:00 kdeinit4: ksmserver [kdeinit] 1 S mirek 22097 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/lancelotG22049.slave-socket 1 S mirek 22099 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/lancelotD22049.slave-socket 1 S mirek 22103 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/lancelotA22049.slave-socket 1 S mirek 22188 21805 0 80 0 - 81695 poll_s 09:37 ? 00:00:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/plasma-desktops22022.slave-socket 1 S mirek 22191 21805 0 80 0 - 79694 poll_s 09:37 ? 00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/plasma-desktopr22022.slave-socket 1 S mirek 22210 1 0 80 0 - 97071 poll_s 09:37 ? 00:00:00 kdeinit4: kaccess [kdeinit] 1 S mirek 22218 1 1 80 0 - 168960 poll_s 09:37 ? 00:00:01 kdeinit4: krunner [kdeinit] 1 S mirek 22270 21805 0 80 0 - 81695 poll_s 09:37 ? 00:00:00 kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-mirek/klauncherT21812.slave-socket local:/tmp/ksocket-mirek/krunnerX22218.slave-socket 1 S mirek 22472 1 0 80 0 - 139910 poll_s 09:37 ? 00:00:00 kdeinit4: kmix [kdeinit] -session 10144143108142000132121202800000166360011_1321212751_83906 1 S mirek 22506 1 0 80 0 - 97810 poll_s 09:37 ? 00:00:00 kdeinit4: klipper [kdeinit] 1 S mirek 22676 1 1 80 0 - 120477 poll_s 09:37 ? 00:00:01 kdeinit4: konsole [kdeinit] --profile Shell 1 S mirek 32424 1 15 80 0 - 278189 poll_s 09:38 ? 00:00:01 kdeinit4: plasma-desktop [kdeinit] What is changed? the process number of kdeinit4: plasma-desktop [kdeinit]. Now if I try to mount usb stick using device manager I get following error in system log: Nov 14 09:39:53 laptop-mirka console-kit-daemon[2989]: WARNING: Couldn't read /proc/22022/environ: Failed to open file '/proc/22022/environ': No such file or directory
problem in python bindings and in consolekit, neither of which we can do much about from plasma's code.