Android Question Error when building Custom library for Neurotechnology Facial Recognition SDK

JOHN NG

Member
Licensed User
Longtime User
Hi, can anyone please help me into the problems im facing now? Im now creating a custom library for the Neurotech Facial Recognition for the b4a. Im able to build the library wrapper from the eclipse and import to the B4a. The problem now is the when i run in debug mode it able to load the view, but when i run in release mode it will have problem as show below:
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 339)
java.lang.RuntimeException: Bad file descriptor
ExternalError: 9
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:166)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
at b4a.example.main._activity_create(main.java:339)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: Bad file descriptor
ExternalError: 9
at com.neurotec.lang.RuntimeErrorCreator.create(RuntimeErrorCreator.java:54)
at com.neurotec.lang.ChainedErrorCreator.create(ChainedErrorCreator.java:22)
at com.neurotec.lang.NError.get(NError.java:174)
at com.neurotec.lang.NError.get(NError.java:191)
at com.neurotec.lang.NError.getLast(NError.java:205)
at com.neurotec.lang.NResult.checkUnchecked(NResult.java:235)
at com.neurotec.lang.NResult.raiseError(NResult.java:323)
at com.neurotec.lang.NResult.check(NResult.java:224)
at com.neurotec.face.verification.NFaceVerification.<init>(NFaceVerification.java:379)
at com.neurotec.face.verification.NFaceVerification.<init>(NFaceVerification.java:416)
at anywheresoftware.b4a.FacialRecognition.NFV.getInstance(NFV.java:17)
at anywheresoftware.b4a.FacialRecognition.SettingsFragment.loadSettings(SettingsFragment.java:45)
at anywheresoftware.b4a.FacialRecognition.VeriLook.DesignerCreateView(VeriLook.java:100)
at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:70)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:158)
... 14 more

Does anyone know why this is, or how can i fix this issue?

Besides, on debug mode i also got some problem where the live camera also cannot work correctly... when i call the enroll function, it supposed will come up a front camera view to detect the user face, but what i get is a static image and it always return bad image...

Can someone help me on this issue?
 
Top