Post

Replies

Boosts

Views

Activity

Process replayd killed by jetsam reason highwater
Recently I add a broadcast upload extension to my host app to implement system wide screen cast.I found the broadcast upload extension sometimes stopped for unknown reason.If I debug the broadcast upload extension process in Xcode, it stopped without stopping at a breakpoint(If the extension is killed for 50M bytes memory limit, it will stopped at a breakpoint, and Xcode will point out that it's killed for 50M bytes memory limit).For more imformation, I read the console log line by line.Finally, I found a significant line: osanalyticshelper Process replayd [26715] killed by jetsam reason highwater It looks like the ReplayKit serving process 'replayd' is killed by jetsam, and the reason is 'highwater'.So I searched the internet for more imformation.And I found a post: https://www.jianshu.com/p/30f24bb91222 After reading that,I checked the JetsamEvent report in device, and found that when the 'replayd' process was killed it occupied 100M bytes memory.Is there a 100M bytes memory limit for 'replayd' process?How can I avoid it to occupy more than 100M bytes memory? Further more, I found that this problem offen occured if the previous extension process is stopped via RPBroadcastSampleHandler's finishBroadcastWithError method.If I stop the extension via control center button, this rarely occured.
2
0
3k
Jul ’22
Xcode archive problem with ‘diy’ webrtc framework
Since we need webrtc's audio processing module functionality, we build an webrtc framework with the symbols of audio processing module all visible.When we use this webrtc framework to archive a package to apple app store, an error is reported: The app references non-public symbols in Payload/Doctor.app/Doctor: __ZN3rtc18webrtc_checks_impl8FatalLogEPKciS2_PKNS0_12CheckArgTypeEz With error code STATE_ERROR.VALIDATION_ERROR.11 for id b721c24c-9c42-4742-ba79-8eddb4fd9c5a This error seems to say that we use a non-public symbol 'webrtc_checks_impl::FatalLog'.We indeed use these symbol, this symbol corresponds to a function in 'checks' library, which is a commonly used function in webrtc inner modules.We nearly can't kick it out from webrtc framework. Besides, I'm curiously why the archive checking process refuse us for this error,why we can't use this function in our framework?Is this a bug in Xcode archiving process?
2
0
963
May ’22