New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 626795 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Mac Pro (2013 trashcan): Errors logged on app launch creating VTDecompressionSession and VTCompressionSession

Project Member Reported by mark@chromium.org, Jul 8 2016

Issue description

When I start a branded debug build on 10.12dp2 16A239j running on a MacPro6,1, I see the following messages logged:

[42943:1547:0708/165654:WARNING:vt_video_decode_accelerator_mac.cc(162)] Failed to create VTDecompressionSession: Error Domain=NSOSStatusErrorDomain Code=-12913 "(null)" (-12913)
[42943:1547:0708/165654:WARNING:vt_video_decode_accelerator_mac.cc(197)] Failed to create hardware VideoToolbox session
AVDCreateGPUAccelerator: Error loading GPU renderer
[42943:1547:0708/165654:ERROR:vt_video_encode_accelerator_mac.cc(539)]  VTCompressionSessionCreate failed: -12915

<VideoToolbox/VTErrors.h>:

        kVTVideoDecoderNotAvailableNowErr               = -12913,
[…]
        kVTVideoEncoderNotAvailableNowErr               = -12915,

I don’t see these messages from the same build on my laptop, 10.11.5 15F35 on a MacBookPro11,3.

I don’t know if this is a 10.12 thing or a Mac Pro thing. I suspect that it’s a 10.12 thing because Mac Pro users probably would have gotten fed up with these messages by now, or at least asked about them, but the Internet doesn’t have any real mention of them.
 

Comment 1 by mark@chromium.org, Jul 8 2016

10.12dp2 16A239j MacPro6,1 has two AMD FirePro D500 cards (0x1002, 0x679e, 0x0000)

10.11.5 15F35 MacBookPro11,3 has an Intel Iris Pro (0x8086, 0x0d26, 0x0008) and an NVIDIA GeForce GT 750M (0x10de, 0x0fe9, 0x00a2)

Comment 2 by mark@chromium.org, Jul 8 2016

These messages were logged by the GPU process. These also shows up in Console.app or log --stream, logged by the GPU process:

Timestamp                       Thread     Type        Activity             PID
2016-07-08 21:35:42.456398+0000 0x253d2a   Default     0x0                  43829  Google Chrome Helper: (VideoToolbox) [com.apple.coremedia.] vtDecompressionDuctCreate signalled err=-12913 (err) (Could not select and open decoder instance) at /Library/Caches/com.apple.xbs/Sources/CoreMedia_frameworks/CoreMedia-1873/Sources/VideoToolbox/VTDecompressionSession.c line 1350
2016-07-08 21:35:42.478993+0000 0x253d2a   Default     0x0                  43829  Google Chrome Helper: (VideoToolbox) [com.apple.coremedia.] <<<< VTVideoEncoderSelection >>>> no video encoder accepted for 'avc1'
2016-07-08 21:35:42.479040+0000 0x253d2a   Default     0x0                  43829  Google Chrome Helper: (VideoToolbox) [com.apple.coremedia.] VTSelectAndCreateVideoEncoderInstanceInternal signalled err=-12908 (err) (Video encoder not accepted) at /Library/Caches/com.apple.xbs/Sources/CoreMedia_frameworks/CoreMedia-1873/Sources/VideoToolbox/VTVideoEncoderSelection.c line 1327
2016-07-08 21:35:42.479086+0000 0x253d2a   Default     0x0                  43829  Google Chrome Helper: (VideoToolbox) [com.apple.coremedia.] VTCompressionSessionCreate signalled err=-12915 (err) (Could not select and open encoder instance) at /Library/Caches/com.apple.xbs/Sources/CoreMedia_frameworks/CoreMedia-1873/Sources/VideoToolbox/VTCompressionSession.c line 1009
It is most probably caused by 10.12. It will fallback to SW Encode in both cases AFAIK. I need to set up a 10.12 environment to debug further.

Also, looking at the 10.12 API Diffs, it doesn't look like anything changed for Obj-C VideoToolbox.
https://developer.apple.com/library/prerelease/content/releasenotes/Miscellaneous/APIDiffsMacOS10_12/

Comment 4 by mark@chromium.org, Jul 8 2016

Do you have something that you can get a 10.12 beta installed on?
I don't have one right now. Is there anything I can access remotely? If not I will look for an Air to install on.
Project Member

Comment 6 by sheriffbot@chromium.org, Jul 9 2016

Labels: -M-53 M-54 MovedFrom-53
Moving this nonessential bug to the next milestone.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by mark@chromium.org, Jul 11 2016

Labels: -M-54 -MovedFrom-53 M-53
When I boot the same machine into 10.11, I see these messages also, so I’m not sure that this is a 10.12 thing.

I don’t know of anything that you can get into remotely. Probably best to just try to grab a Mac loaner for something like this.

Comment 8 by mark@chromium.org, Jul 11 2016

Yeah, I think that this workstation just doesn’t support hardware-accelerated h264 decode/encode. VideoToolbox may just wrap Intel Quick Sync for hardware acceleration, which isn’t supported by this CPU (Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz). https://larryjordan.com/articles/mac-pro-video-compression/
mark@, as per #8, can I understand this is by design? if so, can you please resolve this bug? thanks
Cc: pinkerton@chromium.org shrike@chromium.org
The top of the line Mac hardware from 3 years ago doesn't support accelerated H264 video decoding? Am I reading this correctly? That seems....suboptimal. 

Comment 11 by mark@chromium.org, Jul 12 2016

Status: WontFix (was: Untriaged)
Summary: Mac Pro (2013 trashcan): Errors logged on app launch creating VTDecompressionSession and VTCompressionSession (was: macOS 10.12: Errors logged on app launch creating VTDecompressionSession and VTCompressionSession)
That’s correct, the system won’t hardware-accelerate H.264 decode or encode on the Mac Pro for us.

There’s a lot about “top of the line” being from “3 years ago” that doesn’t really add up. There’s also Intel’s practice of picking and choosing which features go into which CPUs. Intel’s made QSV a GPU feature, tying it to the on-board GPU, which the Mac Pro’s CPU doesn’t have.

Other discrete GPUs may be able to help (although I don’t know whether VideoToolbox knows how to talk to them) but I don’t think that the AMD FirePro D500 in this trashcan has hardware-accelerated H.264 decode/encode either.

But it’s plugged into the wall, so at least power consumption isn’t a big deal.

Sign in to add a comment