Closed Bug 1194576 Opened 9 years ago Closed 9 years ago

[EME] Add more logging to GMP parent actors.

Categories

(Core :: Audio/Video: Playback, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox42 --- fixed
firefox43 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It would be helpful if we had more NSPR logging about what's going on with GMPs parent actors. That may help debug some of the errors that I can repro intermittently.
I focused on the parent actors that we care about with regards to EME.
Attachment #8647894 - Flags: review?(gsquelart)
Comment on attachment 8647894 [details] [diff] [review]
Patch: Add more logging to GMP*Parent actors

Review of attachment 8647894 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/media/gmp/GMPDecryptorParent.cpp
@@ +63,5 @@
>                                    const nsCString& aInitDataType,
>                                    const nsTArray<uint8_t>& aInitData,
>                                    GMPSessionType aSessionType)
>  {
> +  LOGD(("GMPDecryptorParent[%p]::CreateSession(token=%d, promiseId=%d, aInitData='%s')",

Both |%d|'s should be |%u|'s for the uint32_t's.
Same with all new LOGD's below.

@@ +340,5 @@
>  
>  bool
>  GMPDecryptorParent::RecvSetCaps(const uint64_t& aCaps)
>  {
> +  LOGD(("GMPDecryptorParent[%p]::RecvSetCaps(caps=0x%x)", this, aCaps));

%llx, I think?

::: dom/media/gmp/GMPVideoDecoderParent.cpp
@@ +287,5 @@
>      return false;
>    }
>  
>    if (!GMPVideoi420FrameImpl::CheckFrameData(aDecodedFrame)) {
> +    LOG(LogLevel::Error, ("%s: Decoded frame corrupt, ignoring"));

Remove '%s'.
Attachment #8647894 - Flags: review?(gsquelart) → review+
https://hg.mozilla.org/mozilla-central/rev/54d0fc994606
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
Comment on attachment 8647894 [details] [diff] [review]
Patch: Add more logging to GMP*Parent actors

Approval Request Comment
[Feature/regressing bug #]: EME
[User impact if declined]: Without this patch, it will be harder to uplift other critical patches as they'll need more complicated rebases, and it harder to debug EME failures in the field in beta builds. This patch adds more NSPR logging, and we've found it very useful to ask people to turn this on to figure out why they've had failures.
[Describe test coverage new/current, TreeHerder]: EME has lots of mochitests
[Risks and why]: Low; just adds logging.
[String/UUID change made/needed]: None.

Beta Try push:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=3e657c22d317
Flags: needinfo?(cpearce)
Attachment #8647894 - Flags: approval-mozilla-beta?
Comment on attachment 8647894 [details] [diff] [review]
Patch: Add more logging to GMP*Parent actors

Taking it to simplify your life, should be in 42 beta 3.
Attachment #8647894 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: needinfo?(cpearce)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: