enormego / PhotoViewer

Quick PhotoViewer for the iPhone. Built upon our other reliable libraries: EGOImageLoading and EGOCache.
http://developers.enormego.com
659 stars 140 forks source link

PhotoViewer crash #4

Open gonso75 opened 14 years ago

gonso75 commented 14 years ago

Hello, Im using PhotoViewer in one of my projects, and I've just realized that if I use it a couple of times during the same session it eventually crashes like this: 010-07-24 17:34:26.018 MobiRealty[2698:307] -[NSArrayI isLoading]: unrecognized selector sent to instance 0x626dab0 2010-07-24 17:34:26.417 MobiRealty[2698:307] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSArrayI isLoading]: unrecognized selector sent to instance 0x626dab0' *\ Call stack at first throw: ( 0 CoreFoundation 0x35319303 exceptionPreprocess + 114 1 libobjc.A.dylib 0x35b664c4 objc_exception_throw + 40 2 CoreFoundation 0x3531ce0f -[NSObject(NSObject) doesNotRecognizeSelector:] + 98 3 CoreFoundation 0x3531c2ab _forwarding_** + 506 4 CoreFoundation 0x352abc50 _CF_forwarding_prep_0 + 48 5 MobiRealty 0x0004fdd7 -[PVPhotoView imageViewDidLoadImage:] + 66 6 MobiRealty 0x0004ec23 -[PVImageView setImage:] + 894 7 MobiRealty 0x0004fd37 -[PVPhotoView setImage:] + 226 8 MobiRealty 0x0004e501 -[PVImageView requestDidFinishLoad:] + 84 9 MobiRealty 0x0006456d -[PVRequestLoader dispatchLoaded:] + 508 10 MobiRealty 0x00066579 -[PVURLRequestQueue loader:didLoadResponse:data:] + 268 11 MobiRealty 0x00064b59 -[PVRequestLoader connectionDidFinishLoading:] + 140 12 Foundation 0x30a21001 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading] + 68 13 Foundation 0x30a20f83 _NSURLConnectionDidFinishLoading + 78 14 CFNetwork 0x31caf814 _ZN19URLConnectionClient23_clientDidFinishLoadingEPNS_26ClientConnectionEventQueueE + 264 15 CFNetwork 0x31c9d454 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 140 16 CFNetwork 0x31c9d2d0 _ZN19URLConnectionClient13processEventsEv + 100 17 CFNetwork 0x31c9d198 _ZN17MultiplexerSource7performEv + 192 18 CFNetwork 0x31c9d0d4 _ZN17MultiplexerSource8_performEPv + 12 19 CoreFoundation 0x352ed295 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 14 20 CoreFoundation 0x352ef0e3 CFRunLoopDoSources0 + 382 21 CoreFoundation 0x352f0059 __CFRunLoopRun + 264 22 CoreFoundation 0x352970c3 CFRunLoopRunSpecific + 226 23 CoreFoundation 0x35296fd1 CFRunLoopRunInMode + 60 24 GraphicsServices 0x35e68f90 GSEventRunModal + 196 25 UIKit 0x32003b48 -[UIApplication _run] + 572 26 UIKit 0x32001fc0 UIApplicationMain + 972 27 MobiRealty 0x00002751 main + 80 28 MobiRealty 0x000026c8 start + 52 ) terminate called after throwing an instance of 'NSException'

Any idea why?

Gonso

henrik commented 14 years ago

Possibly this?

http://github.com/henrik/PhotoViewer/commit/59a1d71677337c2abc9ec2f0c74618c364d7c2aa

http://github.com/henrik/PhotoViewer/commit/fd1c3455352ad0b682c12b3fef54eadcabd5445a