[G1 Q&A, Help & Troubleshooting] cody_04l:
All,

I've searched and tried the suggestions found on XDA and google and can't see to figure this out. I'm running the Hero rom, but have also tried CM's roms and a few others. After loading a rom the camera works great for a few days then I start to get errors. I get a black screen then a force close. Here is a dump from log collector.

10-06 22:54:19.039 I/ActivityManager( 2958): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x10200000 comp={com.android.camera/com.android.camera.CameraEntry} }

10-06 22:54:19.178 I/ActivityManager( 2958): Start proc com.android.camera for activity com.android.camera/.CameraEntry: pid=3561 uid=10029 gids={1006, 3003}

10-06 22:54:19.659 E/CameraThread( 3561): Hero/Sapphire/Dream

10-06 22:54:19.659 E/CameraThread( 3561): HtcBuildFlag.Htc_DEVICE_flag=3

10-06 22:54:19.659 E/CameraThread( 3561): HtcBuildFlag.DEVICE_Hero_flag=3

10-06 22:54:19.659 E/CameraThread( 3561): HtcBuildFlag.DEVICE_HeroC_flag=5

10-06 22:54:19.659 E/CameraThread( 3561): HtcBuildFlag.DEVICE_Bahams_flag=4

10-06 22:54:19.678 V/HTCCamera( 3561): onCreate()

10-06 22:54:19.708 W/IntentManager( 3561): from class: com.android.camera.CameraEntry

10-06 22:54:19.708 W/IntentManager( 3561): mRequestMode = RequestMode.Main, from Camera

10-06 22:54:19.708 W/IntentManager( 3561): request name = null - RequestName.Unknown_General

10-06 22:54:19.718 V/CameraThread( 3561): *************************************** run

10-06 22:54:19.888 D/dalvikvm( 3561): GC freed 1256 objects / 90840 bytes in 90ms

10-06 22:54:20.138 W/Rosie ( 3413): mAddHtcWidgetByOtherActivity = false, mIsOpenSlideWhenLeaveLaunch = true

10-06 22:54:20.148 D/dalvikvm( 3561): GC freed 270 objects / 31064 bytes in 108ms

10-06 22:54:20.238 V/HTCCamera( 3561): onStart() - start

10-06 22:54:20.238 V/HTCCamera( 3561): onStart() - end

10-06 22:54:20.238 V/HTCCamera( 3561): onResume() - start

10-06 22:54:20.258 V/SensorHandler( 3561): createFocusFile() - start

10-06 22:54:20.258 W/HTCCamera( 3561): OnResume - reset UI, immediately set mMainLayout invisible

10-06 22:54:20.258 W/HTCCamera( 3561): Block Capture UI - onResume(), and unblock after start preview

10-06 22:54:20.258 W/HTCCamera( 3561): onResume() - mFocusingState = NO_FOCUSING

10-06 22:54:20.258 W/HTCCamera( 3561): keyguard is not shown !!!!!

10-06 22:54:20.258 V/HTCCamera( 3561): onResume() - end

10-06 22:54:20.438 V/HTCCamera( 3561): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$android.view.SurfaceView$2@43c49338

10-06 22:54:20.438 V/HTCCamera( 3561): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ w=320 h=480

10-06 22:54:20.438 V/HTCCamera( 3561): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ start preview

10-06 22:54:20.438 V/CameraThread( 3561): CameraHandler Message - START_PREVIEW start mode0

10-06 22:54:20.438 V/CameraThread( 3561): enter start camera preview

10-06 22:54:20.438 E/CameraThread( 3561): open the Camera in start_camera_preview

10-06 22:54:20.438 W/CameraThread( 3561): Open Camera - set mIsLastCameraClosed to false

10-06 22:54:20.448 I/ActivityManager( 2958): Displayed activity com.android.camera/.CameraEntry: 1409 ms

10-06 22:54:20.558 D/CameraService( 118): Connect E from ICameraClient 0x26050

10-06 22:54:20.558 D/CameraService( 118): new client (0x26050) attempting to connect - rejected

10-06 22:54:20.568 W/dalvikvm( 3561): threadid=15: thread exiting with uncaught exception (group=0x40013140)

10-06 22:54:20.579 E/AndroidRuntime( 3561): Uncaught handler: thread Thread-8 exiting due to uncaught exception

10-06 22:54:20.609 E/AndroidRuntime( 3561): java.lang.RuntimeException: Out of memory

10-06 22:54:20.609 E/AndroidRuntime( 3561): at android.hardware.Camera.native_setup(Native Method)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at android.hardware.Camera.<init>(Camera.java:82)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at android.hardware.Camera.open(Camera.java:64)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at com.android.camera.CameraThread.start_preview(CameraThread.java:924)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at com.android.camera.CameraThread$MainHandler.handleMessage(CameraThread.java:274)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at android.os.Handler.dispatchMessage(Handler.java:99)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at android.os.Looper.loop(Looper.java:123)

10-06 22:54:20.609 E/AndroidRuntime( 3561): at com.android.camera.CameraThread.run(CameraThread.java:1215)

10-06 22:54:20.638 I/Process ( 2958): Sending signal. PID: 3561 SIG: 3

10-06 22:54:20.638 I/dalvikvm( 3561): threadid=7: reacting to signal 3

10-06 22:54:20.718 V/HTCCamera( 3561): initScreenMode() - initiate screen mode from capture mode

10-06 22:54:20.718 I/WindowManager( 2958): Screen status=true, current orientation=4, SensorEnabled=false

10-06 22:54:20.728 I/WindowManager( 2958): needSensorRunningLp, mCurrentAppOrientation =4

10-06 22:54:20.728 D/AKMD ( 131): Compass OPEN

10-06 22:54:20.728 D/Sensors ( 2958): sensors=00000001, real=00000001

10-06 22:54:20.839 I/WindowManager( 2958): Enabling listeners

10-06 22:54:20.938 I/AlertDialog( 2958): [onCreate] auto launch SIP.

10-06 22:54:21.068 I/DumpStateReceiver( 2958): Added state dump to 1 crashes

10-06 22:54:21.498 I/WindowManager( 2958): onOrientationChanged, rotation changed to 0

10-06 22:54:22.149 I/Process ( 3561): Sending signal. PID: 3561 SIG: 9

10-06 22:54:22.188 I/ActivityManager( 2958): Process com.android.camera (pid 3561) has died.

10-06 22:54:22.198 I/WindowManager( 2958): WIN DEATH: Window{43ecbec8 SurfaceView paused=false}

10-06 22:54:22.208 I/WindowManager( 2958): WIN DEATH: Window{43f391b8 com.android.camera/com.android.camera.CameraEntry paused=false}

10-06 22:54:22.228 I/WindowManager( 2958): Screen status=true, current orientation=1, SensorEnabled=true

10-06 22:54:22.228 I/WindowManager( 2958): needSensorRunningLp, mCurrentAppOrientation =1

10-06 22:54:22.228 I/WindowManager( 2958): needSensorRunningLp, SCREEN_ORIENTATION_PORTRAIT

10-06 22:54:22.248 D/Sensors ( 2958): sensors=00000000, real=00000000

10-06 22:54:22.408 D/AKMD ( 131): Compass CLOSE

10-06 22:54:22.459 I/WindowManager( 2958): Disabling listeners

10-06 22:54:22.478 D/Rosie ( 3413): onResume() [setBackgroundTrafficLight()] : diff - 0

10-06 22:54:22.478 D/Rosie ( 3413): onResume() [onRestoreInstanceState] : diff - 0

10-06 22:54:22.478 D/Rosie ( 3413): onResume() [finished] : diff - 3

10-06 22:54:22.528 W/InputManagerService( 2958): Got RemoteException sending setActive(false) notification to pid 3561 uid 10029

10-06 22:54:25.128 I/ActivityManager( 2958): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category.LAUNCHER} flags=0x10200000 comp={com.xtralogic.android.logcollector/com.xtralogic.android.logcollector.SendLogActivity} }

10-06 22:54:25.208 I/ActivityManager( 2958): Start proc com.xtralogic.android.logcollector for activity com.xtralogic.android.logcollector/.SendLogActivity: pid=3578 uid=10052 gids={1007}

10-06 22:54:25.248 I/ActivityManager( 2958): Start proc com.curvefish.batterylife for broadcast com.curvefish.batterylife/.BatteryLifeProvider: pid=3580 uid=10042 gids={}

10-06 22:54:25.718 I/AlertDialog( 3578): [onCreate] auto launch SIP.

10-06 22:54:26.198 W/Rosie ( 3413): mAddHtcWidgetByOtherActivity = false, mIsOpenSlideWhenLeaveLaunch = true

10-06 22:54:27.079 I/AlertDialog( 3578): [onCreate] auto launch SIP.

10-06 22:54:27.218 I/global ( 3578): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

10-06 22:54:27.278 I/ActivityManager( 2958): Displayed activity com.xtralogic.android.logcollector/.SendLogActivity: 2154 ms

10-06 22:54:27.508 D/dalvikvm( 3578): GC freed 1692 objects / 222192 bytes in 131ms