Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

failed assertion with 'Texture Descriptor Validation' on macOS 13.0 #1080

Closed
floriangbh opened this issue Nov 5, 2022 · 9 comments
Closed

Comments

@floriangbh
Copy link

Describe the bug

Hello,

Since the MacOS Ventura update we are not unable to run any stream due to a Metal assertion :

-[MTLDebugDevice newTextureWithDescriptor:iosurface:plane:]:2403: failed assertion `Texture Descriptor Validation
IOSurface textures must use MTLStorageModeShared

I find this on the developers forums : https://developer.apple.com/forums/thread/710843

It look like a bug with MacOS Ventura 13.0, but if someone have any solution I'm taking !

To Reproduce

  1. Run the "Exemple iOS+SwiftUI" exemple with "My Mac (designed for iPad)"
  2. Accept permissions
  3. Restart and see the assertion

Expected behavior

Working on Silicon device with (Designed for iPad)

Version

  • MacOS 13.0
  • HaishinKit.swift 1.0

Smartphone info.

No response

Additional context

No response

Screenshots

Screenshot 2022-11-05 at 10 51 45

Relevant log output

No response

@floriangbh floriangbh changed the title failed assertion `Texture Descriptor Validation failed assertion with 'Texture Descriptor Validation' Nov 5, 2022
@shogo4405
Copy link
Owner

I had same issue with macOS 13.0. This workaround works for me.
Edit Scheme -> Run -> Diagnostics -> Metal API Validation -> Turn it off.
スクリーンショット 2022-12-03 16 21 41

@floriangbh
Copy link
Author

Hello @shogo4405,

Thanks for the workaround in debug mode, hope Apple will fix it for production...

@shogo4405 shogo4405 changed the title failed assertion with 'Texture Descriptor Validation' failed assertion with 'Texture Descriptor Validation' on macOS 13.0 Dec 18, 2022
@shogo4405
Copy link
Owner

I updated macOS 13.1. I had an another issue. AVCaptureSession#startRunning caused crash.
スクリーンショット 2022-12-18 15 44 15

Apple's exsample code had an same issue.
https://developer.apple.com/documentation/avfoundation/capture_setup/avmulticampip_capturing_from_multiple_cameras

@floriangbh
Copy link
Author

I've added the sample code exemple in the Feedback Assistant

@shogo4405
Copy link
Owner

I updated macOS 13.2.

But this issue not fixed yet. 😭

@shogo4405
Copy link
Owner

Also Apple's sample code crash on macOS 13.2.
スクリーンショット 2023-01-28 15 10 39

@shogo4405
Copy link
Owner

I turn it off Metal API Validation.
スクリーンショット 2023-01-28 15 15 52

@floriangbh
Copy link
Author

Since the beginning of November I have had no response on the Apple feedback assistant. API on MacOS seems completely abandoned...

@shogo4405
Copy link
Owner

Also macOS Ventura 13.3.1. Would Apple be willing to fix it... I will move to GitHub Discussions.

Repository owner locked and limited conversation to collaborators Apr 15, 2023
@shogo4405 shogo4405 converted this issue into discussion #1181 Apr 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants