i get a cvpixelbuffer from arframe,and then use AVAssetWriter to turn buffer to a video which is .mov type.
But on iphone12mini nad iphone12promax ,finishWritingWithCompletionHandler can't callback and have an error like this:
NSLocalizedDescription = "Cannot Encode";
NSLocalizedFailureReason = "The encoder required for this media is busy.";
NSLocalizedRecoverySuggestion = "Stop any other actions that encode media and try again.";
NSUnderlyingError = "Error Domain=NSOSStatusErrorDomain Code=-12915 \"The operation couldn\U2019t be completed. (OSStatus error -12915.)\"";
Post
Replies
Boosts
Views
Activity
xcode15.1,mac os 14.2.when i open any project or create new project,xcode crash。
How to solve this issue?
Translated Report (Full Report Below)
Process: Xcode [2159]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 15.1 (22502)
Build Info: IDEApplication-22502000000000000~61 (15C65)
App Item ID: 497799835
App External ID: 861831744
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 502
Date/Time: 2023-12-16 19:45:31.1856 +0800
OS Version: macOS 14.2 (23C64)
Report Version: 12
Bridge OS Version: 8.2 (21P2057)
Anonymous UUID: 58D93592-7DCC-4C13-7584-552F5EC998D7
Time Awake Since Boot: 540 seconds
System Integrity Protection: enabled
Crashed Thread: 10
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Xcode [2159]
Application Specific Information:
abort() called
Application Specific Signatures:
NSInvalidArgumentException
Thread 10 Crashed:
0 libsystem_kernel.dylib 0x7ff80541d7a2 __pthread_kill + 10
1 libsystem_pthread.dylib 0x7ff805455f30 pthread_kill + 262
2 libsystem_c.dylib 0x7ff805374a49 abort + 126
3 IDEKit 0x1108d1bbb +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1178
4 IDEKit 0x1108d2f75 -[IDEAssertionHandler handleUncaughtException:] + 749
5 IDEKit 0x1108d32b2 IDEHandleUncaughtException + 94
6 CoreFoundation 0x7ff80563e344 __handleUncaughtException + 947
7 libobjc.A.dylib 0x7ff80509f468 objc_terminate() + 90
8 libc++abi.dylib 0x7ff80540e0cb std::__terminate(void ()()) + 6
9 libc++abi.dylib 0x7ff805410a97 __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception) + 27
10 libc++abi.dylib 0x7ff805410a5e __cxa_throw + 116
11 libobjc.A.dylib 0x7ff805097420 objc_exception_throw + 303
12 Foundation 0x7ff80655077a -[NSConcreteTask terminationReason] + 174
13 XCBuild 0x152276ff2 protocol witness for ConnectionTransport.state.getter in conformance OutOfProcessConnection + 50
14 XCBuild 0x152273d88 closure #1 in XCBBuildServiceConnection.send(:) + 296
15 XCBuild 0x1522736f3 closure #2 in XCBBuildServiceConnection.close() + 163
16 XCBuild 0x152277781 partial apply for closure #2 in XCBBuildServiceConnection.close() + 1
17 XCBuild 0x152217371 specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1
18 XCBuild 0x152277851 partial apply for specialized thunk for @escaping @callee_guaranteed @Sendable @async () -> (@out A) + 1