Closed Bug 973891 Opened 11 years ago Closed 11 years ago

[Camera] Fails to switch modes

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 973790

People

(Reporter: wilsonpage, Unassigned)

Details

Following flashing with today's build, the camera fails to switch from 'picture' to 'video' mode. I have narrowed it down to the `success` callback failing to fire in the `Camera.prototype.configure` method. The `error` callback also doesn't fire and there is no noticeable errors in `adb logcat`.
The camera also frequently crashed on boot with the following `adb logcat`: E/Gecko ( 917): mozalloc_abort: Redirecting call to abort() to mozalloc_abort E/QCALOG ( 286): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] E/QCALOG ( 286): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 286): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] I/Gecko ( 207): I/Gecko ( 207): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv I/Gecko ( 207): I/Gonk ( 207): Setting nice for pid 500 to 1 I/Gonk ( 207): Changed nice for pid 500 from 18 to 1. E/Sensors ( 207): sensors_poll_context_t::activate index is 0, handle is enabled is 0,the enable is 0 E/Sensors ( 207): happy,bmasensor is enable,the mEnabled is 1,the handle is 0,the enabled is 0 E/Sensors ( 207): BmaSensor:ddds BMA222_IOCTL_SET_FLAG E/Sensors ( 207): BmaSensor: Control set 0 I/GeckoDump( 207): Crash reporter : Not online, postponing. I/Gecko ( 207): [Parent 207] WARNING: waitpid failed pid:917 errno:10: file ../../../gecko/ipc/chromium/src/base/process_util_posix.cc, line 254 I/Gecko ( 207): [Parent 207] WARNING: waitpid failed pid:917 errno:10: file ../../../gecko/ipc/chromium/src/base/process_util_posix.cc, line 254 I/Gecko ( 207): [Parent 207] WARNING: Failed to deliver SIGKILL to 917!(3).: file ../../../gecko/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc, line 118
What device is this failing on? I just tested a build on Helix and it passes without any trouble.
Flags: needinfo?(wilsonpage)
I think this must have been some kind of issue with my device. Sorry for the false alarm :(
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(wilsonpage)
Resolution: --- → INVALID
Could this be the same "issue" as with bug 973790 ?
Got this log on my hamachi: E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf: 0x1eb87a8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): idx = 2, fd = 42, size = 155648, offset = 0 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf hdl =0x1eb89e8, size =155648, stride=352 E/QCameraHWI_Preview( 141): getBufferFromSurface: camera call genlock_lock, hdl=0x1eb89e8 E/QCameraHWI_Preview( 141): getBufferFromSurface: genlock_lock_buffer hdl =0x1eb89e8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf: 0x1eb89a8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): idx = 3, fd = 46, size = 155648, offset = 0 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf hdl =0x1eb8be8, size =155648, stride=352 E/QCameraHWI_Preview( 141): getBufferFromSurface: camera call genlock_lock, hdl=0x1eb8be8 E/QCameraHWI_Preview( 141): getBufferFromSurface: genlock_lock_buffer hdl =0x1eb8be8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf: 0x1eb8ba8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): idx = 4, fd = 50, size = 155648, offset = 0 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf hdl =0x1eb8de8, size =155648, stride=352 E/QCameraHWI_Preview( 141): getBufferFromSurface: camera call genlock_lock, hdl=0x1eb8de8 E/QCameraHWI_Preview( 141): getBufferFromSurface: genlock_lock_buffer hdl =0x1eb8de8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf: 0x1eb8da8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): idx = 5, fd = 54, size = 155648, offset = 0 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf hdl =0x1eb9018, size =155648, stride=352 E/QCameraHWI_Preview( 141): getBufferFromSurface: camera call genlock_lock, hdl=0x1eb9018 E/QCALOG ( 191): [MessageQ] ProcessNewMessage: [XTWiFi-PE] unknown deliver target [OS-Agent] E/QCALOG ( 191): [MessageQ] ProcessNewMessage: [XT-CS] unknown deliver target [OS-Agent] E/QCALOG ( 191): [MessageQ] ProcessNewMessage: [XTWWAN-PE] unknown deliver target [OS-Agent] E/CAMERA FRAME_PROC( 158): ...pp thread select timeout... E/libgenlock( 141): perform_lock_unlock_operation: GENLOCK_IOC_DREADLOCK failed (lockType0x1, err=Connection timed out fd=58) E/QCameraHWI_Preview( 141): getBufferFromSurface: genlock_lock_buffer(WRITE) failed E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): dequeue buf: 0x1eb8fd8 E/QCameraHWI_Preview( 141): android::status_t android::QCameraStream_preview::getBufferFromSurface(): idx = 6, fd = 58, size = 155648, offset = 0 E/QCameraHWI_Preview( 141): Cancelling preview buffer and set not owned 0x1eb8de8 E/libgenlock( 141): perform_lock_unlock_operation: GENLOCK_IOC_DREADLOCK failed (lockType0x0, err=Invalid argument fd=58) E/QCameraHWI_Preview( 141): getBufferFromSurface: genlock_unlock_buffer failed E/QCameraHWI_Preview( 141): virtual android::status_t android::QCameraStream_preview::initDisplayBuffers(): cannot get memory from surface texture client, ret = -22 E/QCameraHWI( 141): android::status_t android::QCameraHardwareInterface::startPreview2(): X error - can't start stream!
Flags: needinfo?(mhabicher)
mikeh: It sounds very similar to what I was experiencing. Perhaps I'm not alone.
Resolution: INVALID → DUPLICATE
Flags: needinfo?(mhabicher)
You need to log in before you can comment on or make changes to this bug.