Closed Bug 1043422 Opened 10 years ago Closed 7 years ago

[Camera][Gecko?] Recording multiple videos increases the likelihood of LMK

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mikeh, Unassigned)

References

Details

I came across this while investigating 480p video recording on Flame in bug 1027592. It is more easily visible at memory-limited configurations, such as ~290 MB, although I haven't been able to pin down a threshold where it consistently happens.

Configuration:
- gonk:     v122 (jb)
- gecko:    b2g-inbound:195513:0fb3c6714933
- gaia:     master:77e73c20c180fdf7f37247fa60a3d1886cdc726e
- memlimit: 274 to 290 MB

STR:
1. open Camera app
2. switch to video mode
3. start recording a video -- I've tested everything from 1..60-minute videos
4. stop recording
5. start recording again -- a short video will do, e.g. 30s
6. stop recording again
7. repeat steps 5 and 6 until one or more of:
    - the viewfinder gets janky
    - the Homescreen gets killed
    - the Camera app gets killed

Which trying the above, I had running:

# while adb shell b2g-ps; do sleep 30; done

Over the course of the test, I see the Camera app's VSIZE increase in big steps at the following events:
a. open Camera app, switch to video mode: VSIZE = ~82..87 MB
b. start recording: VSIZE = ~94..96 MB
c. stop recording: VSIZE = ~105 MB
d. restart recording: VSIZE = ~114 MB

Repeating steps (c) and (d) shows no further significant changes in the Camera's VSIZE, but eventually the viewfinder starts to get janky, and the Homescreen, Camera, and any other processes get LMKed. If the Camera is restarted, the problems remain: janky viewfinder and the Camera app may get LMKed soon after recording is started.

Will try to reproduce on v123.
Brian and Mike, Hema tells me your team has a QRD now. Can you see if this issue reproduces on it?
Flags: needinfo?(mlien)
Flags: needinfo?(brhuang)
I have confirmed this happens with v123 and the gecko/gaia from comment 0.

<6>[ 4335.720140] send sigkill to 972 (Homescreen), adj 534, size 1609
  ...
<6>[ 8854.422824] send sigkill to 1214 (Camera), adj 134, size 3539
We can try if Viral already help to flash QRD with v2.0. We will update later. Keep ni? mike, he will help to check.

Brian
Flags: needinfo?(brhuang)
QRD build currently encounter camera cannot launch successfully issue, keep waiting to reply comment 1
By the way, v1.4, v2.0, and v2.1 have video recording consuming memory issue - Bug 1043823
Flags: needinfo?(mlien)
[Blocking Requested - why for this release]: prioritization.

Need to check about:memory/DMD reports to see where the extra memory is going.
blocking-b2g: --- → 2.1?
Mike, have you had a chance to try this on the QRD yet?
Flags: needinfo?(mlien)
No, current QRD build still get broken camera
Flags: needinfo?(mlien)
We should continue to analyze this and make progress.
For now removing the 2.1? nomination flag..
blocking-b2g: 2.1? → ---
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.