Community

Topic: Android SDK

Trial App Crashes

Roshni
Thursday, March 8, 2018

Trial App Crashes sometimes when Marker Found.
Logcat:

FATAL EXCEPTION: main

Process: com.pikkart.trial, PID: 26250
java.lang.NullPointerException: Attempt to invoke virtual method 'com.pikkart.ar.recognition.RecognitionOptions$RecognitionMode com.pikkart.ar.recognition.RecognitionOptions.getMode()' on a null object reference
at com.pikkart.ar.recognition.RecognitionManager.localMarkerFound(RecognitionManager.java:253)
at com.pikkart.ar.recognition.ARNativeWrapper.LocalMarkerFound(ARNativeWrapper.java:146)
at com.pikkart.ar.recognition.ARNativeWrapper.ImageProcessing(Native Method)
at com.pikkart.ar.recognition.RecognitionFragment.onPreviewFrame(RecognitionFragment.java:529)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1150)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

user profile image
Support Team  (expert)
Monday, March 12, 2018

Hi,
could you post the call to the startRecognition method in the activity?

Sign in to add a comment