Closed Bug 1050347 Opened 10 years ago Closed 10 years ago

[Camera][Flame][KK] Camera app crashes when stopping recording

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mikeh, Unassigned)

References

Details

STR:
1. open the Camera app
2. switch to video mode
3. start recording
4. stop recording

Expected: Camera app should stop recording and not crash.

Observed: Camera app crashes, phone returns to Homescreen.

Platform:
- gonk:  v163
- gecko: master:58fedf8654994cc1d9315d8da31e6e032f1502c9
- gaia:  master:e91d6a7e24da61764a2bca26dff2e50da0e82c8b
Looks like the crash is in stagefright:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2362.2811]
pthread_mutex_lock_impl (mutex=0x8) at bionic/libc/bionic/pthread.c:588
588	    mvalue = mutex->value;
(gdb) bt
#0  pthread_mutex_lock_impl (mutex=0x8) at bionic/libc/bionic/pthread.c:588
#1  0xb4a98ab2 in android::CameraSourceTimeLapse::CreateFromCamera (camera=..., proxy=..., cameraId=-1, clientName=..., clientUid=0, videoSize=..., videoFrameRate=-1225365025, surface=..., timeBetweenFrameCaptureUs=-5620381281276159184, storeMetaDataInVideoBuffers=240)
    at frameworks/av/media/libstagefright/CameraSourceTimeLapse.cpp:52
#2  0xb4aae33c in android::MediaCodecList::addQuirk (this=0xb3e71f70, attrs=<optimized out>) at frameworks/av/media/libstagefright/MediaCodecList.cpp:362
#3  0x00000000 in ?? ()

Note that gdb posted the following warnings, so the above backtrace is suspect:

warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/libcamera_client.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/libcrypto.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/libssl.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/libstagefright_omx.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/libstagefright.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/hw/gralloc.msm8610.so" is not at the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/home/mikeh/dev/mozilla/b2g/058_flame-kk/out/target/product/flame/symbols/system/lib/libwilhelm.so" is not at the expected address (wrong library or version mismatch?)
(Sorry, that should be v162-3.)
Just re-tested this with mwu's latest port, and it no longer occurs.

Flame:
- gonk:  v162-3
- gecko: master:a7cf4142b4a5c50e95b6929de4141ca55b135d33
- gaia:  master:c97d1b6c3094e854377b6affa5f46b8d4b7316ce
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.