java.lang.RuntimeException: Unable to start activity ComponentInfo{org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.RuntimeException: Fail to get camera info

JIRA | Shawn Peters | 5 months ago
  1. 0

    Hey guys, first post here. About three days ago, I had the stock Sense 6 (or 7?) on my android, completely stock. I was having problems with my camera working intermittently, or not at all sometimes. PROBLEM: When any camera app is opened (camera, snapchat, messenger camera, etc), the screen goes to black, AND/OR states that the camera has stopped, or the camera cannot open. Unable to switch to front/back camera. ATTEMPTED FIXES: Restart the phone, power down, and power up the phone. Close the afflicted application and reopen. Attempt to clear camera cache/data. Force close camera & attempt to re-open. Factory reset. I have tried all of the above attempted fixes. I have even rooted my phone to Cyanogenmod 12.1 and it is not fixed. When it does work, it will show what the camera is pointing at for about 1/2 a second, and then freeze on the frame that it last saw. Camera is unresponsive when the frame is frozen. Snapchat does not work, camera does not work, no 3rd party apps worked. Multiple re-installs of stock android and Cyanogenmod have not fixed the issue. Again, the phone is in like new condition, and my issue is persistent. Does anyone have a fix to this? I've looked up countless pages on google and XDA and attempted all the fixes. It appears some users are having the same issue. This phone was replaced about a month ago, so I ruled hardware damage out. However, with further research, I may consider it to be an issu once again. LOG: java.lang.RuntimeException: Unable to start activity ComponentInfo{org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.RuntimeException: Fail to get camera info at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.RuntimeException: Fail to get camera info at android.hardware.Camera._getCameraInfo(Native Method) at android.hardware.Camera.getCameraInfo(Camera.java:245) at com.android.camera.CameraHolder.<init>(CameraHolder.java:173) at com.android.camera.CameraHolder.instance(CameraHolder.java:127) at com.android.camera.CameraSettings.readPreferredCameraId(CameraSettings.java:1215) at com.android.camera.CameraSettings.upgradeCameraId(CameraSettings.java:1203) at com.android.camera.CameraSettings.upgradeGlobalPreferences(CameraSettings.java:1133) at com.android.camera.PhotoModule.init(PhotoModule.java:509) at com.android.camera.CameraActivity.setModuleFromIndex(CameraActivity.java:1938) at com.android.camera.CameraActivity.onCreate(CameraActivity.java:1495) at android.app.Activity.performCreate(Activity.java:6251) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403) ... 9 more I rooted my phone with proper direction, and am now running CG 13 with Gapps 6.0.

    JIRA | 5 months ago | Shawn Peters
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.RuntimeException: Fail to get camera info
  2. 0

    Change android theme at runtime

    Stack Overflow | 8 months ago | Shayan D
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.shahinsoft.snote/com.shahinsoft.snote.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
  3. 0

    Uncaught Exception

    GitHub | 8 months ago | MisterY
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.money.manager.ex/com.money.manager.ex.recurring.transactions.RecurringTransactionEditActivity}: java.lang.IllegalArgumentException: Account not found -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When viewing memory usage under Settings -> Memory -> Memory used by apps, a mystery app is present. Unlike with other apps, tapping this one causes settings to crash. I have attached the error information: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5461) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.android.settings.applications.ProcessStatsDetail.onViewCreated(ProcessStatsDetail.java:124) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:988) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148) at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1130) at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1953) at android.app.FragmentController.dispatchActivityCreated(FragmentController.java:152) at android.app.Activity.performCreateCommon(Activity.java:6245) at android.app.Activity.performCreate(Activity.java:6253) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403) ... 9 more

    JIRA | 8 months ago | Benjamin Kilpatrick
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
  6. 0

    Error: "must implement OnFragmentInteractionListener"

    Stack Overflow | 8 months ago | Shinr3x
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.shinr3x.termodinamica/com.shinr3x.termodinamica.MainActivity}: java.lang.RuntimeException: com.shinr3x.termodinamica.MainActivity@c8d33c6 must implement OnFragmentInteractionListener

  1. Riyaz 2 times, last 3 days ago
  2. malhobayyeb 9 times, last 2 weeks ago
  3. bluebunnty 11 times, last 2 weeks ago
  4. Aria Pahlavan 1045 times, last 1 week ago
  5. Alexandru Popa 12 times, last 3 weeks ago
39 more registered users
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{org.cyanogenmod.snap/com.android.camera.CameraActivity}: java.lang.RuntimeException: Fail to get camera info

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2450)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
    2 frames