[Samsung Galaxy Nexus] triphumphrey:
I recently tried to apply a series of updates (Rom, radios, kernel, Crossbreeder Mod) to my Verizon Galaxy Nexus SCH i515 and ran into a snag. Everytime I opened the camera application I would receive the message "Unfortunately, Gallery has stopped." I will also get this message upon a reboot of the phone. I first thought I had improperly wiped before applying the rom or done something out of order. So I began troubleshooting.... I will save the narrative for brevity sake and give you a list of what I have done.

Rewiped the phone using TWRP 2.6 and performing a full wipe of all options including sdcard

Using TWRP, I installed the latest (8.22) ShinyROM. Rebooted. (Got Error)

ShinyROM Author suggests CWRM over TWRP so I fastboot applied the latest Toro build of CWRM. I then proceeded to do an additional Wipe of all components and then Install the ShinyROM zip. Rebooted (Got Error)

This is my primary phone and I had now run out of time to mess with a new ROM and knowing I had wiped everything, I had to give up for the time being and get a working phone again

I proceeded to flash the 4.2.2 Factory img file using WugsFresh Root Toolkit. Hashes Verified. Factory Img applied. Reboot. (Got Error)

At this point I am starting to think a hardware component has failed but I am also unsure if perhaps the factory restore does not overwrite every sinngle bit of the device so I begin researching the issue further and since most people stated that if I run into this error and I have applied a factory restore then it must be hardware.

I heed the advice and since my wife has the exact same phone I disassemble both phones and proceed to remove both fully functioning cameras (front ) and (back) from my wife's phone.

I test for the error as follows:

orig Back + func Front = (Got Error)

func Back + orig Front = (Got Error)

func Back + func Front = (Got Error)

I am now fairly certain that it is something software related which follows logically as nothing had physically occurred to my phone that would have led me to think a hardware component would fail. So everything I have found seems to state clearly that a factory img wipes all components of a phone, which on some level I assume is not the whole story because a factory restore is technically overwriting certain partitions with their original contents and not performing a bit for bit copy of what was originally on the phone. Just to be sure I though maybe the latest factory restore does not include ALL of these components but the original 4.0.2 img would so I roll back all the way to the first factory image available for the toro. Rebooted (Got Error) I let the OS OTA update all the way to 4.2.2 receiving errors at each intermediate step.

That is where my phone currently is....

Model: Samsung Galaxy Nexus SCH-i515

Carrier: Verizon

Version:4.2.2 OTA'd from the original Factory Image

Radio: FK01/FK02

Build: JDQ39

I can produce the error from the gallery, the camera app, and a I downloaded a third party camera app too. Here are the logcat captures that I found.

Logcat of opening Camera

I/ActivityManager( 373): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.gallery3d/com.android.camera.Camera bnds=[40,785][200,985]} from pid 3990
I/ActivityManager( 373): Start proc com.google.android.gallery3d for activity com.google.android.gallery3d/com.android.camera.Camera: pid=10044 uid=10020 gids={50020, 1006, 3003, 1015, 1028}
D/dalvikvm(10044): GC_CONCURRENT freed 316K, 4% free 9017K/9364K, paused 2ms+3ms, total 30ms
D/dalvikvm(10044): GC_CONCURRENT freed 178K, 3% free 9246K/9464K, paused 3ms+5ms, total 26ms
D/dalvikvm(10044): GC_FOR_ALLOC freed 40K, 2% free 9469K/9644K, paused 16ms, total 17ms
D/dalvikvm(10044): GC_FOR_ALLOC freed 6K, 2% free 9689K/9872K, paused 14ms, total 14ms
D/dalvikvm(10044): GC_FOR_ALLOC freed 3K, 2% free 10026K/10220K, paused 15ms, total 15ms
V/StateManager(10044): startState class com.android.gallery3d.app.FilmstripPage
E/CameraHAL( 127): Couldn't get camera properties
W/dalvikvm(10044): threadid=20: thread exiting with uncaught exception (group=0x41f34700)
E/AndroidRuntime(10044): FATAL EXCEPTION: Thread-558
E/AndroidRuntime(10044): java.lang.RuntimeException: Fail to get camera info
E/AndroidRuntime(10044): at android.hardware.Camera._getCameraInfo(Native Method)
E/AndroidRuntime(10044): at android.hardware.Camera.getCameraInfo(Camera.java:202)
E/AndroidRuntime(10044): at com.android.camera.CameraHolder.<init>(CameraHolder.java:169)
E/AndroidRuntime(10044): at com.android.camera.CameraHolder.instance(CameraHolder.java:123)
E/AndroidRuntime(10044): at com.android.camera.Util.openCamera(Util.java:316)
E/AndroidRuntime(10044): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:294)
W/ActivityManager( 373): Force finishing activity com.google.android.gallery3d/com.android.camera.Camera
I/WindowManager( 373): Screenshot max retries 4 of Token{428b1940 ActivityRecord{42978b58 u0 com.google.android.gallery3d/com.android.camera.Camera}} appWin=Window{42ca4760 u0 Starting com.google.android.gallery3d} drawState=4
W/WindowManager( 373): Screenshot failure taking screenshot for (720x1280) to layer 21030
D/dalvikvm(10044): GC_CONCURRENT freed 202K, 3% free 10321K/10564K, paused 3ms+3ms, total 42ms
D/dalvikvm(10044): WAIT_FOR_CONCURRENT_GC blocked 23ms
W/ActivityManager( 373): Activity pause timeout for ActivityRecord{42978b58 u0 com.google.android.gallery3d/com.android.camera.Camera}
D/i ( 9605): scheduled task [GmmLocationControllerStatus Update]
I/GAV2 (10044): Thread[GAThread,5,main]: No campaign data found.
D/dalvikvm(10044): GC_CONCURRENT freed 378K, 5% free 10356K/10824K, paused 9ms+3ms, total 39ms
I/Process (10044): Sending signal. PID: 10044 SIG: 9
W/InputDispatcher( 373): channel '430845e8 com.google.android.gallery3d/com.android.camera.Camera (server)' ~ Consumer closed input channel or an error occurred. events=0x9
E/InputDispatcher( 373): channel '430845e8 com.google.android.gallery3d/com.android.camera.Camera (server)' ~ Channel is unrecoverably broken and will be disposed!
I/ActivityManager( 373): Process com.google.android.gallery3d (pid 10044) has died.
W/InputDispatcher( 373): Attempted to unregister already unregistered input channel '430845e8 com.google.android.gallery3d/com.android.camera.Camera (server)'
I/WindowState( 373): WIN DEATH: Window{430845e8 u0 com.google.android.gallery3d/com.android.camera.Camera}
W/InputMethodManagerService( 373): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42d8e808 attribute=null, token = android.os.BinderProxy@42d80ac0

Logcat of opening Camera from within the Gallery

I/ActivityManager( 370): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.gallery3d/com.android.camera.CameraLauncher
bnds=[200,585][360,785]} from pid 596
D/dalvikvm( 6164): GC_FOR_ALLOC freed 102K, 4% free 9003K/9324K, paused 12ms, total 14ms
I/dalvikvm-heap( 6164): Grow heap (frag case) to 9.036MB for 230416-byte allocation
D/dalvikvm( 6164): GC_FOR_ALLOC freed 1K, 4% free 9227K/9552K, paused 18ms, total 18ms
D/dalvikvm( 6164): GC_FOR_ALLOC freed 6K, 4% free 9222K/9552K, paused 12ms, total 13ms
I/dalvikvm-heap( 6164): Grow heap (frag case) to 9.249MB for 230416-byte allocation
D/dalvikvm( 6164): GC_FOR_ALLOC freed <1K, 4% free 9446K/9780K, paused 16ms, total 16ms
E/CameraHAL( 129): Couldn't get camera properties
W/dalvikvm( 6164): threadid=15: thread exiting with uncaught exception (group=0x4196b930)
E/AndroidRuntime( 6164): FATAL EXCEPTION: Thread-248
E/AndroidRuntime( 6164): java.lang.RuntimeException: Fail to get camera info
E/AndroidRuntime( 6164): at android.hardware.Camera._getCameraInfo(Native Method)
E/AndroidRuntime( 6164): at android.hardware.Camera.getCameraInfo(Camera.java:201)
E/AndroidRuntime( 6164): at com.android.camera.CameraHolder.<init>(CameraHolder.java:169)
E/AndroidRuntime( 6164): at com.android.camera.CameraHolder.instance(CameraHolder.java:123)
E/AndroidRuntime( 6164): at com.android.camera.Util.openCamera(Util.java:315)
E/AndroidRuntime( 6164): at com.android.camera.PhotoModule$CameraStartUpThread.run(PhotoModule.java:316)
W/ActivityManager( 370): Force finishing activity com.google.android.gallery3d/com.android.camera.CameraLauncher
D/dalvikvm( 6164): GC_FOR_ALLOC freed 57K, 4% free 9672K/9980K, paused 17ms, total 18ms
D/dalvikvm( 6164): GC_FOR_ALLOC freed 4K, 3% free 9902K/10188K, paused 18ms, total 18ms
V/StateManager( 6164): startState class com.android.gallery3d.app.PhotoPage
D/dalvikvm( 6164): GC_CONCURRENT freed 152K, 2% free 10216K/10400K, paused 2ms+4ms, total 25ms
I/GmsClient( 6164): connect: bindService returned true for Intent { act=com.google.android.gms.panorama.service.START }
W/SensorService( 370): sensor 00000001 already enabled in connection 0x5cebd048 (ignoring)
W/ActivityManager( 370): Activity pause timeout for ActivityRecord{42769938 u0 com.google.android.gallery3d/com.android.camera.CameraLauncher}
D/ConnectivityService( 370): handleInetConditionChange: no active default network - ignore
W/ActivityManager( 370): Activity destroy timeout for ActivityRecord{42769938 u0 com.google.android.gallery3d/com.android.camera.CameraLauncher}
D/LightsService( 370): Excessive delay setting light: 66ms
D/LightsService( 370): Excessive delay setting light: 67ms
D/LightsService( 370): Excessive delay setting light: 66ms
D/LightsService( 370): Excessive delay setting light: 65ms
I/PowerManagerService( 370): Going to sleep due to screen timeout...
D/SurfaceFlinger( 126): Screen released, type=0 flinger=0x41f96318
D/YouTube MDX( 5878): Recieved intent android.intent.action.SCREEN_OFF
D/dalvikvm( 370): GC_CONCURRENT freed 1576K, 22% free 17170K/21996K, paused 4ms+10ms, total 95ms
D/ConnectivityService( 370): NetTransition Wakelock for WifiStateMachine released by timeout
D/PhoneStatusBar( 447): disable: < expand icons alerts ticker system_info back home RECENT* clock search >
V/TAG ( 370): bug 7643792: fitSystemWindows([0,50][0,0])
D/PhoneStatusBar( 447): disable: < expand icons alerts ticker system_info BACK* HOME* RECENT clock search >

Logcat of opening "Mobile Hidden Camera" App

I/ActivityManager( 370): Start proc com.zecurisoft.mhc1202 for activity com.zecurisoft.mhc1202/.StartupActivity: pid=6740 uid=10003 gids={50003, 1006, 1015, 1028}
I/ActivityManager( 370): START u0 {cmp=com.zecurisoft.mhc1202/.HomeActivity} from pid 6740
D/dalvikvm( 6740): GC_CONCURRENT freed 137K, 2% free 8993K/9160K, paused 4ms+1ms, total 25ms
D/dalvikvm( 6740): WAIT_FOR_CONCURRENT_GC blocked 10ms
E/CameraHAL( 129): Couldn't get camera properties
E/CameraService( 129): Invalid camera id 0
W/System.err( 6740): java.lang.RuntimeException: Fail to connect to camera service
W/System.err( 6740): at android.hardware.Camera.native_setup(Native Method)
W/System.err( 6740): at android.hardware.Camera.<init>(Camera.java:340)
W/System.err( 6740): at android.hardware.Camera.open(Camera.java:302)
W/System.err( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.ITCSKMNHDY(Unknown Source)
W/System.err( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.BKCWSUWTIG(Unknown Source)
W/System.err( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.WCWYHBYAHQ(Unknown Source)
W/System.err( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.BKCWSUWTIG(Unknown Source)
W/System.err( 6740): at com.zecurisoft.mhc1202.HomeActivity.MBBUADLEVG(Unknown Source)
W/System.err( 6740): at com.zecurisoft.mhc1202.HomeActivity.onCreate(Unknown Source)
W/System.err( 6740): at android.app.Activity.performCreate(Activity.java:5104)
W/System.err( 6740): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
W/System.err( 6740): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
W/System.err( 6740): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
W/System.err( 6740): at android.app.ActivityThread.access$600(ActivityThread.java:141)
W/System.err( 6740): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
W/System.err( 6740): at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 6740): at android.os.Looper.loop(Looper.java:137)
W/System.err( 6740): at android.app.ActivityThread.main(ActivityThread.java:5041)
W/System.err( 6740): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 6740): at java.lang.reflect.Method.invoke(Method.java:511)
W/System.err( 6740): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
W/System.err( 6740): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
W/System.err( 6740): at dalvik.system.NativeStart.main(Native Method)
D/AndroidRuntime( 6740): Shutting down VM
W/dalvikvm( 6740): threadid=1: thread exiting with uncaught exception (group=0x4196b930)
E/AndroidRuntime( 6740): FATAL EXCEPTION: main
E/AndroidRuntime( 6740): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zecurisoft.mhc1202/com.zecurisoft.mhc1202.HomeActivity}: java.lang.NullPointerException
E/AndroidRuntime( 6740): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
E/AndroidRuntime( 6740): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
E/AndroidRuntime( 6740): at android.app.ActivityThread.access$600(ActivityThread.java:141)
E/AndroidRuntime( 6740): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
E/AndroidRuntime( 6740): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 6740): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 6740): at android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime( 6740): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 6740): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 6740): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 6740): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 6740): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 6740): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.BKCWSUWTIG(Unknown Source)
E/AndroidRuntime( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.WCWYHBYAHQ(Unknown Source)
E/AndroidRuntime( 6740): at com.zecurisoft.lib.YMFEJKSSOH.OVAFYFREZH.BKCWSUWTIG(Unknown Source)
E/AndroidRuntime( 6740): at com.zecurisoft.mhc1202.HomeActivity.MBBUADLEVG(Unknown Source)
E/AndroidRuntime( 6740): at com.zecurisoft.mhc1202.HomeActivity.onCreate(Unknown Source)
E/AndroidRuntime( 6740): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 6740): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 6740): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
E/AndroidRuntime( 6740): ... 11 more
W/ActivityManager( 370): Force finishing activity com.zecurisoft.mhc1202/.HomeActivity
W/ActivityManager( 370): Force finishing activity com.zecurisoft.mhc1202/.StartupActivity
W/ActivityManager( 370): Activity pause timeout for ActivityRecord{42209040 u0 com.zecurisoft.mhc1202/.HomeActivity}
W/CellInfoLte( 564): getCellSignalStrength: CellSignalStrengthLte: ss=2 rsrp=-116 rsrq=-16 rssnr=-80 cqi=7 ta=2147483647
W/CellInfoLte( 564): getCellIdentity: LteCellIdentitiy:android.telephony.CellIdentityLte@36120154 mMcc=311 mMnc=480 mCi=29261057 mPci=162 mTac=882
W/CellInfoLte( 564): writeToParcel(Parcel, int): CellInfoLte: mRegistered=YES mTimeStampType=java_ril mTimeStamp=29733390000ns, LteCellIdentitiy:android.telephony.CellIdentityLte@36120154
mMcc=311 mMnc=480 mCi=29261057 mPci=162 mTac=882, CellSignalStrengthLte: ss=2 rsrp=-116 rsrq=-16 rssnr=-80 cqi=7 ta=2147483647
W/CellInfoLte( 370): CellInfoLte(Parcel): CellInfoLte: mRegistered=YES mTimeStampType=java_ril mTimeStamp=29733390000ns, LteCellIdentitiy:android.telephony.CellIdentityLte@36120154 mMcc=3
11 mMnc=480 mCi=29261057 mPci=162 mTac=882, CellSignalStrengthLte: ss=2 rsrp=-116 rsrq=-16 rssnr=-80 cqi=7 ta=2147483647
W/CellInfoLte( 370): writeToParcel(Parcel, int): CellInfoLte: mRegistered=YES mTimeStampType=java_ril mTimeStamp=29733390000ns, LteCellIdentitiy:android.telephony.CellIdentityLte@36120154
mMcc=311 mMnc=480 mCi=29261057 mPci=162 mTac=882, CellSignalStrengthLte: ss=2 rsrp=-116 rsrq=-16 rssnr=-80 cqi=7 ta=2147483647
W/SystemClock( 703): time going backwards: prev 29733394254571(ioctl) vs now 29733393949395(ioctl), tid=1044
W/CellInfoLte( 703): CellInfoLte(Parcel): CellInfoLte: mRegistered=YES mTimeStampType=java_ril mTimeStamp=29733390000ns, LteCellIdentitiy:android.telephony.CellIdentityLte@36120154 mMcc=3
11 mMnc=480 mCi=29261057 mPci=162 mTac=882, CellSignalStrengthLte: ss=2 rsrp=-116 rsrq=-16 rssnr=-80 cqi=7 ta=2147483647
W/ActivityManager( 370): Activity destroy timeout for ActivityRecord{42ad6690 u0 com.zecurisoft.mhc1202/.StartupActivity}
W/ActivityManager( 370): Activity destroy timeout for ActivityRecord{42209040 u0 com.zecurisoft.mhc1202/.HomeActivity}

I appreciate any help or direction that can be provided.