Closed
Bug 1242807
Opened 8 years ago
Closed 8 years ago
Fix mp4parse-rust's error reporting via telemetry
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: kinetik, Assigned: kinetik)
Details
Attachments
(1 file)
1.39 KB,
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
Bug 1238420 added telemetry for recording mp4parse-rust's parsing errors. Unfortunately the results reported were garbage due to two small bugs: 1. try_rust wasn't updated to return an int32_t error code (instead returned bool) 2. mp4parse_read's error remapping from the JoinHandle forgot to unwrap the Ok() result Trivial fix coming up.
Assignee | ||
Comment 1•8 years ago
|
||
We can either hotfix capi.rs or wait until the next import of mp4parse-rust. I don't mind either way, but it'd be nice to get good telemetry results sooner rather than later.
Attachment #8711963 -
Flags: review?(giles)
Comment 2•8 years ago
|
||
Comment on attachment 8711963 [details] [diff] [review] v0 Review of attachment 8711963 [details] [diff] [review]: ----------------------------------------------------------------- ship it! ::: media/libstagefright/binding/capi.rs @@ +124,4 @@ > // result in an Ok(..) otherwise, meaning we could see > // Ok(Err(Error::..)) here. So map thread failures back > // to an mp4parse::Error before converting to a C return value. > + match task.join().unwrap_or(Err(Error::AssertCaught)) { Ouch. Even with the comment, this Result<Result<_>, ...> stuff is confusing!
Attachment #8711963 -
Flags: review?(giles) → review+
Assignee | ||
Comment 3•8 years ago
|
||
Thanks for the quick review! The capi.rs change is upstream(ish) at https://github.com/kinetiknz/mp4parse-rust/commit/b6d562127c879b0dbaf1bfccf1f8004568a4f953
Assignee | ||
Comment 4•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e3c7b87718d4b3b3ceae8c9947a9f3eecac8a4eb Bug 1242807 - Fix mp4parse-rust's error reporting via telemetry. r=giles
Comment 5•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e3c7b87718d4
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
Updated•8 years ago
|
Target Milestone: mozilla46 → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•