[Galaxy S I9000 Q&A, Help & Troubleshooting] Jarige:
Hey people, I'm having a problem with the Camera of my SGS. It used to work before, but from one moment to another it stopped working. I don't know why it stopped working, because I bought it when the camera had already stopped working.

Anyway, upon opening the camera app, or trying to use the camera from any app, it shows the message "Gallery stopped working" after some time. Here's the logcat:

01-24 15:01:28.960 E/SecCamera( 146): initCamera: m_cam_fd(40), m_jpeg_fd(0)
01-24 15:01:28.972 E/SecCamera( 146): initCamera: m_cam_fd2(43)
01-24 15:01:30.363 E/CAM_PhotoModule(13594): Width = 2560Height = 1920
01-24 15:01:32.828 E/SecCamera( 146): ERR(int android::fimc_v4l2_streamon(int)):VIDIOC_STREAMON failed
01-24 15:01:32.828 E/SecCamera( 146): int android::SecCamera::startPreview()::804 fail. errno: I/O error, m_camera_id = 0
01-24 15:01:32.828 E/CameraHardwareSec( 146): ERR(android::status_t android::CameraHardwareSec::startPreviewInternal()):Fail on mSecCamera->startPreview()
01-24 15:01:32.851 E/CameraHardwareSec( 146): preview window is NULL!
01-24 15:01:32.851 E/AndroidRuntime(13594): FATAL EXCEPTION: Camera Handler Thread
01-24 15:01:32.851 E/AndroidRuntime(13594): java.lang.RuntimeException: startPreview failed
01-24 15:01:32.851 E/AndroidRuntime(13594):	at android.hardware.Camera.startPreview(Native Method)
01-24 15:01:32.851 E/AndroidRuntime(13594):	at com.android.camera.CameraManager$CameraHandler.handleMessage(CameraManager.java:188)
01-24 15:01:32.851 E/AndroidRuntime(13594):	at android.os.Handler.dispatchMessage(Handler.java:99)
01-24 15:01:32.851 E/AndroidRuntime(13594):	at android.os.Looper.loop(Looper.java:137)
01-24 15:01:32.851 E/AndroidRuntime(13594):	at android.os.HandlerThread.run(HandlerThread.java:61)

And device info:

build.board: aries
build.bootloader: unknown
build.brand: samsung
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: GT-I9000
build.display: cm_galaxysmtd-userdebug 4.3.1 JLS36I 0033bcf5d5 test-keys
build.fingerprint: samsung/GT-I9000/GT-I9000:2.3.5/GINGERBREAD/XXJVT:user/release-keys
build.hardware: aries
build.host: cyanogenmod
build.id: JLS36I
build.manufacturer: samsung
build.model: GT-I9000
build.product: GT-I9000
build.radio: unknown
build.serial: 37300090CF2C00EC
build.tags: test-keys
build.time: 1386034429000
build.type: userdebug
build.user: jenkins
version.codename: REL
version.incremental: 0033bcf5d5
version.release: 4.3.1
version.sdk_int: 18

This is in Cyanogenmod 10.2.0 stable. I think the camera firmware is somehow broken, or the hardware is really failing. But I want to at least be sure it's the hardware before giving up. And I'm kinda unwilling to flash to stock to try things. I tried dialing *#*#34971539#*#* but it just removes the entered code after I've typed it out and does nothing.

Edit: things I forgot to mention:

I tried these things:

- Installing Focal app to see whether camera works there, doesn't work.

- Tried disabling the Gallery app, doesn't work.

- Tried deleting data and cache of the Gallery app, doesn't work.

- Tried deleting data and cache and then rebooting, doesn't work.

- Tried disabling, deleting data and cache, then enabling Gallery. Doesn't work either.

Any clues on what to do? If it's the firmware, what do I do to fix it?