MP4,1-->5,1+RX580+FCPX10.4.3+HEVC = CRASH!

Socket

macrumors regular
Original poster
Jul 9, 2015
137
15
Hi!
I'm trying to work with an HEVC file, filmed by an Iphone, in FCPX 10.4.3 and Mojave installed 1 hour ago.
The graphic card is an RX580

Opening the file in Quicktime or in finder or VLC, all is OK, but...

If I import the file into a project in FCPX, I hear only the audio, then it freezes and beach-ball...and force quit is the only solution.

Why I can see the video in quicktime but NOT in fcpx?

I had this problem in High Sierra but I thought that it was caused by non-supported-card...now the RX580 is Mojave full-support, so it's strange this error!

Can someone with a Mac Pro 2009 + rx580 give a look and try if has the same problem?
Thank you!
 

fhturner

macrumors 6502a
Nov 7, 2007
588
370
Birmingham, AL & Atlanta, GA
I briefly tried playing w/ one of the Sony HEVC sample files that we've tested and discussed in other threads, and I noticed that it hung up FCPX also. However, since that was Mojave beta, I just figured it was due to new HEVC decode support for the RX 580, and that a FCPX update would likely clear it up. Didn't bother to test in High Sierra, so that's troublesome that you see the same problem there.

Can you generate optimized media for the HEVC file and work w/ that? Not that you should have to do it no matter what, but that might give you a workaround for the moment.

P.S. My test was on a 2010 machine, so unlikely it has anything to do w/ yours being an updated 4,1.
 

Socket

macrumors regular
Original poster
Jul 9, 2015
137
15
Can you generate optimized media for the HEVC file and work w/ that? Not that you should have to do it no matter what, but that might give you a workaround for the moment.
Not in FCPX...the % during transcoding remain 0%
I must to open in VLC, transcode in VLC and import in FCPX. I Hope next FCPX update will fix it
 

orph

macrumors 68000
Dec 12, 2005
1,884
391
UK
trans code the file with something like handbrake if you need to edit it now.
report the bug to apple i gess?
 

Socket

macrumors regular
Original poster
Jul 9, 2015
137
15
trans code the file with something like handbrake if you need to edit it now.
report the bug to apple i gess?
Yes, i'm transcoding in VLC for now, but when I have a lot of files, it's very annoying
I reported the bug a month ago when I was working in High Sierra, but no answers
 

bookemdano

macrumors 65816
Jul 29, 2011
1,307
743
I think maybe Apple is aware of HEVC issues with Mojave. h98 said that the 10.14.1 betas have HEVC decode completely disabled. So hopefully that means Apple is working on it and will have it fixed soon.
 

RamMac

macrumors newbie
Jul 12, 2018
21
4
I think maybe Apple is aware of HEVC issues with Mojave. h98 said that the 10.14.1 betas have HEVC decode completely disabled. So hopefully that means Apple is working on it and will have it fixed soon.
This is interesting, I had issues with Sapphire RX580 Nitro+ and all earlier versions of Mojave with images and videos in Photos app taken with my iPhone 7 with HEVC codec on. Now after installing 10.14.1 all problems gone and all images works in photos app as they should.
 

Wheelbur

macrumors newbie
Oct 3, 2018
3
4
Hi,
same problem here since 10.13.4. After some investigation, the first HEVC video played after the startup is played with the hardware decoder of the RX580 (look for gva in console and cpu usage of the VTDecoderXPCService process) in Quicklook or Quicktime and on the second video the gva give an error. In Quicklook and Quicktime the video can be played but with large cpu usage.
Same with Resolve.
But with FCPX, I also get a hang.

On 10.13.6 I use drivers from 10.13.3 and I can use FCPX but with large cpu usage.
Same problem with 10.14. Not tested with 10.14.1.

So FCPX need an update to not crash in this situation but the root seems to be the driver of the RX580.

i have a XFX model with 8Go, I wonder if the Saphire Pulse model or the eGPU have the same problem.

A opened a Bugreport but no reply from Apple yet.
 
  • Like
Reactions: orph and Socket

h9826790

macrumors G5
Apr 3, 2014
14,156
6,788
Hong Kong
Hi!
I'm trying to work with an HEVC file, filmed by an Iphone, in FCPX 10.4.3 and Mojave installed 1 hour ago.
The graphic card is an RX580

Opening the file in Quicktime or in finder or VLC, all is OK, but...

If I import the file into a project in FCPX, I hear only the audio, then it freezes and beach-ball...and force quit is the only solution.

Why I can see the video in quicktime but NOT in fcpx?

I had this problem in High Sierra but I thought that it was caused by non-supported-card...now the RX580 is Mojave full-support, so it's strange this error!

Can someone with a Mac Pro 2009 + rx580 give a look and try if has the same problem?
Thank you!
I think maybe Apple is aware of HEVC issues with Mojave. h98 said that the 10.14.1 betas have HEVC decode completely disabled. So hopefully that means Apple is working on it and will have it fixed soon.
Apple know about this issue, because I submitted a bug report for this exact issue and they are working on it.

Screenshot 2018-10-04 at 16.40.34.png
 

Terrence1828

macrumors newbie
Sep 11, 2018
7
0
I also have that problem,
My Mac pro 4.1 up to 5.1 ,is 3.33 x2 ,128GB ram ,sapphire pulse Rx580,
My iphone X setting video is 4k 60fps,put to fcpx , no sound ,and always need close program.
See that topic ,problem in word
 

MIKX

macrumors 68000
Dec 16, 2004
1,734
640
Aussie in Japan
How about ALL of you new posters take 5 minutes to create a Macrumors " sig" so that we can see ..
1. Which cMP you have.

2. Which cMP model + which GPU ( flashed ? )

3. Which Mac OS release .. and . . whether you did a CLEAN INSTALL

4. .. everything else useful info that might allow us to see what you did wrong.

==================

As an example .. here is my SIG it tells you around 99% accurate info regarding my personal cMP current setup.

Show us your SIG. many members here with vast experience will see your sig & help you
 
Last edited:

Wheelbur

macrumors newbie
Oct 3, 2018
3
4
I've got an answer from Apple, they said it's fixed in the last 10.14.1 beta.

After upgrading I can say that FCPX is not crashing anymore, but I'm not entirely sure that the decoding hardware acceleration is there. The Cpu usage of VTDecoderXPCService is high, but the GPU is 100%. There is no more error with GVA in the console because it's not loaded...
There is also no Airplay monitor icon on the menu bar.
But there seems to be a metal decoder that I've never seen before.

Edit:
Reverted back to 10.14.0 to compare
First time I launch an HEVC video with quicklook I get very low CPU and GPU usage and the console log show that GVA is behaving normally.
The second time I launch the video I get high CPU.
The screenshot show a fallback to the regular codec VCPHEVC.bundle after the failure of the AppleGVAHEVCDecoder.bundle
 

Attachments

Last edited:
  • Like
Reactions: Socket and h9826790

Wheelbur

macrumors newbie
Oct 3, 2018
3
4
Bad news, Apple closed my bugreport.
They « did not planned to enable hardware decoding on this Platform »

Maybe not unexpected, but I was hopeful!
And in fact it was working, but only for one video per session...
 

crjackson2134

macrumors 601
Mar 6, 2013
4,735
1,869
Charlotte, NC
Bad news, Apple closed my bugreport.
They « did not planned to enable hardware decoding on this Platform »

Maybe not unexpected, but I was hopeful!
And in fact it was working, but only for one video per session...
Wow, what a crappy solution. Time for opening more bug reports. It's stupid to have it at your fingertips but just snatched away because they can.
 

teagls

macrumors regular
May 16, 2013
179
74
Wow, what a crappy solution. Time for opening more bug reports. It's stupid to have it at your fingertips but just snatched away because they can.

If you want to test for hardware encoding you can try this out. Copy the code in this gist – https://gist.github.com/teaglin/f1e2e9478228311edc8663c6902c7d82

Put it in a swift file like encoderTest.swift
Then run the swift file in terminal like "swift ./encoderTest.swift"

You will get an output like so:

GVA encoder info: AMD performance mode : 2
GVA encoder info: deleteSCDMetalContext : texture cache hits: 0, misses: 0
Can do hardware H264 encoding: true
Can do hardware HEVC encoding: false
 

h9826790

macrumors G5
Apr 3, 2014
14,156
6,788
Hong Kong
If you want to test for hardware encoding you can try this out. Copy the code in this gist – https://gist.github.com/teaglin/f1e2e9478228311edc8663c6902c7d82

Put it in a swift file like encoderTest.swift
Then run the swift file in terminal like "swift ./encoderTest.swift"

You will get an output like so:

GVA encoder info: AMD performance mode : 2
GVA encoder info: deleteSCDMetalContext : texture cache hits: 0, misses: 0
Can do hardware H264 encoding: true
Can do hardware HEVC encoding: false
This is the result of a Sapphire PULSE RX580 8GB in a Mac Pro 5,1 with 10.14.0
Screenshot 2018-10-17 at 07.13.28.png
 
  • Like
Reactions: crjackson2134

teagls

macrumors regular
May 16, 2013
179
74
just curious, what if the result like this :

View attachment 795648
Interesting – so you have HEVC hardware encoding available but not h264. So for those curious. The code I included attempts to create a session requiring hardware encoding for that specific codec through Apple's internal framework Videotoolbox. Unfortunately Apple controls how that framework interacts with your specific hardware and Videotoolbox is the only way to get hardware encoding.
 

orph

macrumors 68000
Dec 12, 2005
1,884
391
UK
will be interesting to see what a macpro with a vaga or rx 560 (or NVIDIA?) card says, is apple replaying on just the igpu for hardware encode/decode?

im not shore how to make the swift file, is it safe for some one to send it to me so i can try (osx10.13)
 

Kubat

macrumors member
Jan 10, 2006
35
8
Poland
Hello all
I'm 4.1 ->5.1 I had just swapped Radeon HD 7950 to Sapphire RX 580 nitro+ 8GB, installed Mojave and all HEVC files that used to run on FCPX are now blacked out, no GPU render and constant FCPX crashes when attempting to play the video.
Tried to convert to ProRes through Compressor - i get audio + green flickering screen... And no answer so waiting for 10.14.1 or maybe there is a way to mod/flash the card?
 

h9826790

macrumors G5
Apr 3, 2014
14,156
6,788
Hong Kong
Hello all
I'm 4.1 ->5.1 I had just swapped Radeon HD 7950 to Sapphire RX 580 nitro+ 8GB, installed Mojave and all HEVC files that used to run on FCPX are now blacked out, no GPU render and constant FCPX crashes when attempting to play the video.
Tried to convert to ProRes through Compressor - i get audio + green flickering screen... And no answer so waiting for 10.14.1 or maybe there is a way to mod/flash the card?
Apple’s engineer told me that should be fixed in the latest 10.14.1 beta.
However, I haven’t try it, AFAIK, they simply took out all hardware decode from the RX580 to achieve that stability. I prefer to keep that, so haven’t try the leastest build yet. And I rarely need to direct edit HEVC anyway. So, doesn’t really matter to me.

Anyway, 10.14.1 officially release should be around the corner. If you don’t want to use publish beta, you may wait for the official release.
 
  • Like
Reactions: Kubat and Synchro3

Kubat

macrumors member
Jan 10, 2006
35
8
Poland
I can confirm, after the official 10.14.1 update, FCPX and Comressor recognise HEVC files!
The playback is very laggy, but still - no crash! :) I'll do some tests with istat menus to see the GPU performance.
Thanks!
 
  • Like
Reactions: Socket

fhturner

macrumors 6502a
Nov 7, 2007
588
370
Birmingham, AL & Atlanta, GA
I can confirm, after the official 10.14.1 update, FCPX and Comressor recognise HEVC files!
The playback is very laggy, but still - no crash! :) I'll do some tests with istat menus to see the GPU performance.
Thanks!
Ok, cool. So, since "very laggy" and since they closed my bug reports, probably just CPU decoding...but at least no hangup/crash in FCPX. That's something at least.
 
  • Like
Reactions: h9826790
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.