Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to deallocate libusb delegates "leaked" after Python process is killed #36

Open
talcs opened this issue Dec 15, 2021 · 2 comments
Assignees
Labels
Hardware:Accelerator Module Coral Accelerator Module issues stat:community support Staus - Community Support subtype:windows Windos Build/installation issues type:others Issues not falling in bug, perfromance, support, build and install or feature

Comments

@talcs
Copy link

talcs commented Dec 15, 2021

From experience on the Windows10 machine I work on, any USB socket becomes unusable for Coral USB stick if the Python/TFLite process that ran it has been killed - the OS resources stay occupied and cannot be allocated again for a given USB socket.

The only workaround I found so far is once the USB socket cannot accept Coral anymore (getting an error from edgetpu.dll), is moving Coral to another USB socket which hasn't become unusable yet, or restarting the machine, which is many times very unwanted.

Those unordinary process kills can happen while debugging, finally forcing to restart the computer when all USB sockets are allocated forever... It will be great if a script is supplied to deallocate all "leaked" allocated delegates using libusb.

@hjonnala
Copy link

HI @talcs can you try the way 2 from this link: https://www.partitionwizard.com/partitionmanager/how-do-i-reset-my-usb-ports.html

@hjonnala hjonnala added Hardware:Accelerator Module Coral Accelerator Module issues stat:community support Staus - Community Support type:others Issues not falling in bug, perfromance, support, build and install or feature subtype:windows Windos Build/installation issues labels Dec 16, 2021
@talcs
Copy link
Author

talcs commented Dec 16, 2021

Hi @hjonnala , Thank you, but sadly it didn't help... The value in my registry was already 3. Every single USB port works until the first time the application crashes abruptly without deallocating the resource.... Need to somehow access those runaway living delegates and deallocate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:Accelerator Module Coral Accelerator Module issues stat:community support Staus - Community Support subtype:windows Windos Build/installation issues type:others Issues not falling in bug, perfromance, support, build and install or feature
Projects
None yet
Development

No branches or pull requests

2 participants