Closed
Bug 990366
Opened 10 years ago
Closed 6 years ago
[tarako] should save video captured when MT call screen appears
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(b2g-v1.3T affected)
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
b2g-v1.3T | --- | affected |
People
(Reporter: angelc04, Unassigned)
References
Details
(Whiteboard: OOM [sprd294967][priority])
Reproduce steps: ----------------------------------------------------------------------- 1. Launch Camera 2. Switch to Video mode and start taking a video 3. Make a MT call to test device 4. Answer/Reject the call --> Camera was killed. [expected] we should not kill Camera and we need save the video already captured. After user end the call, they should be able to go back to Camera and find the video already took.
Reporter | ||
Updated•10 years ago
|
status-b2g-v1.3T:
--- → affected
Updated•10 years ago
|
Component: Gaia::Camera → Gaia::Video
Updated•10 years ago
|
blocking-b2g: --- → 1.3T?
Comment 1•10 years ago
|
||
NI :jammink to see how this behaves in 1.3 JOe, given this a different hardware spec we may need to check or get input the gaia:video team on the behavior here. NI :Cj already.
Flags: needinfo?(jhammink)
Flags: needinfo?(cku)
Comment 2•10 years ago
|
||
Here is the behavior on 1.3: After incoming call is accepted, recording stops and video is saved. After incoming call is rejected, recording stops and video is saved. Gaia c5cd3a11e91339163b351d50769eaca0067da860 Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3/rev/5045a67b47ed BuildID 20140401164001 Version 28.0 ro.build.version.incremental=324 ro.build.date=Thu Dec 19 14:04:55 CST 2013
Flags: needinfo?(jhammink)
Ben, please help to check whether camera be terminate by OOM killer before clip saved
Comment 4•10 years ago
|
||
(In reply to C.J. Ku[:CJKu] from comment #3) > Ben, please help to check whether camera be terminate by OOM killer before > clip saved Camera app is terminated by OOM killer as CJ mentioned. This bug can be reproduced by simply going back to HOME screen during recording, and camera app doesn't appear in card view afterwards. We think this bug results from the same cause as another OOM bug 988164. Per offline discussion with Taipei perf' team, we don't have a feasible solution right now.
See Also: → 988164
Comment 5•10 years ago
|
||
Current min_free of background application (oom_adj 10) is 24MB, I revert it to 20MB but still the Camera is killed when back to homescreen.
Comment 6•10 years ago
|
||
this is not going to be done in tarako frame, 1.5?
blocking-b2g: 1.3T? → 1.5?
Updated•10 years ago
|
Whiteboard: OOM
Updated•10 years ago
|
Whiteboard: OOM → OOM [MP_Blocker]
Updated•10 years ago
|
Whiteboard: OOM [MP_Blocker] → OOM
Comment 7•10 years ago
|
||
Hi Peter, could we get some traction on this from the team?
Flags: needinfo?(pbylenga)
Comment 8•10 years ago
|
||
Discussed with John offline and since this is no longer for 1.3T no need for further exploration.
Flags: needinfo?(pbylenga)
Comment 9•10 years ago
|
||
Lets try to get this in 2.0 timeframe. Putting it in priority list of bugs Thanks Hema
blocking-b2g: 2.0? → ---
Component: Gaia::Video → Gaia::Camera
Flags: needinfo?(dflanagan)
Whiteboard: OOM [sprd294967] → OOM [sprd294967][priority]
Target Milestone: --- → 2.0 S3 (6june)
Comment 10•10 years ago
|
||
I'm not sure there is much we can do here: on a low memory device we might just die without warning if an incoming call causes an OOM. Mike: is there any kind of on exit hook we can use in gecko to ensure that a valid video file is written in the case of an OOM during video recording? (Is this just a matter of ensuring that buffers are flushed, or is there also metadata that needs to be written to the file when recording ends?) Is there anything we can do in gecko to reduce memory overhead while recording a video? Note that there is also a 1.3+ bug currently that says that when there is an incoming call we have to stop video recording before the ringer sounds so that we don't capture the sound of the incoming call in the recording. But that is a different issue than this one.
Flags: needinfo?(dflanagan) → needinfo?(mhabicher)
Comment 11•10 years ago
|
||
It's not just a matter of flushing buffers: a chunk of metadata gets written the video file header when it's closed properly. Fabrice, any chance there's a pre-OOM-kill message we could listen for to cleanly wrap up video recording before the Camera app gets killed?
Flags: needinfo?(mhabicher) → needinfo?(fabrice)
Comment 12•10 years ago
|
||
No we can't send a pre-OOM-kill message. At the gecko level you could hook up to the memory-pressure observer notifications. Would that work for you?
Flags: needinfo?(fabrice)
Comment 13•10 years ago
|
||
According to fabrice, there is a "memory-pressure" event we can listen for, but there doesn't seem to be a way to make it useful. The event gets fired whenever there is any memory pressure and not (just) when we're about to get killed. Since the MPEG4Writer has to commit a chunk of final metadata (not just flush its buffers) to make a video file valid, intermittent or periodic messages are not useful. Fixing this problem is going to require a significant change to how the video recorder is implemented. One solution might be to run the MPEG4Writer in a worker process that can detect when the Camera app dies, and commit the metadata at that time.
Updated•10 years ago
|
Assignee: nobody → jdarcangelo
Updated•10 years ago
|
Assignee: jdarcangelo → nobody
Comment 14•10 years ago
|
||
un-assigning -- this seems to need to be resolved from Gecko
Updated•10 years ago
|
Target Milestone: 2.0 S3 (6june) → ---
Comment 15•6 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•