ARVideoKit icon indicating copy to clipboard operation
ARVideoKit copied to clipboard

Must start a session before appending pixel buffers

Open UjjwalNepal opened this issue 11 months ago • 0 comments

Stacktrace:

Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x9cb4 __exceptionPreprocess 1 libobjc.A.dylib 0x183d0 objc_exception_throw 2 AVFCore 0xb5024 -[AVFigAssetWriterTrack addPixelBuffer:atPresentationTime:error:] 3 AVFCore 0xb1554 -[AVAssetWriterInputWritingHelper appendPixelBuffer:withPresentationTime:] 4 AVFCore 0xaf1c4 -[AVAssetWriterInput _appendPixelBuffer:withPresentationTime:] 5 AVFCore 0xb415c -[AVAssetWriterInputPixelBufferAdaptor appendPixelBuffer:withPresentationTime:] 6 ARVideoKit 0x20f68 (Missing UUID 5d0b7b7760f9336f9dff47e6fd7e0345) 7 ARVideoKit 0x1a194 (Missing UUID 5d0b7b7760f9336f9dff47e6fd7e0345) 8 ARVideoKit 0x1b1d8 (Missing UUID 5d0b7b7760f9336f9dff47e6fd7e0345) 9 ARVideoKit 0x14a7c (Missing UUID 5d0b7b7760f9336f9dff47e6fd7e0345) 10 libdispatch.dylib 0x3eac _dispatch_client_callout 11 libdispatch.dylib 0x13428 _dispatch_lane_barrier_sync_invoke_and_complete 12 ARVideoKit 0x197c0 (Missing UUID 5d0b7b7760f9336f9dff47e6fd7e0345) 13 ARVideoKit 0x1a68c (Missing UUID 5d0b7b7760f9336f9dff47e6fd7e0345) 14 QuartzCore 0x2946c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) 15 QuartzCore 0x146f28 CA::Display::DisplayLink::dispatch_deferred_display_links(unsigned int) 16 UIKitCore 0x64e4b0 _UIUpdateSequenceRun 17 UIKitCore 0xcb2c8c schedulerStepScheduledMainSection 18 UIKitCore 0xcb21e8 runloopSourceCallback 19 CoreFoundation 0xd3128 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION 20 CoreFoundation 0xdf7b4 __CFRunLoopDoSource0 21 CoreFoundation 0x645e8 __CFRunLoopDoSources0 22 CoreFoundation 0x7a0d4 __CFRunLoopRun 23 CoreFoundation 0x7f3ec CFRunLoopRunSpecific 24 GraphicsServices 0x135c GSEventRunModal 25 UIKitCore 0x39d6e8 -[UIApplication _run] 26 UIKitCore 0x39d34c UIApplicationMain 27 Bloopar-Debug 0x7f94 main + 19 (AppDelegate.swift:19) 28 ??? 0x1b0ff6dec (Missing)

ARVideoKit version: 1.51 Xcode version: 14.3.1

Ofc the behavior is not obvious, this occurs when adding more complex objects (also inconsistent).

The library is called as documented and works well without memory leaks.

UjjwalNepal avatar Jul 22 '23 04:07 UjjwalNepal