Open mjgaylord opened 9 years ago
that will go away if you do this: run the app on your iphone, disconnect your iphone from you mac, close the app and rerun, this is a problem for some reason that occurs when the debugger is connected, otherwsise, you won't have a problem.
It is works,but the video is upside down.
On iOS9.1 beta 4, after recording a clip, the preview screen crashes with the following error:
``/BuildRoot/Library/Caches/com.apple.xbs/Sources/Metal/Metal-55.1.1/ToolsLayers/Debug/MTLDebugComputeCommandEncoder.mm:654: failed assertion
Function writes texture (outputTexture.coerce[0]) whos usage (0x05) doesn't specify MTLTextureUsageShaderWrite (0x02)' (lldb) bt__abort + 180 frame #1: 0x000000019aebeb84 libsystem_c.dylib
abort + 152 frame #2: 0x000000019ae93b28 libsystem_c.dylib__assert_rtn + 284 frame #3: 0x000000018875d274 Metal
MTLReportFailure + 480 frame #4: 0x0000000192397288 MetalToolsvalidatePipelineArguments(id<MTLDevice>, NSArray*, MTLDebugFunctionArgument*, unsigned long, MTLDebugFunctionArgument, unsigned long, MTLDebugFunctionArgument, unsigned long, MTLDebugFunctionArgument, unsigned long, unsigned long) + 2540 frame #5: 0x000000019239624c MetalTools
-[MTLDebugComputeCommandEncoder dispatchThreadgroups:threadsPerThreadgroup:] + 756 frame #6: 0x00000001860ea7f8 CoreImageCIMetalRenderToTexture + 752 frame #7: 0x00000001861316c0 CoreImage
CI::MetalContext::quad(void const_, dispatch_groups, void const_) + 240 frame #8: 0x0000000186131eb8 CoreImageCI::MetalContext::render_apply_node(CI::Node const_, bool, void const_, void const_) + 240 frame #9: 0x0000000186131c6c CoreImage
CI::MetalContext::recursive_render(CI::Node, bool) + 244 frame #10: 0x000000018606f5d4 CoreImageCI::image_render_to_texture(CI::Context_, CI::Image_, CGRect, CGColorSpace_, CI::Texture, bool, void const_) + 376 frame #11: 0x0000000186036644 CoreImage
-[CIContext render:toMTLTexture:commandBuffer:bounds:colorSpace:] + 352 frame #12: 0x000000010008d420 SCRecorderExamples-[SCImageView drawInMTKView:](self=0x000000012ef4af00, _cmd="drawInMTKView:", view=0x000000012d7d4350) + 480 at SCImageView.m:329 frame #13: 0x000000018878e67c MetalKit
-[MTKView draw] + 208 frame #14: 0x000000018a7d34d8 QuartzCoreCA::Layer::display() + 140 frame #15: 0x000000018a7b5944 QuartzCore
CA::Layer::display_if_needed(CA::Transaction) + 228 frame #16: 0x000000018a7b5630 QuartzCoreCA::Layer::layout_and_display_if_needed(CA::Transaction_) + 44 frame #17: 0x000000018a7b4cc0 QuartzCore
CA::Context::committransaction(CA::Transaction) + 252 frame #18: 0x000000018a7b4a08 QuartzCoreCA::Transaction::commit() + 512 frame #19: 0x000000018a80779c QuartzCore
CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 592 frame #20: 0x0000000186cc62f8 IOKitIODispatchCalloutFromCFMessage + 372 frame #21: 0x00000001859ce840 CoreFoundation
CFMachPortPerform + 180 frame #22: 0x00000001859e4c7c CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 56 frame #23: 0x00000001859e43b4 CoreFoundation__CFRunLoopDoSource1 + 436 frame #24: 0x00000001859e210c CoreFoundation
__CFRunLoopRun + 1800 frame #25: 0x0000000185910ca0 CoreFoundationCFRunLoopRunSpecific + 384 frame #26: 0x0000000190b4c088 GraphicsServices
GSEventRunModal + 180 frame #27: 0x000000018b028ffc UIKitUIApplicationMain + 204 frame #28: 0x0000000100067010 SCRecorderExamples
main(argc=1, argv=0x000000016fdaf9f0) + 124 at main.m:16 frame #29: 0x000000019ae2e8b8 libdyld.dylib`start + 4```Screenshot attached:
Let me know if you need any more info.