You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am integrate the custom integration of GeniusScan in my project. I am using Fragment(not activity like custom demo) for this implementation. So Genius Camera is getting started and capture the photo and reached to the previewfragment. When we pressed the back button from previewfragment, the application is getting crashed. Same issue is coming for retake photo / additional photo.
Please help me on that.
It is showing the below crash logs:
FATAL EXCEPTION: main (Ask Gemini)
Process: com.kantarworldpanel.shoppix, PID: 27745
java.lang.IllegalStateException: Fragment ScanFragmentX{776eaac} (932c5ac6-64f7-4c2e-afbf-57c4b17a883a id=0x7f0a03ce) not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:972)
at com.geniusscansdk.camera.ScanFragmentX.initializeCamera(ScanFragmentX.java:146)
at com.candyspace.kantar.feature.scanner.geniuscamera.GeniusCameraFragment.onResume(GeniusCameraFragment.java:111)
at android.app.Fragment.performResume(Fragment.java:2551)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1346)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1581)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1642)
at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2220)
at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
The text was updated successfully, but these errors were encountered:
Hi Team,
I am integrate the custom integration of GeniusScan in my project. I am using Fragment(not activity like custom demo) for this implementation. So Genius Camera is getting started and capture the photo and reached to the previewfragment. When we pressed the back button from previewfragment, the application is getting crashed. Same issue is coming for retake photo / additional photo.
Please help me on that.
It is showing the below crash logs:
FATAL EXCEPTION: main (Ask Gemini)
Process: com.kantarworldpanel.shoppix, PID: 27745
java.lang.IllegalStateException: Fragment ScanFragmentX{776eaac} (932c5ac6-64f7-4c2e-afbf-57c4b17a883a id=0x7f0a03ce) not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:972)
at com.geniusscansdk.camera.ScanFragmentX.initializeCamera(ScanFragmentX.java:146)
at com.candyspace.kantar.feature.scanner.geniuscamera.GeniusCameraFragment.onResume(GeniusCameraFragment.java:111)
at android.app.Fragment.performResume(Fragment.java:2551)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1346)
at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1581)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1642)
at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2220)
at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2166)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2067)
at android.app.FragmentManagerImpl$1.run(FragmentManager.java:742)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
The text was updated successfully, but these errors were encountered: