ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Exynos 7870 or SM-T580 has a problem with Widevine DRM Playback

Open workspace opened this issue 8 years ago • 17 comments

Hi! I think my issue is device or core specific problem and related with #3561.

Issue description

When try to play DRM Contents of ExoPlayer 2.6.1 demo app in Exynos 7870 devices such as SM-T580(Samsung Galaxy Tab A Tablet), black flicker has occured.

Reproduction steps

use devices whose cpu is Exynos 7870 Device : SM-T580

Playing 2 sources to compare. Without DRM (Youtube DASH – Google Glass(MP4, H264)) With DRM (Widevine DASH: MP4, H264 – WV:Secure HD (cenc, MP4, H264)) Without DRM, there will be no problem with playback, however, black flicker will be occured with DRM Playback.

Version of ExoPlayer being used

2.6.1

Device(s) and version(s) of Android being used

SM-T580 (or another Exynos 7870 device)

A full bug report captured from the device

I sorry to say I don't have SM-T580 actually...I got this issue from my customer and checked it through attached video from him. Its size is too big for github issue system. Can I send this videos to assignee when assignee is determined.

Thank you and sorry for my English.

workspace avatar Jan 31 '18 08:01 workspace

@KiminRyu, does this particular content fail on all SM-T580s or just a sample? The case you referenced is for live/key rotated content. Is this content live as well? An ADB Bugreport is the best path forward, as we believe the report there are video artifacts so the video will not be needed. However, to help determine a root cause reviewing of the Bugreport is needed.

wvpaf avatar Feb 01 '18 22:02 wvpaf

All drm playback of our android app in SM-T580 has the same problem. Many SM-T580 users reviewed that there is black flickering. I tried to figure out the reason of problem with demo app, then someone attached video for the difference from normal playback and drm playback. As i mentioned above, I don't have SM-T580 device. So it is difficult to debug and get bugreport from it directly. I try to rent or buy used one...

workspace avatar Feb 02 '18 00:02 workspace

If you're able to, please could you send a video showing the issue to [email protected]?

ojw28 avatar Feb 02 '18 13:02 ojw28

@ojw28 I sent it! Check email and reply to my email or leave comments if you need more informations about issue.

workspace avatar Feb 05 '18 08:02 workspace

While the video is helpful to understand the user impact the real useful information is in the ADB bugreport. If there is any chance to get that on a device with this issue that is what will be needed to dig in to this better.

wvpaf avatar Feb 13 '18 22:02 wvpaf

Any update on the full adb bugreport?

wvpaf avatar Feb 27 '18 21:02 wvpaf

@wvpaf There is no chance to get bugreport from devices which have a problem because I don't have one. I look forward to someone who has a device related to this issue will upload bugreport...

workspace avatar Feb 28 '18 15:02 workspace

We have been able to reproduce this issue on the SM-T580, some notes:

Restarting the device fixed it, didn't occur again for months. Affects the ExoPlayer demo and all other apps using Wildvine DRM.

While playing the logcat loops the following lines:

[ 03-07 13:59:31.680 2409: 2409 E/ ]
[PrimaryDisplay] failed to configure MPP (type:4, index:0) for layer 0
03-07 13:59:31.707 2409-2409/? D/libexynosgscaler: virtual CGscaler::~CGscaler()
03-07 13:59:31.707 2409-2409/? D/libexynosgscaler: virtual LibMpp::~LibMpp()

[ 03-07 13:59:31.707 2409: 2409 D/ ]
virtual MppFactory::~MppFactory()
03-07 13:59:31.709 2409-2409/? D/hwcutils: MppFactory::MppFactory()

[ 03-07 13:59:31.709 2409: 2409 D/ ]
virtual LibMpp *MppFactory::CreateMpp(int, int, int, int) dev(4) mode(0) drm(1), 
03-07 13:59:31.709 2409-2409/? D/libexynosgscaler: LibMpp::LibMpp()
03-07 13:59:31.796 2409-2409/? E/ion: ioctl c0144900 failed with code -1: Out of memory
03-07 13:59:31.796 2409-2409/? E/gralloc: invalid yuv format 2
03-07 13:59:31.796 2409-2409/? E/hwcutils: failed to allocate destination buffer(1200x1920): Invalid argument

We have not restarted it this time, so should be able to reproduce again so let me know if you need anything else.

RalphSleighC4 avatar Mar 09 '18 13:03 RalphSleighC4

@wvpaf I have e-mailed a bugreport taken while this was happening to [email protected]

RalphSleighC4 avatar Mar 12 '18 15:03 RalphSleighC4

The logs indicate, "gralloc failed" that the device is not capable of hanlding the content that is attempting to playback. If you limit the content to HD will this reproduce?

wvpaf avatar Mar 15 '18 21:03 wvpaf

I can confirm this is happening when playing SD content, and the device played HD/SD content for some months without issue before this started happening.

I don't know if it could play the exoplayer UHD demo before the issue arose, and don't want to restart it to remove the issue to find out, given the difficulty in replicating it.

RalphSleighC4 avatar Mar 16 '18 09:03 RalphSleighC4

Based on the log message you have attached this appears to be a problem with video memory allocation, possibly due to a memory leak or fragmentation. We have opened an issue report with the manufacturer and will keep you updated as we learn more.

jt64 avatar Apr 24 '18 22:04 jt64

@jt64 - Did you hear from the manufacturer? Thanks.

ojw28 avatar Jun 05 '18 18:06 ojw28

I tried to replicate this issue with sm-j730(Galaxy J7) which has same problem with sm-t580, however, it is not occured yet. Is there something to help with device before having problem?

workspace avatar Jun 28 '18 07:06 workspace

Here is a video of the flickering issue https://streamable.com/v7yvi

AlexM0k avatar Jul 31 '18 13:07 AlexM0k

We have kept our T580 up to date and playing video several hours a day and have not seen this issue in months, it's possible it was fixed in one of the monthly updates (we are on Nov 2018 security patch)

RalphSleighC4 avatar Feb 13 '19 11:02 RalphSleighC4

Thanks @RalphSleighC4 for the update. We'll close as not reproducible. It is probable that there was fix that went out from the manufacture.

paf-wv avatar Feb 26 '19 23:02 paf-wv