PhotogrammetrySession cannot be created

Hi, I'm using the sample code to create a 3D object from photos using PhotogrammetrySession but it returns this error:

Error creating session: cantCreateSession("Native session create failed: CPGReturn(rawValue: -11)")

Sample code I've used is this and this.

Any idea?

Thanks in advance!

Answered by Graphics and Games Engineer in 677749022

Hi, that error code means that your hardware is not supported. This is typically caused by the GPU not supporting the neccesary features. What Mac are you running PhotogrammetrySession on?

Accepted Answer

Hi, that error code means that your hardware is not supported. This is typically caused by the GPU not supporting the neccesary features. What Mac are you running PhotogrammetrySession on?

Thanks for your reply!

I'm using a 2018 Mac mini, so definitely it's not supported.

In Apple's slides it says that 4GB of VRAM is required.

Actually I was able to run it on my Macbook Air (Intel), which should not be supported. A eGPU is connected (Radeon Pro 580 8 G😎 but it entirely used only the integrated Intel GPU. Still gave a USDZ result

I am running it on MacBookPro 2017 mid and getting the same error ... oh no 🙈   Model Name: MacBook Pro

  Model Identifier: MacBookPro14,3

  Processor Name: Quad-Core Intel Core i7

  Processor Speed: 2.8 GHz

  Number of Processors: 1

  Total Number of Cores: 4

  L2 Cache (per Core): 256 KB

  L3 Cache: 6 MB

  Hyper-Threading Technology: Enabled

  Memory: 16 GB

Adding a comment that I am facing the same issue, on a 2013 Intel Mac Pro (which has 64GB RAM and AMD FirePro D700 6GB ). Per the comment above, this seems to satisfy the requirements per the WWDC 2021 session 10076.

I've got a iMac late 2017 with enough RAM (16GB) and VRAM (8GB). Same error for me. Anybody knows a workaround?

Hello, same issue. When I use Photogrammetry, I receive this error:
Error creating session: cantCreateSession("Native session create failed: CPGReturn(rawValue: -11)") .

My specs are listed below. I think My macBook Pro should be supported. Please let me know if I missed something or if there is a fix for the issue.

Model Name: MacBook Pro (2019)
Model Identifier: MacBookPro15,2
Processor Name: Quad-Core Intel Core i7
Processor Speed: 2.8 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 8 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB

PhotogrammetrySession cannot be created
 
 
Q