[fprint] Unplug device while enrollment/verify process
Carlos Garcia
gavajc at live.com
Mon Jan 18 16:07:40 UTC 2021
Hi everyone. My name is Carlos from México. I recently got to know the libfprint project and I'm interested in using the library.
I made a port of libfprint for Windows O.S. using MSYS2 and works fine. I have tested the examples provided in the library v1.90.6 for the enroll and verify processes in Linux (Ubuntu 18.04 LTS) and Windows using the device: Digital Persona U are U 4500.
When I testing the examples I found a possible error (really I don't known if really is an error or I'm not using correctly the library). When the process for Enroll or Verify is executing and ask for the FINGER ON, if I unplug the USB device then the user callback will never be called. Internally the device is DEACTIVATE so the state change to DEACTIVATE but the action remains as FPI_DEVICE_ACTION_ENROLL or FPI_DEVICE_ACTION_VERIFY according to the case. This is a problem because I'm never notified and it causes the app to hang.
If I plug the device again nothing happens, just a message saying it can't be bind.
If I prepare the examples for GCancellable, create a signal handler for SIGINT and execute g_cancellable_cancel inside the signal handler, nothing happens, it only indicates that the device is already DEACTIVATE
If I try to close the device I have an error FP_DEVICE_ERROR_BUSY.
So someone can help me?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fprint/attachments/20210118/75276477/attachment.htm>
More information about the fprint
mailing list