autocomplete-plus-python-jedi icon indicating copy to clipboard operation
autocomplete-plus-python-jedi copied to clipboard

Process leak - `python .../jedi-cmd.py` persists even after quitting Atom

Open posita opened this issue 10 years ago • 3 comments

I have quit atom, and yet at least one python .../jedi-cmd.py process persists:

% alias psu
psu='ps -o pid,ppid,pri,tt,stat,time,%cpu,%mem,start,command'
% alias psx
psx='psu -x'
% psx -www | grep -Ei 'atom|jedi'
91174     1  31   ??  S      0:00.30   0.0  0.1  1:29PM python .../.atom/packages/autocomplete-plus-python-jedi/lib/jedi-cmd.py undefined
97874 95590  31 s005  S+     0:00.00   0.0  0.0  4:06PM grep -Ei atom|jedi

The second column is the PPID. Note that it is now 1 rather than the window process (see process.pid in developer console). After restarting Atom, opening a .py file, and quitting Atom twice:

% psx -www | grep -Ei 'atom|jedi'
91174     1  31   ??  S      0:00.30   0.0  0.1  1:29PM python .../.atom/packages/autocomplete-plus-python-jedi/lib/jedi-cmd.py undefined
97949     1  31   ??  S      0:00.15   0.0  0.0  4:07PM python .../.atom/packages/autocomplete-plus-python-jedi/lib/jedi-cmd.py .../Documents/dev/veritaseum/server
98177     1  31   ??  S      0:00.08   0.0  0.0  4:09PM python .../.atom/packages/autocomplete-plus-python-jedi/lib/jedi-cmd.py .../Documents/dev/veritaseum/server
98256 95590  31 s005  S+     0:00.00   0.0  0.0  4:09PM grep -Ei atom|jedi

posita avatar Apr 22 '15 23:04 posita

That's weird. What OS are you using?

tinloaf avatar Apr 23 '15 11:04 tinloaf

That's weird. What OS are you using?

OS X 10.9.5.

% uname -a
Darwin ... 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64

posita avatar Apr 23 '15 13:04 posita

Possibly related to #6 (or at least reproducible alongside it)? See this https://github.com/tinloaf/autocomplete-plus-python-jedi/issues/6#issuecomment-95606672.

posita avatar Apr 23 '15 14:04 posita