Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: Fragment ScanFragmentX #88

Open
gauravdubey opened this issue Jun 28, 2024 · 0 comments
Open

java.lang.IllegalStateException: Fragment ScanFragmentX #88

gauravdubey opened this issue Jun 28, 2024 · 0 comments

Comments

@gauravdubey
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant