On 24/11/24(Sun) 16:51, Kirill A. Korinsky wrote: > On Sun, 24 Nov 2024 15:34:30 +0100, > Martin Pieuchot <m...@grenadille.net> wrote: > > > > On 23/11/24(Sat) 21:45, Kirill A. Korinsky wrote: > > > I had dig a bit future and setup a breakpoint at usbd_ref_decr. > > > > > > It was called from uvideo_vs_start_bulk_thread, but still it crahses: > > > > Could you check if uvideo_vs_close() is called multiple times? > > > > I had setup two breakpoints: uvideo_close and uvideo_vs_close because here > no uvideo_vs_close in stacktrace and probably it is inlined. > > uvideo_close was called twice: the first time after I kill ffplay, and the > second time when I deattach webcam.
That might be the bug. Could you get us the trace for both threads?