Closed Bug 1000271 Opened 10 years ago Closed 8 years ago

[Camera][Gecko][Tarako] Semi-auto camera test causes tarako camera to crash

Categories

(Firefox OS Graveyard :: Vendcom, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g-v1.3T affected)

RESOLVED WONTFIX
Tracking Status
b2g-v1.3T --- affected

People

(Reporter: rwood, Assigned: Dafeng.Xu)

Details

(Keywords: crash, Whiteboard: [POVB][b2g-crash])

Attachments

(5 files)

Attached file cert_cam_logcat.txt
For the Firefox OS Certification suite, I am starting webapi test dev for the camera api. I am working on a very basic camera test, to start, which gets the list of cameras, gets a camera instance, then takes a photo.

On Tarako 1.3t, when the photo is actually taken, the camera crashes. Happens most of the time but not always.

The test (test_camera_basic.py) can be found in my repo, here:

https://github.com/rwood-moz/fxos-certsuite/tree/camera/webapi_tests/camera

Logcat attached. Note: As part of the Firefox OS Cert framework, we run a test app on top of gaia; perhaps this is an OOM issue.
The tl;dr of the logcat:

I/DEBUG   (   87): pid: 88, tid: 564  >>> /system/bin/mediaserver <<<
I/DEBUG   (   87): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000002
I/DEBUG   (   87):  r0 00000002  r1 400611d8  r2 0160f02c  r3 00000004
I/DEBUG   (   87):  r4 0160efb8  r5 424a1e20  r6 409f8a6c  r7 40a02314
I/DEBUG   (   87):  r8 0160f02c  r9 000001e0  10 00000140  fp 000004b0
I/DEBUG   (   87):  ip 00000000  sp 424a1d38  lr 40075580  pc 409eafa0  cpsr 20800030
I/DEBUG   (   87): 
I/DEBUG   (   87):          #00  pc 00010fa0  /system/lib/hw/camera.sc8810.so (_ZN7android18SprdCameraHardware17receiveRawPictureEP17camera_frame_type)
I/DEBUG   (   87):          #01  pc 00011fd0  /system/lib/hw/camera.sc8810.so (_ZN7android18SprdCameraHardware9camera_cbE14camera_cb_typePKv16camera_func_typei)
I/DEBUG   (   87):          #02  pc 0000d02c  /system/lib/hw/camera.sc8810.so (_ZN7android21camera_capture_threadEPv)
I/DEBUG   (   87):          #03  pc 00013154  /system/lib/libc.so (__thread_entry)
I/DEBUG   (   87):          #04  pc 00012ca8  /system/lib/libc.so (pthread_create)
So, not a case of the low-memory killer.
Looks like a legit camera bug, but I will try running this webapi test from within the camera app context itself anyway instead of the certtest app and see if the crash still happens. However the camera tests cannot be run on tarako at the moment because of bug 1004405.
Blocks: 1007772
Attached file logcat.txt
Can't run the test from within the camera app (comment 3) as in that case, the camera app itself controls the camera, so the test cannot access it (makes sense).

Regardless, this looks like a legit camera crash, so moving this to the gaia camera component.

The crash still happens when running the semiauto webapi camera test (as described in the description) on today's latest tarako 1.3t. Attaching another logcat.
Component: Certification Suite → Gaia::Camera
The crash is in camera.sc8810.so which is POVB.
Summary: Semi-auto camera test causes tarako camera to crash → [Camera][Gecko][Tarako] Semi-auto camera test causes tarako camera to crash
Whiteboard: [POVB]
Blocks: 1008970
No longer blocks: b2g-cert-tests
I apologize.  I missed seeing this bug until now.
blocking-b2g: --- → 1.3T?
Flags: needinfo?(james.zhang)
Keywords: crash
Whiteboard: [POVB] → [POVB][b2g-crash]
Rob, can you verify that this still happens on the most recent build?
Flags: needinfo?(rwood)
I haven't seen this crash on my side, but Ying please try this test case and track his bug.
Flags: needinfo?(ying.xu)
Flags: needinfo?(james.zhang)
Flags: needinfo?(Dafeng.Xu)
Tested this on the latest tarako 1.3t build and was able to reproduce the camera crash on the 3rd try.

1.3.0t 2014-06-18 22:53:00 e0c986b2
Flags: needinfo?(rwood)
POVB: Crash confirmed based on comment 9. James, please have someone take a look.

Original description says crash happens most of the time, so blocking
blocking-b2g: 1.3T? → 1.3T+
Flags: needinfo?(james.zhang)
Assignee: nobody → ying.xu
Flags: needinfo?(james.zhang)
(In reply to Robert Wood [:rwood] from comment #9)
> Tested this on the latest tarako 1.3t build and was able to reproduce the
> camera crash on the 3rd try.
> 
> 1.3.0t 2014-06-18 22:53:00 e0c986b2

Can we get the test case which cause camera crash?
Assignee: ying.xu → Dafeng.Xu
Flags: needinfo?(ying.xu)
I can't analysis this problem from the log. So I will test this case in local.
Flags: needinfo?(Dafeng.Xu)
(In reply to Robert Wood (PTO until Jul 10) [:rwood] from comment #0)
Hi Robert, could you tell me how to build test environment that can run the test script? Can you give me any document?
To run these tests:

1. git clone https://github.com/rwood-moz/fxos-certsuite.git
2. cd fxos-certsuite/webapi_tests
3. ./setup_and_run.sh camera
(In reply to Jonathan Griffin (:jgriffin) from comment #14)
> To run these tests:
> 
> 1. git clone https://github.com/rwood-moz/fxos-certsuite.git
> 2. cd fxos-certsuite/webapi_tests
> 3. ./setup_and_run.sh camera

whoops, actually this should be:

1. git clone https://github.com/rwood-moz/fxos-certsuite.git
2. cd fxos-certsuite/webapi_tests
3. git checkout camera
4. ./setup_and_run.sh camera
(In reply to Jonathan Griffin (:jgriffin) from comment #15)
> (In reply to Jonathan Griffin (:jgriffin) from comment #14)
> > To run these tests:
> > 
> > 1. git clone https://github.com/rwood-moz/fxos-certsuite.git
> > 2. cd fxos-certsuite/webapi_tests
> > 3. ./setup_and_run.sh camera
> 
> whoops, actually this should be:
> 
> 1. git clone https://github.com/rwood-moz/fxos-certsuite.git
> 2. cd fxos-certsuite/webapi_tests
> 3. git checkout camera
> 4. ./setup_and_run.sh camera


Hi,
   I just use setpu_and_run.sh to test camera,  I test it about 30 times, the first test case was failed, the case is test_capture_single_photo. the remaining three case were passed. the mediaserver process run normally, not crash.
(In reply to Jonathan Griffin (:jgriffin) from comment #15)
> (In reply to Jonathan Griffin (:jgriffin) from comment #14)
> > To run these tests:
> > 
> > 1. git clone https://github.com/rwood-moz/fxos-certsuite.git
> > 2. cd fxos-certsuite/webapi_tests
> > 3. ./setup_and_run.sh camera
> 
> whoops, actually this should be:
> 
> 1. git clone https://github.com/rwood-moz/fxos-certsuite.git
> 2. cd fxos-certsuite/webapi_tests
> 3. git checkout camera
> 4. ./setup_and_run.sh camera


Hi,
   I just use setpu_and_run.sh to test camera,  I test it about 30 times, the first test case was failed, the case is test_capture_single_photo. the remaining three case were passed. the mediaserver process run normally, not crash.
Attached image the result of test
Hopefully the problem has been fixed, then.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Robert, have you flashed with the latest PAC file?  We may need to get your device updated?
Flags: needinfo?(rwood)
I have updated my tarako with the very latest base image/pac, but the test is still crashing the camera on my tarko.

I am able to use the gaia apps manually to take a photo, that works fine, but during the test, the camera crashes. I will attach the logcat.

Any idea why it is crashing my tarako but working on your device, ying?
Status: RESOLVED → REOPENED
Flags: needinfo?(rwood) → needinfo?(ying.xu)
Resolution: WORKSFORME → ---
Flags: needinfo?(ying.xu) → needinfo?(Dafeng.Xu)
Component: Gaia::Camera → Vendcom
No longer blocks: 1008970
No follow up updates anymore. Remove the blocking-b2g flag for now, and please nominate it back if it's required. Thank you.
blocking-b2g: 1.3T+ → ---
No longer blocks: 1007772
Status: REOPENED → RESOLVED
Closed: 10 years ago8 years ago
Resolution: --- → WONTFIX
Flags: needinfo?(Dafeng.Xu)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: