Bug 91501 - endless capture loop
Summary: endless capture loop
Status: RESOLVED MOVED
Alias: None
Product: libfprint
Classification: Unclassified
Component: libfprint (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium blocker
Assignee: libfprint-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 10:06 UTC by tx0h
Modified: 2018-05-31 08:56 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
console capture, shortened (9.08 KB, text/plain)
2015-07-29 10:06 UTC, tx0h
Details

Description tx0h 2015-07-29 10:06:17 UTC
Created attachment 117441 [details]
console capture, shortened

hi,

i tried debian binary packages 0.6.0-1 resp. 0.6.0-2 as well as building from debian source packages and also from git head from today:

libfprint commit f1fdd71613a483e054cd11e19bdcfb49c95fa2cb
fprintd commit   fa31b0aec28e2d1863307cd4c1e3ab1d136af733

i use a lenovo 3000 n200 with

Bus 004 Device 002: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor

i started fprintd as root and fprintd-enroll as user. compiled with debug log enabled. console log of fprintd is a bit shortened attached to this report....

it seems that the capture loop didn't find any exit. this means it scans for ever and i don't get an enrollment.

if you need further information, please let me know.

thanx,
tx0h
Comment 1 tx0h 2015-07-29 17:21:08 UTC
here is my cheap, but working hack:

diff --git a/libfprint/drivers/aes2501.c b/libfprint/drivers/aes2501.c
index 264e2dc..63001ee 100644
--- a/libfprint/drivers/aes2501.c
+++ b/libfprint/drivers/aes2501.c
@@ -477,7 +477,7 @@ static void capture_read_strip_cb(struct libusb_transfer *transfer)
        /* Sum is 0, maybe finger was removed? Wait for 3 empty frames
         * to ensure
         */
-       if (sum == 0) {
+       if (sum <= 1) {
                aesdev->no_finger_cnt++;
                if (aesdev->no_finger_cnt == 3) {
                        struct fp_img *img;
Comment 2 tx0h 2015-07-29 19:32:12 UTC
well, i mean i suggested a bug fix. this doesn't mean the bug is fixed for the package per se. if you know what i mean....
Comment 3 GitLab Migration User 2018-05-31 08:56:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/libfprint/libfprint/issues/49.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.