heinrisch / faceid-to-stl

iOS app that uses the face scanning feature of the iPhone X to create a STL file that can be used for example for 3D printing
MIT License
84 stars 23 forks source link

Doesn't work on iPhone 11 #2

Open shaferica opened 4 years ago

shaferica commented 4 years ago

When I try to build this and run it on my iPhone 11, it crashes with this error:

2020-04-29 13:46:47.197677-0400 FaceID mask[86614:15953358] Metal GPU Frame Capture Enabled 2020-04-29 13:46:47.198151-0400 FaceID mask[86614:15953358] Metal API Validation Enabled 2020-04-29 13:46:47.465176-0400 FaceID mask[86614:15953358] [Session] ARSession (0x7fc557719620): Unable to run the session, configuration is not supported on this device: <ARFaceTrackingConfiguration: 0x6000030c01e0 worldAlignment=Gravity lightEstimation=Enabled frameSemantics=None videoFormat=<ARVideoFormat: 0x6000037f1ef0 imageResolution=(1280, 720) framesPerSecond=(60)>> 2020-04-29 13:46:47.466745-0400 FaceID mask[86614:15953358] [Session] Session (0x7fc557719620): did fail with error: Error Domain=com.apple.arkit.error Code=100 "Unsupported configuration." UserInfo={NSLocalizedDescription=Unsupported configuration., NSLocalizedFailureReason=The provided configuration is not supported on this device.}

digitalcleavage commented 4 years ago

I can get the app to work on the iPhone 11 but the STL file generated doesn't seem to actually have any content, even though the file is ~400K in size. What I'm seeing in the logs:

2020-05-24 15:18:19.957548-0400 FaceID mask[983:131849] Metal GPU Frame Capture Enabled 2020-05-24 15:18:19.957841-0400 FaceID mask[983:131849] Metal API Validation Enabled 2020-05-24 15:18:36.865891-0400 FaceID mask[983:132128] [Fetching] LPFileMetadataProviderSpecialization failed to retrieve a thumbnail from QuickLookThumbnailing (Error Domain=QLThumbnailErrorDomain Code=0 "Could not generate a thumbnail") 2020-05-24 15:18:36.866207-0400 FaceID mask[983:132128] [Fetching] LPFileMetadataProviderSpecialization failed to retrieve a thumbnail from QuickLookThumbnailing (Error Domain=QLThumbnailErrorDomain Code=0 "Could not generate a thumbnail") 2020-05-24 15:18:43.011064-0400 FaceID mask[983:131849] <CATransformLayer: 0x280512b80> - changing property backgroundColor in transform-only layer, will have no effect 2020-05-24 15:18:52.542738-0400 FaceID mask[983:132081] [ShareSheet] connection invalidated

It appears the file DOES work with the online viewer mentioned in the README but the built-in Preview viewer on Mac doesn't work nor does Pleasant3D.