[Galaxy Ace S5830 Android Development] lagloose:
For further information, here's where the stuff crashes when using liboemcamera from stock ACE ROM and libcamera from Hero:

---

I/CameraService( 1676): Opening camera 0

D/CameraHAL( 1676): qcamera_device_open: name:0 device:0x13dfc cameraId:0

V/QualcommCameraHardware( 1676): openCameraHardware: call createInstance

D/QualcommCameraHardware( 1676): createInstance: E

V/QualcommCameraHardware( 1676): Storing the current target type as 1

V/QualcommCameraHardware( 1676): constructor EX

V/QualcommCameraHardware( 1676): startCamera E

V/QualcommCameraHardware( 1676): loading liboemcamera at 0xb000ed08

F/libc ( 1676): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)

D/dalvikvm( 1685): GC_CONCURRENT freed 57K, 5% free 7130K/7431K, paused 4ms+4ms

D/dalvikvm( 942): GC_CONCURRENT freed 380K, 9% free 7107K/7751K, paused 3ms+4ms

I/DEBUG ( 1677): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

I/DEBUG ( 1677): Build fingerprint: 'samsung/cm_cooper/cooper:4.0.4/IMM76D/eng.maclaw.20120414.123054:eng/test-keys'

I/DEBUG ( 1677): pid: 1676, tid: 1676 >>> /system/bin/mediaserver <<<

I/DEBUG ( 1677): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000

I/DEBUG ( 1677): r0 00000000 r1 a968a665 r2 a9691a90 r3 ffffff40

I/DEBUG ( 1677): r4 000145bc r5 a96916a4 r6 a9691878 r7 a968e338

I/DEBUG ( 1677): r8 00000000 r9 00000000 10 00000000 fp 00000000

I/DEBUG ( 1677): ip 00000064 sp beee1868 lr b00067a0 pc a968bd56 cpsr 60000030

I/DEBUG ( 1677): d0 0000000000000000 d1 0000000000000000

I/DEBUG ( 1677): d2 7e37e43c8800759c d3 0000000000000000

I/DEBUG ( 1677): d4 0000000000000000 d5 7e37e43c8800759c

I/DEBUG ( 1677): d6 3ff0000000000000 d7 3ff0000000000000

I/DEBUG ( 1677): d8 0000000000000000 d9 0000000000000000

I/DEBUG ( 1677): d10 0000000000000000 d11 0000000000000000

I/DEBUG ( 1677): d12 0000000000000000 d13 0000000000000000

I/DEBUG ( 1677): d14 0000000000000000 d15 0000000000000000

I/DEBUG ( 1677): scr 20000000

I/DEBUG ( 1677):

I/DEBUG ( 1677): #00 pc 0000bd56 /system/lib/libcamera.so (_ZN7android22QualcommCameraHardware11startCameraEv)

I/DEBUG ( 1677): #01 pc 0000d9f4 /system/lib/libcamera.so (_ZN7android22QualcommCameraHardware14createInstanceEv)

I/DEBUG ( 1677): #02 pc 0000db34 /system/lib/libcamera.so (openCameraHardware)

I/DEBUG ( 1677): #03 pc 0000260e /system/lib/hw/camera.msm7x27.so (_Z19qcamera_device_openPK11hw_module_tPKcPP11hw_device_t)

I/DEBUG ( 1677): #04 pc 0000ab7c /system/lib/libcameraservice.so (_ZN7android13CameraService7connectERKNS_2spINS_13ICameraClientEEEi)

I/DEBUG ( 1677): #05 pc 00016b42 /system/lib/libcamera_client.so (_ZN7android15BnCameraService10onTransactEjRKNS_6ParcelEPS1_j)

I/DEBUG ( 1677): #06 pc 00008e42 /system/lib/libcameraservice.so (_ZN7android13CameraService10onTransactEjRKNS_6ParcelEPS1_j)

I/DEBUG ( 1677): #07 pc 00017f3c /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j)

I/DEBUG ( 1677): #08 pc 0001b3c4 /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi)

I/DEBUG ( 1677): #09 pc 0001b594 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)

I/DEBUG ( 1677): #10 pc 00008ab6 /system/bin/mediaserver

I/DEBUG ( 1677): #11 pc 000164ea /system/lib/libc.so (__libc_init)

I/DEBUG ( 1677):

I/DEBUG ( 1677): code around pc:

I/DEBUG ( 1677): a968bd34 68206018 eab2f7fb 58a94a92 49926008 .` h.....J.X.`.I

I/DEBUG ( 1677): a968bd44 44796820 eaaaf7fb 49914b90 447958ea hyD.....K.I.XyD

I/DEBUG ( 1677): a968bd54 60016010 6820498f f7fb4479 4b8eeaa0 .`.`.I hyD.....K

I/DEBUG ( 1677): a968bd64 58ea498e 60104479 498d6001 44796820 .I.XyD.`.`.I hyD

I/DEBUG ( 1677): a968bd74 ea94f7fb 498c4b8b 447958ea 60016010 .....K.I.XyD.`.`

I/DEBUG ( 1677):

I/DEBUG ( 1677): code around lr:

I/DEBUG ( 1677): b0006780 02800016 08bd87f0 e5964000 e5967000 .........@...p..

I/DEBUG ( 1677): b0006790 e2144903 1a00000e e5965000 ebffec5c .I.......P..\...

I/DEBUG ( 1677): b00067a0 e2055a02 e3853001 e1500003 0a000006 .Z...0....P.....

I/DEBUG ( 1677): b00067b0 e5865000 e1a00006 e1a01005 e3a02001 .P........... ..

I/DEBUG ( 1677): b00067c0 ebffffda e1a00004 e8bd87f0 e3a00000 ................

I/DEBUG ( 1677):

I/DEBUG ( 1677): stack:

I/DEBUG ( 1677): beee1828 a968e338 /system/lib/libcamera.so

I/DEBUG ( 1677): beee182c b000594f /system/bin/linker

I/DEBUG ( 1677): beee1830 b000ed08

I/DEBUG ( 1677): beee1834 a968ff01 /system/lib/libcamera.so

I/DEBUG ( 1677): beee1838 a968bd4d /system/lib/libcamera.so

I/DEBUG ( 1677): beee183c a968e338 /system/lib/libcamera.so

I/DEBUG ( 1677): beee1840 00000000

I/DEBUG ( 1677): beee1844 00000000

I/DEBUG ( 1677): beee1848 00000000

I/DEBUG ( 1677): beee184c b00059f7 /system/bin/linker

I/DEBUG ( 1677): beee1850 a96916a4 /system/lib/libcamera.so

I/DEBUG ( 1677): beee1854 b000ed08

I/DEBUG ( 1677): beee1858 000145bc [heap]

I/DEBUG ( 1677): beee185c a96916a4 /system/lib/libcamera.so

I/DEBUG ( 1677): beee1860 df0027ad

I/DEBUG ( 1677): beee1864 00000000

I/DEBUG ( 1677): #00 beee1868 00000000

I/DEBUG ( 1677): beee186c 400ecf01 /system/lib/libutils.so

I/DEBUG ( 1677): beee1870 000146e0 [heap]

I/DEBUG ( 1677): beee1874 00014510 [heap]

I/DEBUG ( 1677): beee1878 a96916a4 /system/lib/libcamera.so

I/DEBUG ( 1677): beee187c 00014510 [heap]

I/DEBUG ( 1677): beee1880 beee1954 [stack]

I/DEBUG ( 1677): beee1884 000001d0

I/DEBUG ( 1677): beee1888 a96916a4 /system/lib/libcamera.so

I/DEBUG ( 1677): beee188c a968d9f9 /system/lib/libcamera.so

I/DEBUG ( 1677): #01 beee1890 0000f6d0 [heap]

I/DEBUG ( 1677): beee1894 beee1978 [stack]

I/DEBUG ( 1677): beee1898 00013f88 [heap]

I/DEBUG ( 1677): beee189c 00000000

I/DEBUG ( 1677): beee18a0 00000000

I/DEBUG ( 1677): beee18a4 00000000

I/DEBUG ( 1677): beee18a8 00000000

I/DEBUG ( 1677): beee18ac 00002eda

I/DEBUG ( 1677): beee18b0 0000000b

I/DEBUG ( 1677): beee18b4 00000000

I/DEBUG ( 1677): beee18b8 00000000

I/DEBUG ( 1677): beee18bc 00000323

I/DEBUG ( 1677): beee18c0 000041ed

I/DEBUG ( 1677): beee18c4 00000002

I/DEBUG ( 1677): beee18c8 00000000

I/DEBUG ( 1677): beee18cc 00000000

I/DEBUG ( 1677): beee18d0 00000000

I/DEBUG ( 1677): beee18d4 00000000

I/DEBUG ( 1677): beee18d8 00000000

I/DEBUG ( 1677): beee18dc 00000000

I/DEBUG ( 1677): beee18e0 000002f8

I/DEBUG ( 1677): beee18e4 00000000

I/DEBUG ( 1677): beee18e8 00001000

I/DEBUG ( 1677): beee18ec 00000000

I/DEBUG ( 1677): beee18f0 00000000

I/DEBUG ( 1677): beee18f4 00000000

I/DEBUG ( 1677): beee18f8 4fc5dd55

I/DEBUG ( 1677): beee18fc 245bdc83

I/DEBUG ( 1677): beee1900 4fc5dd55

I/DEBUG ( 1677): beee1904 245bdc83

I/DEBUG ( 1677): beee1908 4fc5dd55

I/DEBUG ( 1677): beee190c 245bdc83

I/DEBUG ( 1677): beee1910 00000323

I/DEBUG ( 1677): beee1914 00000000

I/DEBUG ( 1677): beee1918 00014510 [heap]

I/DEBUG ( 1677): beee191c beee1954 [stack]

I/DEBUG ( 1677): beee1920 00001c16

I/DEBUG ( 1677): beee1924 beee1954 [stack]

I/DEBUG ( 1677): beee1928 00001c16

I/DEBUG ( 1677): beee192c 00000000

I/DEBUG ( 1677): beee1930 00013dfc [heap]

I/DEBUG ( 1677): beee1934 a968db39 /system/lib/libcamera.so

I/BootReceiver( 325): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)

E/CameraHolder( 1685): fail to connect Camera

E/CameraHolder( 1685): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder( 1685):	at android.hardware.Camera.native_setup(Native Method)

E/CameraHolder( 1685):	at android.hardware.Camera.<init>(Camera.java:320)

E/CameraHolder( 1685):	at android.hardware.Camera.open(Camera.java:280)

E/CameraHolder( 1685):	at com.android.camera.CameraHolder.open(CameraHolder.java:131)

E/CameraHolder( 1685):	at com.android.camera.Util.openCamera(Util.java:267)

E/CameraHolder( 1685):	at com.android.camera.Camera$4.run(Camera.java:1118)

E/CameraHolder( 1685):	at java.lang.Thread.run(Thread.java:856)

W/AudioSystem( 325): AudioFlinger server died!

I/ServiceManager( 138): service 'media.audio_flinger' died

I/ServiceManager( 138): service 'media.player' died

I/ServiceManager( 138): service 'media.camera' died

I/ServiceManager( 138): service 'media.audio_policy' died

W/AudioSystem( 325): AudioPolicyService server died!

W/MediaMetadataRetriever( 942): MediaMetadataRetriever server died!

W/Camera ( 1685): Camera server died!

---

AFAIK Gio has a semi working camera. Perhaps someone could check if liboemcamera from Maclaws Gio Port works ? I'm in office at the moment and can't do this right now.