Closed
Bug 977372
Opened 10 years ago
Closed 10 years ago
[Camera][Gecko] camera is holding a file descriptor open even after video recording has stopped
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(blocking-b2g:1.4+, b2g-v1.3 wontfix, b2g-v1.3T fixed, b2g-v1.4 fixed)
People
(Reporter: dhylands, Assigned: dhylands)
References
Details
(Whiteboard: [fxos:media])
Attachments
(3 files, 2 obsolete files)
1.16 KB,
patch
|
bent.mozilla
:
review+
fabrice
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
5.05 KB,
patch
|
fabrice
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
4.93 KB,
patch
|
Details | Diff | Splinter Review |
STR: - unplug USB cable - setup USB Mass Storage - start recording a video - stop recording the video - connect USB cable The AutoMounter will try to share the sdcard, but it will fail due to open files. I see the following in logcat: The following files are open under '/mnt/sdcard' PID: 626 file: '/mnt/sdcard/1393458298451_tmp.3gp (deleted)' app: '' comm: 'b2g' exe: '/system/b2g/b2g' PID: 832 file: '/mnt/sdcard/1393458298451_tmp.3gp (deleted)' app: 'Camera' comm: 'Camera' exe: '/system/b2g/plugin-container' PID: 832 file: '/mnt/sdcard/1393458298451_tmp.3gp (deleted)' app: 'Camera' comm: 'Camera' exe: '/system/b2g/plugin-container' UpdateState: Mounted volume sdcard has open files, not sharing or formatting
Comment 1•10 years ago
|
||
Should this be marked as 1.4+ as it blocks a blocker?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dhylands
blocking-b2g: --- → 1.4?
Target Milestone: --- → 1.4 S3 (14mar)
Updated•10 years ago
|
blocking-b2g: 1.4? → 1.4+
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8383425 -
Flags: review?(mhabicher)
Assignee | ||
Updated•10 years ago
|
Whiteboard: [fxos:media]
Comment 3•10 years ago
|
||
Comment on attachment 8383425 [details] [diff] [review] Close device storage file descriptor when finished with it. Review of attachment 8383425 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/camera/GonkCameraControl.cpp @@ +862,2 @@ > int fd = aFileDescriptor->mFileDescriptor.PlatformHandle(); > + ScopedClose autoClose(fd); I didn't even notice this had been removed in the earlier changeset. My bad. :(
Attachment #8383425 -
Flags: review?(mhabicher) → review+
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #3) > Comment on attachment 8383425 [details] [diff] [review] > Close device storage file descriptor when finished with it. > > Review of attachment 8383425 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/camera/GonkCameraControl.cpp > @@ +862,2 @@ > > int fd = aFileDescriptor->mFileDescriptor.PlatformHandle(); > > + ScopedClose autoClose(fd); > > I didn't even notice this had been removed in the earlier changeset. My bad. > :( I'm confused by your comment.
Comment 5•10 years ago
|
||
(In reply to Dave Hylands [:dhylands] from comment #4) > > I'm confused by your comment. Sorry--I reviewed your earlier changeset on this file where the scoped-close went away, and didn't notice.
Comment 6•10 years ago
|
||
(Earlier patch for bug 910498.)
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Mike Habicher [:mikeh] from comment #5) > (In reply to Dave Hylands [:dhylands] from comment #4) > > > > I'm confused by your comment. > > Sorry--I reviewed your earlier changeset on this file where the scoped-close > went away, and didn't notice. Ahh - Your comment makes more sense now (I wasn't thinking outside of this bug and this was the only changeset I submited). Although that scope close going away was for a file the camera was opening, so it was slighly different. Interesting that another one wound up in the same spot :)
Assignee | ||
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/461d5599aa8c
Comment 9•10 years ago
|
||
Backed out for bustage. https://hg.mozilla.org/integration/b2g-inbound/rev/b03b65542900 https://tbpl.mozilla.org/php/getParsedLog.php?id=35439661&tree=B2g-Inbound
Assignee | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/46841ca6d96a Sigh the missing #include somehow wound up in a different patchset
Assignee | ||
Comment 11•10 years ago
|
||
Backed out again due to windows bustage https://hg.mozilla.org/integration/b2g-inbound/rev/17a26150a639
Assignee | ||
Comment 12•10 years ago
|
||
Attachment #8384911 -
Flags: review?(bent.mozilla)
Assignee | ||
Comment 13•10 years ago
|
||
Since this patch is totally different from the r+'d one, putting this one up for review again.
Attachment #8384916 -
Flags: review?(mhabicher)
Assignee | ||
Updated•10 years ago
|
Attachment #8383425 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8384916 -
Attachment description: bug-977372.patchClose device storage file descriptor when finished with it. v2 → Close device storage file descriptor when finished with it. v2
Assignee | ||
Comment 14•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=f6b95daa21a3
Comment 15•10 years ago
|
||
Comment on attachment 8384916 [details] [diff] [review] Close device storage file descriptor when finished with it. v2 Review of attachment 8384916 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #8384916 -
Flags: review?(mhabicher) → review+
Updated•10 years ago
|
Attachment #8384911 -
Flags: review?(bent.mozilla) → review+
Assignee | ||
Comment 16•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/4fb349c12a63 https://hg.mozilla.org/integration/b2g-inbound/rev/1314168b5271
Comment 17•10 years ago
|
||
(In reply to Dave Hylands [:dhylands] from comment #16) > https://hg.mozilla.org/integration/b2g-inbound/rev/4fb349c12a63 > https://hg.mozilla.org/integration/b2g-inbound/rev/1314168b5271 sorry had to backout this changes, seems they caused https://tbpl.mozilla.org/php/getParsedLog.php?id=35708043&tree=B2g-Inbound
Assignee | ||
Comment 18•10 years ago
|
||
Added if test to verify that the file handle is valid before trying to use CloseFileRunnable. Carrying r+
Attachment #8384916 -
Attachment is obsolete: true
Assignee | ||
Comment 19•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=f699aee12614
Assignee | ||
Comment 20•10 years ago
|
||
Try run now looks green. Re-landing https://hg.mozilla.org/integration/b2g-inbound/rev/6541ba39a120 https://hg.mozilla.org/integration/b2g-inbound/rev/f8bf9630b972
Comment 21•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6541ba39a120 https://hg.mozilla.org/mozilla-central/rev/f8bf9630b972
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
status-b2g-v1.4:
--- → fixed
Updated•10 years ago
|
status-b2g-v1.3T:
--- → affected
Updated•10 years ago
|
Flags: needinfo?(ying.xu)
Flags: needinfo?(lianxiang.zhou)
Flags: needinfo?(Dafeng.Xu)
Assignee | ||
Comment 22•10 years ago
|
||
Comment on attachment 8384911 [details] [diff] [review] Pt 1 - Remove main thread assert so CloseFileRunnable can be used from non-main threads. This bug blocks 1028877 which is marked 1.3T+, so I'm requesting for approval on this patch to be uplifted to 1.3T I don't see a specific approval request for 1.3T NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): 901498 (which was uplifted to 1.3T) User impact if declined: See bug 9775597 and 1028877 Testing completed: Manual testing (since testing involves unplugging USB which is currently not part of the automated tests) Risk to taking this patch (and alternatives if risky): Low (since this has been on master for 3 months) String or UUID changes made by this patch: none
Attachment #8384911 -
Flags: approval-mozilla-b2g28?
Assignee | ||
Comment 23•10 years ago
|
||
Comment on attachment 8386834 [details] [diff] [review] Pt 2 - Close device storage file descriptor when finished with it. v3 This bug blocks 1028877 which is marked 1.3T+, so I'm requesting for approval on this patch to be uplifted to 1.3T NOTE: This flag is now for security issues only. Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): 901498 (which was uplifted to 1.3T) User impact if declined: See bug 9775597 and 1028877 Testing completed: Manual testing (since testing involves unplugging USB which is currently not part of the automated tests) Risk to taking this patch (and alternatives if risky): Low (since this has been on master for 3 months) String or UUID changes made by this patch: none
Attachment #8386834 -
Flags: approval-mozilla-b2g28?
Assignee | ||
Comment 24•10 years ago
|
||
Adding needinfo for jcheng and bbajaj since this patch needs to be uplifted to 1.3T, but the flags don't seem to be present to do that.
Flags: needinfo?(jcheng)
Flags: needinfo?(bbajaj)
Updated•10 years ago
|
Attachment #8386834 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Updated•10 years ago
|
Attachment #8384911 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Comment 25•10 years ago
|
||
Part 2 needs rebasing around bug 909542 not being on 1.3T.
status-b2g-v1.3:
--- → wontfix
Flags: needinfo?(jcheng)
Flags: needinfo?(dhylands)
Flags: needinfo?(bbajaj)
Keywords: branch-patch-needed
Assignee | ||
Comment 26•10 years ago
|
||
I was able to build for tarako with this patch, but I don't actually have a tarako, so I'm unable to test it. I'd appreciate it if somebody could apply this patch and pt1 (About removing main thread assert)
Flags: needinfo?(dhylands)
Assignee | ||
Updated•10 years ago
|
Attachment #8386834 -
Attachment description: Close device storage file descriptor when finished with it. v3 → Pt 2 - Close device storage file descriptor when finished with it. v3
Assignee | ||
Updated•10 years ago
|
Attachment #8384911 -
Attachment description: Remove main thread assert so CloseFileRunnable can be used from non-main threads. → Pt 1 - Remove main thread assert so CloseFileRunnable can be used from non-main threads.
Assignee | ||
Updated•10 years ago
|
Attachment #8446831 -
Attachment description: Pt 2 - Close device storage file descriptor when finished with it (v1.3t specific pattch) → Pt 2 - Close device storage file descriptor when finished with it (v1.3t specific patch)
Comment 27•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/f96954fbca3f https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/63cdad87296c
Keywords: branch-patch-needed
Updated•10 years ago
|
Flags: needinfo?(lianxiang.zhou)
You need to log in
before you can comment on or make changes to this bug.
Description
•