MTLInitializeInterpose

I'm getting the following error..

------------------------------------------------------------

2015-06-24 10:57:50.715 Metal_Touch2[472:68884] Metal GPU Frame Capture Enabled

2015-06-24 10:57:50.717 Metal_Touch2[472:68884]

failed assertion _interposeHandle != NULL at

/BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-54.7/

Framework/MTLDevice.mm:110 MTLInitializeInterpose

(lldb)

this happens when i first call.

self.device = MTLCreateSystemDefaultDevice()

------------------------------------------------------------

I developed this app using Xcode 6 - it is written in Swift & Metal.


I upgraded to El Capitan

I upgraded to Xcode 7 Beta

I recompiled (now Swift 2.0) all my programs and tested on my iPad Air (Model 1474)

targeting iOS 8.3 - all work fine. [this includes 25 applications using 35 different shaders]


------------------------------------------------------------

I installed the iOS 9 beta 2 software.

[iOS 9 beta 2 - iPad Air (Model A1474) - 13A4280e]


Still targeting iOS 8.3 my application builds and launches.

Then errors with the above message.


note: i get the same error when i try Developer Example Code, MetalImageProcessing, MetalPerformanceShadersHelloWorld, MetalKitEssentials

Answered by robertc in 16746022

Getting the same issue also with iPhone 6+ on the latest iOS9 beta and on one of the samples I downloaded.


If I switch back to using "Automatically Enabled" for the GPU Frame Capture option on our own app then it works but the GPU captures in XCode don't work. If set to "Metal" then I will get the same error that you get.

Same problem with my project too,I dont think it's my problem since sample code from Apple also gives the same error.

Accepted Answer

Getting the same issue also with iPhone 6+ on the latest iOS9 beta and on one of the samples I downloaded.


If I switch back to using "Automatically Enabled" for the GPU Frame Capture option on our own app then it works but the GPU captures in XCode don't work. If set to "Metal" then I will get the same error that you get.

Hi,do you fix the problem that GPU Capture doesn't work in xcode 7 beta?

Unfortunately, nope 😟. The method that stops it from crashing seems to make the captures not work for me

Hi,I reboot both my ipad and computer,problem gone!,I don't know why but GPU Capture works fine now.

Hi, thank you, I just did the same and It worked. Last beta of both iOS and XCode

This has worked for me too thanks. I had restarted my Mac before including closing XCode etc but it appears to be that if you don't untick the "Reopen applications" tickbox then a full restart is not done (or threre is some process holding on to files?)

Is anyone else still having this issue?


I've rebooted my Macbook Pro and iPhone 6 Plus a bunch of times over the last couple of weeks but still get the following failing assertion if GPU Frame Capture is set to either "Metal" or "Automatically Enabled":


2015-08-04 20:38:15.606 MetalTest[503:239923] Metal GPU Frame Capture Enabled

2015-08-04 20:38:15.607 MetalTest[503:239923] failed assertion _interposeHandle != NULL at /BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-54.18/Framework/MTLDevice.mm:112 MTLInitializeInterpose


I'm currently using OSX BETA 4 and iOS 9 BETA 4. This has been happening since BETA 2 I believe! This happens when using the GameTemplate without any changes in Swift and Metal!


Any comments welcome,

Cheers,

Hegski

The same thing is happening to me, with both an iPhone 6+ and the new A8 iPod touch on iOS 9 beta 4. I haven't tried on any other device.

Is this with the latest Xcode 7 Beta? Did you upgrade Xcode before iOS or after? With the betas you need to update Xcode before iOS otherwise you can get a mismatched developer disk image on the device.


Cheers,

Seth.

OK, found my mistake, I thought the OSX updater was bringing in Xcode Beta updates as part of the OSX Beta updates, which it's clearly not doing.


Updating to the latest XCode BETA fixed the issue. I also had to reboot, but no big deal.


Thank you for your help Seth.


Cheers,
Joe

No problem. Thanks for the confirmation.


Cheers,

Seth.

MTLInitializeInterpose
 
 
Q