Posts

Post not yet marked as solved
6 Replies
Hello, it happens randomly to me too after I export a video composition: * thread #7     frame #0: 0x000000020ce9ab48 libsystem_kernel.dylib`__psynch_mutexwait + 8     frame #1: 0x000000021d2fd150 libsystem_pthread.dylib`_pthread_mutex_firstfit_lock_wait + 84     frame #2: 0x000000021d304310 libsystem_pthread.dylib`_pthread_mutex_firstfit_lock_slow + 248   * frame #3: 0x00000001d195856c QuartzCore`CA::Context::commit_transaction(CA::Transaction*, double, double*) + 388     frame #4: 0x00000001d198d5ec QuartzCore`CA::Transaction::commit() + 652     frame #5: 0x00000001d19ddab4 QuartzCore`CA::Transaction::release_thread(void*) + 228     frame #6: 0x000000021d2fcbd8 libsystem_pthread.dylib`_pthread_tsd_cleanup + 620     frame #7: 0x000000021d2ff674 libsystem_pthread.dylib`_pthread_exit + 84     frame #8: 0x000000021d2fc0e0 libsystem_pthread.dylib`_pthread_wqthread_exit + 76     frame #9: 0x000000021d2fbe80 libsystem_pthread.dylib`_pthread_wqthread + 424 main thread is  thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP   * frame #0: 0x000000020ce99b48 libsystem_kernel.dylib`mach_msg2_trap + 8     frame #1: 0x000000020ceac008 libsystem_kernel.dylib`mach_msg2_internal + 80     frame #2: 0x000000020ceac248 libsystem_kernel.dylib`mach_msg_overwrite + 388     frame #3: 0x000000020ce9a08c libsystem_kernel.dylib`mach_msg + 24     frame #4: 0x00000001d19b1a14 QuartzCore`CA::Render::Message::send_message() + 84     frame #5: 0x00000001d1b8e090 QuartzCore`CA::Render::Encoder::send_message(unsigned int, unsigned int, unsigned int*, unsigned long) + 940     frame #6: 0x00000001d195a684 QuartzCore`CA::Context::commit_transaction(CA::Transaction*, double, double*) + 8860     frame #7: 0x00000001d198d5ec QuartzCore`CA::Transaction::commit() + 652     frame #8: 0x00000001d19768cc QuartzCore`CA::Transaction::flush_as_runloop_observer(bool) + 88     frame #9: 0x00000001d295db44 UIKitCore`_UIApplicationFlushCATransaction + 52     frame #10: 0x00000001d2aab740 UIKitCore`_UIUpdateSequenceRun + 84     frame #11: 0x00000001d30f2fd0 UIKitCore`schedulerStepScheduledMainSection + 172     frame #12: 0x00000001d30f219c UIKitCore`runloopSourceCallback + 92     frame #13: 0x00000001d0371f54 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28     frame #14: 0x00000001d037e32c CoreFoundation`__CFRunLoopDoSource0 + 176     frame #15: 0x00000001d0302210 CoreFoundation`__CFRunLoopDoSources0 + 244     frame #16: 0x00000001d0317ba8 CoreFoundation`__CFRunLoopRun + 836     frame #17: 0x00000001d031ced4 CoreFoundation`CFRunLoopRunSpecific + 612     frame #18: 0x000000020961a368 GraphicsServices`GSEventRunModal + 164     frame #19: 0x00000001d27fb3d0 UIKitCore`-[UIApplication _run] + 888     frame #20: 0x00000001d27fb034 UIKitCore`UIApplicationMain + 340     frame #21: 0x00000001d8deb308 libswiftUIKit.dylib`UIKit.UIApplicationMain(Swift.Int32, Swift.Optional<Swift.UnsafeMutablePointer<Swift.UnsafeMutablePointer<Swift.Int8>>>, Swift.Optional<Swift.String>, Swift.Optional<Swift.String>) -> Swift.Int32 + 104     frame #22: 0x00000001023da5d0 StickerTune`static UIApplicationDelegate.main() at <compiler-generated>:0     frame #23: 0x00000001023da558 StickerTune`static AppDelegate.$main(self=StickerTune.AppDelegate) at AppDelegate.swift:13:1     frame #24: 0x00000001023da654 StickerTune`main at <compiler-generated>:0     frame #25: 0x00000001ee984960 dyld`start + 2528 Does anybody has a workaround for this? It's extremely frustrating as the whole UI locks up! :(
Post marked as solved
9 Replies
Check out this link: https://developer.apple.com/documentation/quicklookthumbnailing/providing_thumbnails_of_your_custom_file_types?language=objc"To add a Thumbnail Extension to your app, select your project in Xcode’s Project navigator and make sure the General pane is visible. Select the + button and add a new Thumbnail extension to your app. Make sure to allow Xcode to create and activate a new build scheme for the extension."
Post marked as solved
9 Replies
I finally managed to get the extension working under iOS12! I did the following:1 - recreate from scratch the thumbnail extensionwith the Xcode 11.2 extension wizard2 - change its deployment target to iOS 123 - change the extension plist to match the document type supported and the extension class4 - link the extension with QuickLook framework as required and QuickLookThumbnailing as optionalYEAH!Libe
Post marked as solved
9 Replies
Hello,I do not use any of the deprecated functions. What I am using is an implementation of a QLThumbnailProviderAPI_AVAILABLE(ios(11.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos) __attribute__((visibility("default"))) @interface QLThumbnailProvider : NSObject /** Subclass this method to provide a QLThumbnailReply that either contains a drawing block or an image file URL. @param request An object which contains information about the thumbnail that should be provided. It contains the URL of the file to provide a thumbnail for. @param handler Call the completion handler with a QLThumbnailReply if you can provide a thumbnail, or with an NSError if you cannot. If an error is passed or reply is nil, no thumbnail will be drawn. The handler can be called asynchronously after the method has returned. */ - (void)provideThumbnailForFileRequest:(QLFileThumbnailRequest *)request completionHandler:(void (^)(QLThumbnailReply * _Nullable reply, NSError * _Nullable error))handler NS_SWIFT_NAME(provideThumbnail(for:_:)); @enddefined in QuickLookThumbnailing/QThumbnailProvider.h framework under iOS13. The same class is defined in QuickLook framework under iOS12.I tried optional linking but does not work: extension is not called.I also tried importing the QuickLook module and then the QuickLookThumbnailing one by using the @import statement in code with the Automatic Link Framework option on but the extension is still never called under iOS12...I deeply regret having heavily invested into UIDocumentBrowserViewController...it's super broken on basic capabilities like this one... 😟Libero
Post marked as solved
9 Replies
Hello,thanks for your quick answer, I understand your point. From my understanding, all the thumbnail functionalities have been moved into a separated framework in iOS13 (from QuickLook to QuickLookThumbnailing) to be able to share it on macOS but I did not get that this removed support for iOS12...Does anybody know how to support thumbnailing on both iOS12 and iOS13? I tried to link QuickLook as required and QuickLookThumbnailing as optional but I still cannot get the extension called under iOS12.Thanks in advance for your help,Libero