[G1 Android Development] marckazen:
Camera FC - not settings but camera itself

When ever I try to open the camera I get a force close - I even tried wiping everything (including the ext4 partition and factory reset) and still no dice - i'm starting to think that it's a physical problem with the phone itself. I ran a logcat when it happens, and i'll attach the log if anyone might know what is happening. At the moment, it is a fresh install of the latest (4.2.3.1) but this problem was first noticed in 4.2. Can anyone help?

Relevant part of log:

------------------------------------

I/ActivityManager( 164): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.camera/.Camera }

I/WindowManager( 164): Setting rotation to 1, animFlags=0

I/WindowManager( 164): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/2 nav=3 orien=2 layout=18}

W/WindowManager( 164): performLayoutAndPlaceSurfacesLocked called while in layout

D/StatusBar( 164): updateResources

D/CameraService( 138): CameraService::connect E (pid 741, client 0x1f860)

D/CameraService( 138): Client::Client E (pid 741)

D/QualcommCameraHardware( 138): createInstance: E

E/QualcommCameraHardware( 138): startCamera X: /dev/msm_camera/control0 open failed: Device or resource busy!

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=21, length=4, rc=-1, ctrlCmd.status=63152, Bad file number

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=15, length=4, rc=-1, ctrlCmd.status=23368, Bad file number

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=14, length=4, rc=-1, ctrlCmd.status=61744, Bad file number

D/QualcommCameraHardware( 138): createInstance: X created hardware=0x1fac8

D/CameraService( 138): Client::Client X (pid 741)

D/CameraService( 138): CameraService::connect X

D/Camera ( 741): app passed NULL surface

D/CameraService( 138): setPreviewDisplay(0x0) (pid 741)

D/CameraService( 138): getParameters(antibanding=off;antibanding-values=off;effect=none;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;jpeg-quality=100;jpeg-thumbnail-height=384;jpeg-thumbnail-quality=90;jpeg-thumbnail-width=512;picture-format=jpeg;picture-size=2048x1536;picture-size-values=2048x1536,1600x1200,1024x768;preview-format=yuv420sp;preview-frame-rate=15;preview-size=480x320;whitebalance=auto;whitebalance-values=auto,incandescent,florescent,daylight,cloudy,twilight,shade)

D/CameraService( 138): setParameters(jpeg-thumbnail-width=512;antibanding-values=off;preview-frame-rate=15;preview-size=384x288;picture-format=jpeg;antibanding=off;jpeg-thumbnail-height=384;picture-size=2048x1536;effect=none;whitebalance=auto;jpeg-thumbnail-quality=90;jpeg-quality=85;whitebalance-values=auto,incandescent,florescent,daylight,cloudy,twilight,shade;preview-format=yuv420sp;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;picture-size-values=2048x1536,1600x1200,1024x768)

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=21, length=4, rc=-1, ctrlCmd.status=29536, Bad file number

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=15, length=4, rc=-1, ctrlCmd.status=30096, Bad file number

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=14, length=4, rc=-1, ctrlCmd.status=29872, Bad file number

V/camera ( 741): startPreview

D/CameraService( 138): startPreview (pid 741)

D/CameraService( 138): startCameraMode(0) (pid 741)

D/CameraService( 138): mSurface is not set yet.

D/CameraService( 138): startPreviewMode (pid 741)

I/QualcommCameraHardware( 138): initPreview E: preview size=384x288

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): ioctl error. camfd=-1, type=1, length=28, rc=-1, ctrlCmd.status=13297, Bad file number

E/QualcommCameraHardware( 138): startPreview X initPreview failed. Not starting preview.

D/CameraService( 138): stopPreview (pid 741)

D/CameraService( 138): stopPreview(), hardware stopped OK

D/Camera-JNI( 741): release camera

D/CameraService( 138): Client::disconnect() E (pid 741 client 0x1f860)

D/CameraService( 138): hardware teardown

D/QualcommCameraHardware( 138): release E

E/QualcommCameraHardware( 138): ioctl CAMERA_EXIT fd -1 error Bad file number

E/QualcommCameraHardware( 138): config_thread exit failure: Bad file number

D/QualcommCameraHardware( 138): release X

D/QualcommCameraHardware( 138): ~QualcommCameraHardware E

D/QualcommCameraHardware( 138): ~QualcommCameraHardware X

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

E/QualcommCameraHardware( 138): register_buf: MSM_CAM_IOCTL_(UN)REGISTER_PMEM fd -1 error Bad file number

D/CameraService( 138): removeClient (pid 741) done

D/CameraService( 138): Client::disconnect() X (pid 741)

W/dalvikvm( 741): threadid=15: thread exiting with uncaught exception (group=0x4001e1c0)

E/AndroidRuntime( 741): Uncaught handler: thread Thread-9 exiting due to uncaught exception

E/AndroidRuntime( 741): java.lang.RuntimeException: startPreview failed

E/AndroidRuntime( 741):	at com.android.camera.Camera.startPreview(Camera.java:1360)

E/AndroidRuntime( 741):	at com.android.camera.Camera.access$4000(Camera.java:78)

E/AndroidRuntime( 741):	at com.android.camera.Camera$3.run(Camera.java:724)

E/AndroidRuntime( 741):	at java.lang.Thread.run(Thread.java:1060)

E/AndroidRuntime( 741): Caused by: java.lang.RuntimeException: startPreview failed

E/AndroidRuntime( 741):	at android.hardware.Camera.startPreview(Native Method)

E/AndroidRuntime( 741):	at com.android.camera.Camera.startPreview(Camera.java:1357)

E/AndroidRuntime( 741):	... 3 more

D/CameraService( 138): Client::~Client E (pid 138, client 0x1f860)

I/Process ( 164): Sending signal. PID: 741 SIG: 3

I/dalvikvm( 741): threadid=7: reacting to signal 3

E/dalvikvm( 741): Unable to open stack trace file '/data/anr/traces.txt': Permission denied

D/CameraService( 138): Client::disconnect() E (pid 138 client 0x1f860)

D/CameraService( 138): Client::~Client X (pid 138)

I/DumpStateReceiver( 164): Added state dump to 1 crashes

D/dalvikvm( 164): GC(1) freed 3375 objects / 196984 bytes in 144ms

I/Process ( 741): Sending signal. PID: 741 SIG: 9

I/ActivityManager( 164): Process com.android.camera (pid 741) has died.

I/WindowManager( 164): WIN DEATH: Window{4399c4f8 com.android.camera/com.android.camera.ViewImage paused=false}

I/WindowManager( 164): Setting rotation to 0, animFlags=0

I/WindowManager( 164): Config changed: { scale=1.0 imsi=0/0 loc=en_US touch=3 keys=2/1/2 nav=3 orien=1 layout=18}

W/WindowManager( 164): performLayoutAndPlaceSurfacesLocked called while in layout

W/UsageStats( 164): Unexpected resume of com.android.launcher while already resumed in com.android.camera

D/StatusBar( 164): updateResources

W/InputManagerService( 164): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@438af818

D/dalvikvm( 164): GC(1) freed 1637 objects / 72072 bytes in 138ms

D/dalvikvm( 291): GC(1) freed 645 objects / 26984 bytes in 84ms