Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lionel-SF opened this issue Apr 19, 2016 · 4 comments

Comments

@lionel-SF
Copy link

-[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
Copy link
Member

s1g53gv commented Apr 19, 2016

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
Copy link
Author

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
�[fg214,57,30;2016-04-19 15:41:56.430 SMTabbedSplitViewController[22119:2373410] -[TVThumbnailScrollView setSharedData:]: unrecognized selector sent to instance 0x7f83e9cbbd40
�[fg;�[fg214,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:comp�[fg;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
Copy link
Author

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

@lionel-SF
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants