[G1 Android Development] 7895123:
Camera prob !!!

my camera FC plz help me

logcat :

**************

D/alogcat ( 1288): paused

W/Process ( 135): Unable to open /proc/1307/status

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

I/ActivityManager( 135): Start proc com.android.camera for activity com.android.camera/.Camera: pid=1308 uid=10019 gids={1015, 2001, 3003, 1006}

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

W/SurfaceFlinger( 135): timeout expired mFreezeDisplay=1, mFreezeCount=0

I/ActivityManager( 135): Config changed: { scale=1.0 imsi=452/4 loc=vi_VN touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18}

D/PhoneApp( 211): updateProximitySensorMode: state = IDLE

D/ ( 1308): unable to unlink '/data/data/com.android.camera/shared_prefs/com.android.camera_preferences.xml.bak': No such file or directory (errno=2)

D/CameraService( 121): CameraService::connect E (pid 1308, client 0xeeb8)

D/CameraService( 121): Client::Client E (pid 1308)

D/QualcommCameraHardware( 121): createInstance: E

E/QualcommCameraHardware( 121): startCamera X: /dev/msm_camera/control0 open failed: Unknown error: 0!

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

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

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

D/QualcommCameraHardware( 121): createInstance: X created hardware=0x159a0

D/CameraService( 121): Client::Client X (pid 1308)

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

D/CameraService( 121): getParameters(antibanding=auto;antibanding-values=off,50hz,60hz,auto;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( 121): getParameters(antibanding=auto;antibanding-values=off,50hz,60hz,auto;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/Camera ( 1308): app passed NULL surface

D/CameraService( 121): setPreviewDisplay(0x0) (pid 1308)

D/CameraService( 121): getParameters(antibanding=auto;antibanding-values=off,50hz,60hz,auto;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( 121): setParameters(preview-size=480x320;picture-size-values=2048x1536,1600x1200,1024x768;antibanding=auto;preview-frame-rate=15;whitebalance=auto;jpeg-thumbnail-height=384;effect-values=none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua;jpeg-quality=85;picture-size=2048x1536;effect=none;jpeg-thumbnail-width=512;whitebalance-values=auto,incandescent,florescent,daylight,cloudy,twilight,shade;picture-format=jpeg;jpeg-thumbnail-quality=90;preview-format=yuv420sp;antibanding-values=off,50hz,60hz,auto)

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

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

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

V/camera ( 1308): startPreview

D/CameraService( 121): startPreview (pid 1308)

D/CameraService( 121): startCameraMode(0) (pid 1308)

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

D/CameraService( 121): startPreviewMode (pid 1308)

I/QualcommCameraHardware( 121): initPreview E: preview size=480x320

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

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

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

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

E/QualcommCameraHardware( 121): native_set_dimension: length: 28.

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

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

D/CameraService( 121): stopPreview (pid 1308)

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

D/Camera-JNI( 1308): release camera

D/CameraService( 121): Client (0xeeb8) E disconnect from (1308)

D/CameraService( 121): hardware teardown

D/QualcommCameraHardware( 121): release E

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

D/QualcommCameraHardware( 121): release X

D/QualcommCameraHardware( 121): ~QualcommCameraHardware E

D/QualcommCameraHardware( 121): ~QualcommCameraHardware X

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

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

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

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

D/CameraService( 121): removeClient (pid 1308) done

D/CameraService( 121): Client::disconnect() X (pid 1308)

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

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

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

E/AndroidRuntime( 1308): at com.android.camera.Camera.startPreview(Camera.java:1668)

E/AndroidRuntime( 1308): at com.android.camera.Camera.access$5700(Camera.java:87)

E/AndroidRuntime( 1308): at com.android.camera.Camera$4.run(Camera.java:927)

E/AndroidRuntime( 1308): at java.lang.Thread.run(Thread.java:1096)

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

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

E/AndroidRuntime( 1308): at com.android.camera.Camera.startPreview(Camera.java:1665)

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

D/CameraService( 121): Client::~Client E (pid 121, client 0xeeb8)

D/CameraService( 121): Client (0xeeb8) E disconnect from (121)

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

I/Process ( 135): Sending signal. PID: 1308 SIG: 3

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

I/dalvikvm( 1308): Wrote stack trace to '/data/anr/traces.txt'

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

D/dalvikvm( 135): GC freed 4486 objects / 360000 bytes in 228ms

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

I/ActivityManager( 135): Process com.android.camera (pid 1308) has died.

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

I/ActivityManager( 135): Config changed: { scale=1.0 imsi=452/4 loc=vi_VN touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18}

D/PhoneApp( 211): updateProximitySensorMode: state = IDLE

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

**************************