-
Notifications
You must be signed in to change notification settings - Fork 10
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
thread_policy_set(1) returned 46 #38
Comments
This is an internal OS log message that Apple have left on. Setting this environment variable - https://stackoverflow.com/a/39461256/701926 - will stop it from filling your XCode logs. AFAICS it is triggered by some thread querying in our deadlock detector, but it's not obvious which syscall is triggering it to report to Apple. |
@richardgroves thanks for getting back to me! Unfortunately none of the suggestions on that stack overflow worked for me, FWIW both OS_ACTIVITY_MODE and OS_ACTIVITY_DT_MODE disabled some logs as expected but specifically the Is it possible that this needs to be set in ux-cams project and shipped with that setting? I hear you on the non-obvious sys call, but IMHO hiding the log doesn't feel like the appropriate fix for this. At least not for the users of the package. Also I understand you all might be blocked on this by Apple things. EDIT: For more understanding, I've also opened up a question on Apple developer forum here |
Hi @Cavallando Sorry to hear the suggested solutions isn't working for you. |
No worries at all @richardgroves, appreciate the quick responses! I'm currently on an M1 Max, macOS 12.1, running Xcode 13.2.1. When running under our debug scheme, I am only seeing the thread policy logs on Simulator and not on Physical device |
I'm still following along with some tips from apple developer forum post, this doesnt feel like the proper fix still but to hide these logs you can put the following in your AppDelegate.m to hide
I will post back here with more updates once I have them! |
I can't even imagine the amount of time you saved me by opening this issue!! Thank you, great find! Also for the record, I am running on M1 pro, macOS 12.4, Xcode 13.4.1 |
Hi there,
This library was super easy to setup and use so thank you!
Upon adding this library to our RN App we started seeing our Xcode logs flooded with:
These logs start as soon as the app starts and do not end, even with no state updates on RN side.
I confirmed that removing
react-native-ux-cam
made the logs stop. Reporting this mainly because it makes debugging other things in Xcode like our own native modules and other libraries difficult.Any help is much appreciated! Thanks!
The text was updated successfully, but these errors were encountered: