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

Xcode 13/iOS 15 Crash when using CTPanoramaView #61

Open
brian-telintelo-kr opened this issue Oct 19, 2021 · 2 comments
Open

Xcode 13/iOS 15 Crash when using CTPanoramaView #61

brian-telintelo-kr opened this issue Oct 19, 2021 · 2 comments

Comments

@brian-telintelo-kr
Copy link

[MTLTextureDescriptorInternal validateWithDevice:]:1325: failed assertion `Texture Descriptor Validation

MTLTextureDescriptor has width (8704) greater than the maximum allowed size of 8192.

This was using an image taken from an Android phone.

@brian-telintelo-kr brian-telintelo-kr changed the title Xcode 13/iOS Crash when using CTPanoramaView Xcode 13/iOS 15 Crash when using CTPanoramaView Oct 19, 2021
@claytonrothschild
Copy link

Any luck on this? I cant figure out where in the library is causing it.

@Neogene
Copy link

Neogene commented Oct 24, 2023

Maximum texture is related to device: try this code to check.

`

static var max1DTextureWidth: Int = {
var maxLength = 8192;

// It's recommended to use your physical device
let device = MTLCreateSystemDefaultDevice()!

if device.supportsFamily(.apple1) || device.supportsFamily(.apple2) {
    maxLength = 8192 // A7 and A8 chips
} else {
    maxLength = 16384 // A9 and later chips
}
return maxLength

}()

`

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