[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2021-03-15 Thread Eryk Sun


Change by Eryk Sun :


--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2018-05-23 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

FYI, there's psutil.Process().num_handles() which you can use to count handles 
before and after subprocess invocation.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2018-05-23 Thread GranPrego

GranPrego  added the comment:

I'm now pretty convinced that sounddevice 0.3.11 library is the culprit, which 
may in turn point to the portaudio library, or CFFI.

I make a call to sd.play() just before calling subprocess to run the dos cmd, 
the timing was such that process explorer would make it look like the leak was 
occurring during the subprocess call, but isolating the sd.play  shows that it 
causing the two additional Thread handles to be created and never released 
until the script ends (which could be 1-48 hours or more)

Another section of the code was using sd._terminate() and sd._initialize() to 
work around a buffersize problem with sounddevice and these calls also leak 
thread handles.

I've cut the program down as much as possible and the following now shows the 
problem without the call to subprocess.  You'll need to change the 
sd.default.device to an appropriate sound card.

Thanks for the quick responses.  If you're happy that this is the correct 
analysis of issue then perhaps it could be reclassified as a different 
component or I can get in touch with the sounddevice author.

Regards,
Joe

--
Added file: https://bugs.python.org/file47613/soundeviceLeaker.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33603] Subprocess Thread handles grow with each call and aren't released [Windows]

2018-05-22 Thread Gregory P. Smith

Change by Gregory P. Smith :


--
title: Subprocess Thread handles  grow with each call and aren't released until 
script ends -> Subprocess Thread handles grow with each call and aren't 
released [Windows]

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com