Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported session configuration #1

Open
SpencerIO opened this issue Jun 7, 2017 · 7 comments
Open

Unsupported session configuration #1

SpencerIO opened this issue Jun 7, 2017 · 7 comments

Comments

@SpencerIO
Copy link

When trying to run the app for the first time on my iPhone 6 plus with ios 11 beta 1, I got the following message...

We're sorry!
Unsupported session configuration.
The provided session configuration is
not supported on the device.
This is an unrecoverable error that
requires to quit the application.

@digitallysavvy
Copy link

@spencer are you using the default ARWorldTrackingSessionConfiguration or are you using ARSessionConfiguration?

The ARkit documentation it states the ARWorldTrackingSessionConfiguration is only supported by certain devices (which mat not include the 6s). Conversely the documentation lists ARSessionConfiguration as being supported by all devices that support ARkit.

@SpencerIO
Copy link
Author

@digitallysavvy Thank you for your quick response.

I tried to change...
var sessionConfig: ARSessionConfiguration = ARWorldTrackingSessionConfiguration()
...to...
var sessionConfig: ARSessionConfiguration = ARSessionConfiguration()

...and I still get that same popup when the app is running normally.

Also, when I'm in debug mode I get this log...
2017-06-07 19:11:17.198966-0700 ARKitExample[1094:69277] [Session] Unable to run the session, configuration is not supported on this device: <ARSessionConfiguration: 0x1c426ba40 worldAlignment=Gravity lightEstimation=Enabled>
validateAttachmentOnDevice:317: failed assertion `MTLRenderPassDescriptor MTLStoreActionMultisampleResolve store action for the depth attachment is not supported by device'

With the original 'ARWorldTrackingSessionConfiguration' I get this debug log...
2017-06-07 19:09:17.116754-0700 ARKitExample[1079:67752] [Session] Unable to run the session, configuration is not supported on this device: <ARWorldTrackingSessionConfiguration: 0x1c42800a0 planeDetection=None worldAlignment=Gravity lightEstimation=Enabled>
validateAttachmentOnDevice:317: failed assertion `MTLRenderPassDescriptor MTLStoreActionMultisampleResolve store action for the depth attachment is not supported by device'

@digitallysavvy
Copy link

digitallysavvy commented Jun 8, 2017

@SpencerIO have you tried checking the device's support using:

        if ARSessionConfiguration.isSupported {
            // Run the view's session
            sceneView.session.run(configuration)
        } else {
            print("config not supported")
        }

@SpencerIO
Copy link
Author

@digitallysavvy look like I get 'config not supported'

@WorkerAmo
Copy link

https://developer.apple.com/documentation/arkit/building_a_basic_ar_experience
On iOS devices with an A9 processor or later, the
ARWorldTrackingSessionConfiguration
subclass provides high-precision motion tracking and enables features to help you place virtual content in relation to real-world surfaces.
On other devices supported by ARKit, the
ARSessionConfiguration
base class provides basic motion tracking that permits slightly less immersive AR experiences.

@digitallysavvy
Copy link

@SpencerIO, looking at your original post I misread your phone model, I thought it said 6s but rather you are trying to run it on a 6+

The iPhone 6 (and 6 plus) are not supported by ARkit, only devices with A9 which is 6s or newer (this site provides a nice list: https://www.cnet.com/news/which-iphone-ipad-compatible-arkit-augmented-ios-11).

@SpencerIO
Copy link
Author

@WorkerAmo @digitallysavvy Thank you for that update. I will go bug my co-workers to see if they have one of those devices for me to play with.

iPhone 6S and 6S Plus
iPhone 7 and 7 Plus
iPhone SE
iPad Pro (9.7, 10.5 or 12.9)
iPad (2017)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants