coral-pi-rest-server icon indicating copy to clipboard operation
coral-pi-rest-server copied to clipboard

Flask debug mode causes the mystical "HandleQueuedBulkIn transfer in failed. Not found: USB transfer error 5"

Open tracetechnical opened this issue 3 years ago • 1 comments

Flask debug mode causes the app to initialise twice, opening another "handle" to the edge TPU.

Turning debug mode off fixes this.

Ref: https://stackoverflow.com/questions/9449101/how-to-stop-flask-from-initialising-twice-in-debug-mode#:~:text=When%20building%20a%20Flask%20service,Flask%20service%20only%20initialises%20once.

tracetechnical avatar Oct 05 '21 22:10 tracetechnical

Thanks for the alert!

robmarkcole avatar Oct 10 '21 04:10 robmarkcole