Closed Bug 910995 Opened 13 years ago Closed 8 years ago

[Camera] Video file is not properly closed when phone is restarted while recording

Categories

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

defect

Tracking

(blocking-b2g:-, b2g18 affected)

RESOLVED WONTFIX
blocking-b2g -
Tracking Status
b2g18 --- affected

People

(Reporter: sync-1, Assigned: dmarcos)

References

Details

(Whiteboard: [priority])

Firefox os v1.1 Mozilla build ID:20130826041201 DEFECT DESCRIPTION: Restart the phone during recording,video recording is not saved REPRODUCING PROCEDURES: 1.Launch Camera app 2.Switch to camcorder 3.Record a video 4.Restart the phone during recording-->Video not saved-->ko EXPECTED BEHAVIOUR: ko:Restart the phone during recording,video is saved ASSOCIATE SPECIFICATION: TEST PLAN REFERENCE: TOOLS AND PLATFORMS USED: USER IMPACT: Mid REPRODUCING RATE: 5/5 For FT PR, Please list reference mobile's behavior:
I tested above steps. It creates the Corrupted video(VID_0001.3gp) file on the DCIM/100MZLLA/ folder. In the Normal scenerio, PowerManagerservice invoked and correspanding destructor executed. +++++++++++++++++++++++ I/PowerManagerService( 178): Call to virtual nsresult mozilla::dom::power::PowerManagerService::PowerOff(). The JS stack is: I/PowerManagerService( 178): 0 sm_actualPowerOff( <Failed to get 'arguments' while inspecting stack frame> .... E/GonkCameraControl( 906): Release Hardware Impl << This is called from GonkCameraControl Destructor I/Gecko ( 606): .... ++++++++++++++++++++ But While CameraRecorder, PowerManagerService is unable to start.
blocking-b2g: --- → leo?
Summary: [Buri][Camera]Restart the phone during recording,video is not saved → [Buri][Camera] Video file is not properly closed when phone is restarted whiie recording
triage: this would be a good problem to fix but will not block release.
blocking-b2g: leo? → -
Assignee: nobody → dmarcos
This is still reproduceable.
We could stop video recording when the user long presses the power button to get into the menu to restart / power off the device. Is there currently any notification we can listen to?
Flags: needinfo?(timdream)
There aren't any notifications to app for that menu. Also, the menu is not entire opaque, so we shouldn't be setting the foreground app to non-visible either. I think the proper fix of this bug is to ensure the app got a onunload events before the phone actually powers off, but I am not sure the Gecko support that or not -- are we getting onunload event when the user kills the app from the cards view?
Flags: needinfo?(timdream)
Summary: [Buri][Camera] Video file is not properly closed when phone is restarted whiie recording → [Camera] Video file is not properly closed when phone is restarted while recording
Hema, this bug is marked P1. Is it really?
Flags: needinfo?(hkoka)
Flags: needinfo?(hkoka)
Priority: P1 → P2
Whiteboard: [priority]
Added my vote. Apps should be able to get a beforeunload before the app is terminated for any reason. It is necessary to ensure they deal with unsaved data and terminate cleanly.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.