Closed
Bug 1028877
Opened 11 years ago
Closed 11 years ago
[Tarako]Video file is still opening when camera stop, that would cause a "usb storage" bug
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(blocking-b2g:1.3T+, b2g-v1.3T fixed, b2g-v1.4 unaffected)
Tracking | Status | |
---|---|---|
b2g-v1.3T | --- | fixed |
b2g-v1.4 | --- | unaffected |
People
(Reporter: lianxiang.zhou, Assigned: dhylands)
References
Details
(Whiteboard: [sprd325508][partner-blocker])
Attachments
(1 file)
4.79 KB,
patch
|
dhylands
:
review-
|
Details | Diff | Splinter Review |
1 When camera is recording to a video file, the file is opened by both camera app(373) and b2g app(85).
$ adb shell lsof
b2g 85 root 112 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
b2g 373 app_373 42 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
b2g 373 app_373 43 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
b2g 373 app_373 44 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
2 When camera stop record, the video file is still opening. But only one for each application.
$ adb shell lsof
b2g 85 root 112 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
b2g 373 app_373 42 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
3 We close the camera application, the video file is still opening by b2g app(85).
$ adb shell lsof
b2g 85 root 112 ??? ??? ??? ??? /mnt/sdcard/DCIM/100MZLLA/VID_0046.3gp
4 If we take more record, each record left a file open by b2g app(85), and one for camera app if the camera application is still running.
5 This will cause a bug when we try to enable usb storage.
I/AutoMounter( 85): UpdateState: umsAvail:1 umsEnabled:1 mode:1 usbCablePluggedIn:1 tryToShare:1
I/AutoMounter( 85): UpdateState: Volume extsdcard is Mounted and inserted @ /mnt/sdcard gen 1 locked 0 sharing y
W/AutoMounter( 85): The following files are open under '/mnt/sdcard'
W/AutoMounter( 85): PID: 85 file: '/mnt/sdcard/DCIM/100MZLLA/VID_0027.3gp' app: '' comm: 'b2g' exe: '/system/b2g/b2g'
W/AutoMounter( 85): PID: 85 file: '/mnt/sdcard/DCIM/100MZLLA/VID_0019.3gp' app: '' comm: 'b2g' exe: '/system/b2g/b2g'
W/AutoMounter( 85): PID: 85 file: '/mnt/sdcard/DCIM/100MZLLA/VID_0018.3gp' app: '' comm: 'b2g' exe: '/system/b2g/b2g'
W/AutoMounter( 85): UpdateState: Mounted volume extsdcard has open files, not sharing or formatting
6 After the left video file is opening, we enable "settings->USB storage", and then insert the usb cable, the AutoMounter process will run but fail for the opening file. And all applications can not access the sdcard. The AutoMounter can not recover unless we kill the b2g application. There is a deadlock in the AutoMounter progress.
7 No bug in ffos1.4. The camera app and b2g app close the video file timely when record is stopped.
Updated•11 years ago
|
blocking-b2g: --- → 1.3T?
status-b2g-v1.3T:
--- → affected
status-b2g-v1.4:
--- → unaffected
Flags: needinfo?(ttsai)
Flags: needinfo?(kli)
Flags: needinfo?(dhylands)
Whiteboard: [sprd325508][partner-blocker]
Assignee | ||
Comment 1•11 years ago
|
||
As part of fixing bug 910498, I also filed and fixed several other bugs.
Bug 977372 and bug 977373 were both handle leaks which may be related to this. It looks like these were both fixed in 1.4 and not backported to 1.3T.
It looks like 910498 was backported to 1.3T, so I think that 977372 and 977373 also need to be backported.
Flags: needinfo?(dhylands)
Updated•11 years ago
|
Flags: needinfo?(fabrice)
Updated•11 years ago
|
Comment 2•11 years ago
|
||
After backport patch on bug 977372 and 977373 to v1.3t, the problem was fixed.
Flags: needinfo?(kli)
Updated•11 years ago
|
Attachment #8445044 -
Flags: review?(dhylands)
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8445044 [details] [diff] [review]
bug-1028877_v1.3t.diff
Review of attachment 8445044 [details] [diff] [review]:
-----------------------------------------------------------------
For trackability, please request approval for uplift of bugs 977372 and bug 977373 to 1.3t.
If branch specific versions of the patches are required, then they should be attached to those bugs, and not this bug.
Attachment #8445044 -
Flags: review?(dhylands) → review-
Comment 4•11 years ago
|
||
Blocking because the scenario leads to inaccessible sdcard/deadlock in automounter and there is no recovery unless you kill the b2g application.
blocking-b2g: 1.3T? → 1.3T+
Comment 5•11 years ago
|
||
I gave approval on both bugs. If someone could do the uplifts...
Flags: needinfo?(fabrice)
Updated•11 years ago
|
Target Milestone: --- → 2.0 S5 (4july)
Assignee | ||
Comment 6•11 years ago
|
||
It looks like the patches for bug 977372 and bug 977373 were both uplifted to 1.3t gecko.
I wasn't able to test these (I don't have a tarako), so I'd appreciate hearing about whether they work or not, and if they do, then I can go ahead and close this bug.
Updated•11 years ago
|
Flags: needinfo?(ttsai)
Comment 7•11 years ago
|
||
I verified with today build on my tarako, I can't reproduce at all.
Comment 8•11 years ago
|
||
(In reply to Kai-Zhen Li from comment #7)
> I verified with today build on my tarako, I can't reproduce at all.
Assignee: nobody → dhylands
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•