mobfarm / FastPdfKit

A Static Library to be embedded on iOS applications to display pdf documents derived from Fast PDF
http://fastpdfkit.com
Other
1.24k stars 325 forks source link

-[TVThumbnailScrollView setSharedData:]: unrecognized selector sent to instance #73

Open lionel-SF opened 8 years ago

lionel-SF commented 8 years ago

-[TVThumbnailScrollView setSharedData:]: unrecognized selector sent to instance。

i got crashed when open a pdf file after download. when i used the demo-FPKKioskApp in my project, and i got nothing when search for "setSharedData", even no sharedData property. May be i missed something, who can help ?

s1g53gv commented 8 years ago

Do you have the entire stack trace for the crash? The sharedData property exist and should accessible in TVThumbnailScrollView, unless the TVThumbnailScrollView class is way older than the rest of the framework. It can happen if you you upgraded the core of an older project where the scroll view in question was still external to the ReaderViewController (it is now embedded).

lionel-SF commented 8 years ago

here is the screen shot. 2016-04-19 15:41:45.327 SMTabbedSplitViewController[22119:2373410] Presenting view controllers on detached view controllers is discouraged <SMTestDetailViewController: 0x7f83e9c1be90>. 2016-04-19 15:41:46.199 SMTabbedSplitViewController[22119:2373410] registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later. 2016-04-19 15:41:54.552 SMTabbedSplitViewController[22119:2373410] Presenting view controllers on detached view controllers is discouraged <SMPDFViewController: 0x7f83e9c24900>. 2016-04-19 15:41:56.420 SMTabbedSplitViewController[22119:2373410] ----->open pdf type file g214,57,30;2016-04-19 15:41:56.430 SMTabbedSplitViewController[22119:2373410] -[TVThumbnailScrollView setSharedData:]: unrecognized selector sent to instance 0x7f83e9cbbd40 g;g214,57,30;2016-04-19 15:41:56.438 SMTabbedSplitViewController[22119:2373410] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TVThumbnailScrollView setSharedData:]: unrecognized selector sent to instance 0x7f83e9cbbd40' * First throw call stack: ( 0 CoreFoundation 0x0000000108f4ed85 exceptionPreprocess + 165 1 libobjc.A.dylib 0x00000001081a8deb objc_exception_throw + 48 2 CoreFoundation 0x0000000108f57d3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x0000000108e9dcfa __forwarding + 970 4 CoreFoundation 0x0000000108e9d8a8 _CF_forwarding_prep_0 + 120 5 SMTabbedSplitViewController 0x0000000104da086c -[MFDocumentViewController thumbnailScrollView] + 268 6 SMTabbedSplitViewController 0x0000000104da14e4 -[MFDocumentViewController prepareToolbarItems] + 2174 7 SMTabbedSplitViewController 0x0000000104d9fcb1 -[MFDocumentViewController viewDidLoad] + 1743 8 SMTabbedSplitViewController 0x0000000104d190c5 -[ReaderViewController viewDidLoad] + 213 9 UIKit 0x0000000106955984 -[UIViewController loadViewIfRequired] + 1198 10 UIKit 0x0000000106955cd3 -[UIViewController view] + 27 11 UIKit 0x0000000107121024 -[_UIFullscreenPresentationController _setPresentedViewController:] + 87 12 UIKit 0x00000001069255ca -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 133 13 UIKit 0x00000001069685bb -[UIViewController _presentViewController:withAnimationController:completion:] + 4002 14 UIKit 0x000000010696b85c -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 489 15 UIKit 0x000000010696b36b -[UIViewController presentViewController:animated:compg;letion:] + 179 16 SMTabbedSplitViewController 0x0000000104d65d15 -[MenuViewController_Kiosk actionOpenPlainDocument:] + 645 17 SMTabbedSplitViewController 0x0000000104d38d04 -[BookItemView actionOpenPdf:] + 84 18 UIKit 0x00000001067bca8d -[UIApplication sendAction:to:from:forEvent:] + 92 19 UIKit 0x000000010692fe67 -[UIControl sendAction:to:forEvent:] + 67 20 UIKit 0x0000000106930143 -[UIControl _sendActionsForEvents:withEvent:] + 327 21 UIKit 0x000000010692f263 -[UIControl touchesEnded:withEvent:] + 601 22 UIKit 0x0000000106ca4c52 _UIGestureRecognizerUpdate + 10279 23 UIKit 0x000000010682f48e -[UIWindow _sendGesturesForEvent:] + 1137 24 UIKit 0x00000001068306c4 -[UIWindow sendEvent:] + 849 25 UIKit 0x00000001067dbdc6 -[UIApplication sendEvent:] + 263 26 UIKit 0x00000001067b5553 _UIApplicationHandleEventQueue + 6660 27 CoreFoundation 0x0000000108e74301 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 28 CoreFoundation 0x0000000108e6a22c CFRunLoopDoSources0 + 556 29 CoreFoundation 0x0000000108e696e3 CFRunLoopRun + 867 30 CoreFoundation 0x0000000108e690f8 CFRunLoopRunSpecific + 488 31 GraphicsServices 0x000000010a906ad2 GSEventRunModal + 161 32 UIKit 0x00000001067baf09 UIApplicationMain + 171 33 SMTabbedSplitViewController 0x0000000104d69d2f main + 111 34 libdyld.dylib 0x000000010cb3b92d start + 1 35 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) and the framework is latest one, also i am doing an new project. but still block with the bug -[TVThumbnailScrollView setSharedData:]: unrecognized selector sent to instance

lionel-SF commented 8 years ago

i have download an latest framework, still meet the same problem

lionel-SF commented 8 years ago

here i make it. just delete the reference of the TVThumbnailScrollView, the project run ok.