All init of CIFilter causes a crash for some devices iPhone 11 & iPhone XR. iOS version 13.3.1, 13.4.1.
I tried to import :
import CoreImageimport CoreImage.CIFilterimport CoreImage.CIFilterBuiltins
But Its not working !I use xCode 11.4.1 & xCode 11.5
Crash log:
Crashed: com.apple.main-thread0 CocoaDebug 0x1023a0adc perform_rebinding_with_section + 3321 CocoaDebug 0x1023a087c rebind_symbols_for_image + 4162 libdyld.dylib 0x1999c3f4c invocation function for block in dyld3::AllImages::runImageCallbacks(dyld3::Array<dyld3::LoadedImage> const&) + 2443 libdyld.dylib 0x1999c3768 dyld3::AllImages::runImageCallbacks(dyld3::Array<dyld3::LoadedImage> const&) + 1604 libdyld.dylib 0x1999c8dd8 dyld3::AllImages::loadImage(Diagnostics&, unsigned int, dyld3::closure::DlopenClosure const*, bool, bool, bool, bool) + 5805 libdyld.dylib 0x1999c89ec dyld3::AllImages::dlopen(Diagnostics&, char const*, bool, bool, bool, bool, bool, void const*) + 8686 libdyld.dylib 0x1999ca434 dyld3::dlopen_internal(char const*, int, void*) + 3647 libdyld.dylib 0x1999bd6c0 dlopen + 1168 CoreFoundation 0x199bcf5c8 _CFBundleDlfcnLoadBundle + 1569 CoreFoundation 0x199af1eac _CFBundleLoadExecutableAndReturnError + 37210 Foundation 0x199ec27a8 -[NSBundle loadAndReturnError:] + 31611 CoreImage 0x19b479bcc invocation function for block in register_more_builtins(void (NSString*) block_pointer) + 80412 libdispatch.dylib 0x19986833c _dispatch_client_callout + 2013 libdispatch.dylib 0x199869a68 _dispatch_once_callout + 3214 CoreImage 0x19b476318 register_more_builtins(void (NSString*) block_pointer) + 30415 CoreImage 0x19b476b40 classNameIsSystemFilter(NSString*) + 11216 CoreImage 0x19b476dbc +[CIFilter(CIFilterRegistryPrivate) filterWithName:setDefaults:] + 39617 MYApp 0x100656598 QRCodeViewController.generateQRCode(from:) + 4370490776 (<compiler-generated>:4370490776)18 MYApp 0x1006563a4 QRCodeViewController.viewDidLoad() + 28 (QRCodeViewController.swift:28)19 MYApp 0x10065642c @objc QRCodeViewController.viewDidLoad() + 4370490412 (<compiler-generated>:4370490412)20 UIKitCore 0x19d6a236c -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 10421 UIKitCore 0x19d6a6f20 -[UIViewController loadViewIfRequired] + 95222 UIKitCore 0x19d6a730c -[UIViewController view] + 3223 UIKitCore 0x19d602fa4 -[UINavigationController _startCustomTransition:] + 114824 UIKitCore 0x19d617478 -[UINavigationController _startDeferredTransitionIfNeeded:] + 69225 UIKitCore 0x19d618818 -[UINavigationController __viewWillLayoutSubviews] + 17626 UIKitCore 0x19d5fb4fc -[UILayoutContainerView layoutSubviews] + 22827 UIKitCore 0x19e1de6a0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 216828 QuartzCore 0x1a08314a0 -[CALayer layoutSublayers] + 29229 QuartzCore 0x1a08318e0 CA::Layer::layout_if_needed(CA::Transaction*) + 47230 QuartzCore 0x1a0843dc4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 14431 QuartzCore 0x1a0788884 CA::Context::commit_transaction(CA::Transaction*, double) + 30432 QuartzCore 0x1a07b33d0 CA::Transaction::commit() + 65633 QuartzCore 0x1a07b3fc8 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 9634 CoreFoundation 0x199b42c54 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 3635 CoreFoundation 0x199b3d8e4 __CFRunLoopDoObservers + 42036 CoreFoundation 0x199b3dd84 __CFRunLoopRun + 102037 CoreFoundation 0x199b3d660 CFRunLoopRunSpecific + 48038 GraphicsServices 0x1a3f4e604 GSEventRunModal + 16439 UIKitCore 0x19dd1215c UIApplicationMain + 194440 MYApp 0x100518e54 main + 4369190484 (<compiler-generated>:4369190484)41 libdyld.dylib 0x1999b91ec start + 4
With the simulator it works well.
Someone would have any idea ?Thanks