[XPERIA X10 Android Development] igorazevedo:
Camera bug?

When i call the Camera:

Dalvik log:

08-29 13:55:20.404: ERROR/MemoryHeapBase(4792): mmap(fd=40, size=5554176) failed (Invalid argument)

08-29 13:55:20.404: ERROR/SemcCameraHardware(4792): failed to construct master heap for pmem pool /dev/pmem_adsp

08-29 13:55:20.404: ERROR/SemcCameraHardware(4792): initRecord X: could not initialize record heap.

08-29 13:55:20.404: ERROR/SemcCameraHardware(4792): END initPreview : initRecord Error

08-29 13:55:20.404: ERROR/SemcCameraHardware(4792): startPreview X initPreview failed. Not starting preview.

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): CameraDevice:startPreview failed.

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): java.lang.RuntimeException: startPreview failed

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at android.hardware.Camera.startPreview(Native Method)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.sonyericsson.android.camera.CameraDevice.startPreview(CameraDevice.java:503)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.sonyericsson.android.camera.CameraController.startPreview(CameraController.java:955)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.sonyericsson.android.camera.CameraController$Idle.handleSurfaceChanged(CameraController.java:1641)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.sonyericsson.android.camera.Capturer$CapturerContext.launchEvent(Capturer.java:713)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.sonyericsson.android.camera.Capturer$CapturerContext.run(Capturer.java:662)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at android.os.Handler.handleCallback(Handler.java:587)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at android.os.Handler.dispatchMessage(Handler.java:92)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at android.os.Looper.loop(Looper.java:123)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at android.app.ActivityThread.main(ActivityThread.java:3701)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at java.lang.reflect.Method.invokeNative(Native Method)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at java.lang.reflect.Method.invoke(Method.java:507)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)

08-29 13:55:20.404: ERROR/SemcCameraApp(4717): at dalvik.system.NativeStart.main(Native Method)

08-29 13:55:20.424: ERROR/SemcCameraApp(4717): ViewFinderController:onExternalMemoryStatusChanged( 0 )

08-29 13:55:20.474: ERROR/QCvdec(4792): Statistic of dsp_decode

08-29 13:55:20.474: ERROR/QCvdec(4792): ============================================================

08-29 13:55:20.474: ERROR/QCvdec(4792): Total number of iteration 0

08-29 13:55:20.474: ERROR/QCvdec(4792): dsp_decode total_time(us): 0

08-29 13:55:20.474: ERROR/QCvdec(4792): ============================================================

08-29 13:55:20.704: ERROR/MetadataRetrieverClient(4792): failed to capture a video frame

08-29 13:55:20.704: ERROR/MediaMetadataRetrieverJNI(4717): getFrameAtTime: videoFrame is a NULL pointer

08-29 13:55:20.714: ERROR/SemcCameraApp(4717): RecentShotLoader:Video thumbnail size is 0x0.

08-29 13:55:24.474: ERROR/lights(1695): write_int failed to open /sys/class/leds/lv5219lg:sled/brightness

the screen capture i will send later.

EDIT: Pictures

EDIT2: I Clear Dalvik cache and reflash the rom, the camera fail in frist call, like image 2, but in second call, works fine.

Great Rom.

Thanks.