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

Crash on loading demo #2

Closed
richardtop opened this issue Aug 5, 2015 · 0 comments
Closed

Crash on loading demo #2

richardtop opened this issue Aug 5, 2015 · 0 comments

Comments

@richardtop
Copy link
Contributor

Simulator 6, iOS 8.4, stack trace:

2015-08-05 15:15:38.254 ImagePickerDemo[82666:20339970] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 18446744073709551615 beyond bounds for empty array'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000108e43c65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010a9aebb7 objc_exception_throw + 45
    2   CoreFoundation                      0x0000000108d3a17e -[__NSArrayI objectAtIndex:] + 190
    3   Photos                              0x000000010b37fe71 -[PHFetchResult objectAtIndex:] + 57
    4   ImagePicker                         0x0000000108c279d4 _TFC11ImagePicker16ImageGalleryView11fetchPhotosfS0_FSiT_ + 1396
    5   ImagePicker                         0x0000000108c263b9 _TFC11ImagePicker16ImageGalleryViewcfMS0_FT5frameVSC6CGRect_S0_ + 1801
    6   ImagePicker                         0x0000000108c26470 _TToFC11ImagePicker16ImageGalleryViewcfMS0_FT5frameVSC6CGRect_S0_ + 32
    7   UIKit                               0x0000000109745393 -[UIView init] + 62
    8   ImagePicker                         0x0000000108c12e30 _TTOFCSo6UIViewcfMS_FT_S_ + 16
    9   ImagePicker                         0x0000000108c10967 _TFCSo6UIViewCfMS_FT_S_ + 71
    10  ImagePicker                         0x0000000108c3c9b0 _TFFC11ImagePicker21ImagePickerControllerg11galleryViewCS_16ImageGalleryViewU_FT_S1_ + 32
    11  ImagePicker                         0x0000000108c327f2 _TFC11ImagePicker21ImagePickerControllerg11galleryViewCS_16ImageGalleryView + 306
    12  ImagePicker                         0x0000000108c33da9 _TFC11ImagePicker21ImagePickerController11viewDidLoadfS0_FT_T_ + 681
    13  ImagePicker                         0x0000000108c33f52 _TToFC11ImagePicker21ImagePickerController11viewDidLoadfS0_FT_T_ + 34
    14  UIKit                               0x00000001098131d0 -[UIViewController loadViewIfRequired] + 738
    15  UIKit                               0x00000001098133ce -[UIViewController view] + 27
    16  UIKit                               0x000000010972e289 -[UIWindow addRootViewControllerViewIfPossible] + 58
    17  UIKit                               0x000000010972e64f -[UIWindow _setHidden:forced:] + 247
    18  UIKit                               0x000000010973ade1 -[UIWindow makeKeyAndVisible] + 42
    19  ImagePickerDemo                     0x0000000108b682fa _TFC15ImagePickerDemo11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVSs10DictionaryCSo8NSObjectPSs9AnyObject____Sb + 394
    20  ImagePickerDemo                     0x0000000108b68454 _TToFC15ImagePickerDemo11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqGVSs10DictionaryCSo8NSObjectPSs9AnyObject____Sb + 180
    21  UIKit                               0x00000001096dd748 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 240
    22  UIKit                               0x00000001096de357 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2540
    23  UIKit                               0x00000001096e119e -[UIApplication _runWithMainScene:transitionContext:completion:] + 1349
    24  UIKit                               0x00000001096e0095 -[UIApplication workspaceDidEndTransaction:] + 179
    25  FrontBoardServices                  0x000000011028a5e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
    26  CoreFoundation                      0x0000000108d7741c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
    27  CoreFoundation                      0x0000000108d6d165 __CFRunLoopDoBlocks + 341
    28  CoreFoundation                      0x0000000108d6cf25 __CFRunLoopRun + 2389
    29  CoreFoundation                      0x0000000108d6c366 CFRunLoopRunSpecific + 470
    30  UIKit                               0x00000001096dfb02 -[UIApplication _run] + 413
    31  UIKit                               0x00000001096e28c0 UIApplicationMain + 1282
    32  ImagePickerDemo                     0x0000000108b686a7 main + 135
    33  libdyld.dylib                       0x000000010d95c145 start + 1
    34  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Index is always 18446744073709551615
This is shown after crash:
screen shot 2015-08-05 at 15 16 45

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