tuanthng / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

errors while startup of the face authentication pam pluin #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Train your face running qt-facetrainer.
- Configure the system to use face authentication for su.
- When you run 'su -' then the following output is seen:

thomas@thomas ~ % LANG=en_US su -
mmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Unable to stop the stream.: Bad file descriptor
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
munmap: Invalid argument
Face Verification Pluggable Authentication Module Started
Biometrics Model not Generated for the User.
Giving Up Face Authentication. Try Again=(.
Password: 

I dont know why the message 'Biometrics Model not Generated for the User.' is 
appearing. The following files are existing:
.pam-face-authentication/config:
-rw-r--r-- 1 thomas users 105 Jul 30 17:10 mace.xml

.pam-face-authentication/faces:
drwx------ 2 thomas users 4096 Aug  1 12:17 110711217283023027980/

.pam-face-authentication/model:
-rw-rw-r-- 1 thomas users 835768 Aug  1 12:17 110711217283023027980_eye_mace.xml
-rw-rw-r-- 1 thomas users   4419 Aug  1 12:17 110711217283023027980_face_lbp.xml
-rw-rw-r-- 1 thomas users 833329 Aug  1 12:17 
110711217283023027980_face_mace.xml
-rw-rw-r-- 1 thomas users 831203 Aug  1 12:17 
110711217283023027980_inside_face_mace.xml

What is the expected output? What do you see instead?
I expect face authentication let me show my face to it ;)
This time, it immediately shows 'Giving Up Face Authentication.'

What version of the product are you using? On what operating system?
I compiled pam-face-authentication 0.3 successfully on my archlinux laptop.
The following versions of opencv and pam are installed:
pam    1.1.1
opencv 2.1.0

Please provide any additional information below.
I think i said all i know ;) Please ask for more informations if this is not 
enough.

Thanks for your efforts in advance!
It were great to run your piece of code on my computer :)

Original issue reported on code.google.com by Thomas-B...@gmx.net on 1 Aug 2010 at 11:10

GoogleCodeExporter commented 9 years ago
mmap: Invalid argument
^^ probably something do with the webcam driver 

you should login to root 
and then run qt-facetrainer so that you create the biometric data for the user 
"root"

Hope this helps :) 

Original comment by rohan.a...@gmail.com on 1 Aug 2010 at 11:20

GoogleCodeExporter commented 9 years ago
yes, thanks!

it helped to train my face for the root user :)
My fault, i should know that root-password or even root-face is getting 
verified ;)

The 'mmap: Invalid argument' message are not gone, but this can be debugged i 
think.
I try to debug it myself.

Original comment by Thomas-B...@gmx.net on 1 Aug 2010 at 12:07

GoogleCodeExporter commented 9 years ago

Original comment by rohan.a...@gmail.com on 1 Aug 2010 at 3:03