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

When added 'Statistics' or try to stop recording without permission cause app crashed #10

Open
ZibYang opened this issue Nov 6, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ZibYang
Copy link

ZibYang commented Nov 6, 2023

Device: iPhone 15 Pro Max
iOS version: 17.2

Xcode version: 15.1

The first error report:
Error message:
-[MTLDebugRenderCommandEncoder validateCommonDrawErrors:]:5775: failed assertion `Draw Errors Validation
Vertex Function(vsSdfFont): the offset into the buffer viewConstants that is bound at buffer index 4 must be a multiple of 256 but was set to 61840.

How to reproduce:
After all set, add 'Statistics' on the 'ARView debug Option', then the iOS app crashed

The second error report:
Error message:
-[RPScreenRecorder stopCaptureWithHandler:]:555 failed to stop in app capture because we're not recording

How to reproduce:
When I tap record on the iPhone, it will ask for my permission, even if I do not grant it, it still works fine. When I pressed the button to try to stop recording, the iOS app crashed.

@elkraneo
Copy link
Contributor

elkraneo commented Nov 6, 2023

I will install the beta and give it a try. I previously submitted feedback regarding the initial releases of iOS17, where the statistics API was not functioning correctly; this could be related.

https://mastodon.social/@elkraneo/110837893199121457

@elkraneo elkraneo added the bug Something isn't working label Nov 6, 2023
@elkraneo elkraneo self-assigned this Nov 6, 2023
@elkraneo
Copy link
Contributor

The feature/visionOS branch has reached a point where I am able to check the first bug. I can duplicate it, but it seems to only happen if the "showStatistics" option is the first one turned on. So I isolated the case and found that this problem can be traced to some Metal encoder buffer error setting, so it's a problem with how Apple is using fonts to display the debugger. I have reported this and will keep an eye on the evolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants