Ink / ios-picker

[DEPRECATED] The easiest way to import content into your application. http://filepicker.io
MIT License
226 stars 78 forks source link

Crashes in FPProgressTracker.m Line 42 #85

Closed danielnordh closed 9 years ago

danielnordh commented 9 years ago

We are seeing a fair amount of crashes for users picking local photos. FPProgressTracker is trying to setup using a nil key.

Excerpt below, Full logs here; http://crashes.to/s/e89c3c2f85f

Thread : Fatal Exception: NSInvalidArgumentException 0 CoreFoundation 0x0000000182ed02d8 exceptionPreprocess + 132 1 libobjc.A.dylib 0x00000001946f40e4 objc_exception_throw + 60 2 CoreFoundation 0x0000000182db9428 -[NSDictionaryM setObject:forKey:] + 972 3 Curator 0x000000010021ece0 -FPProgressTracker setProgress:forKey: 4 Curator 0x0000000100218df0 40-[FPLocalController uploadButtonTapped:]_block_invoke313 (FPLocalController.m:534) 5 Curator 0x0000000100219c9c 76-[FPLocalController uploadPhotoAsset:shouldUpload:success:failure:progress:]_block_invoke396 (FPLocalController.m:661) 6 Curator 0x0000000100212034 80+[FPLibrary(iOS) uploadAsset:withOptions:shouldUpload:success:failure:progress:]_block_invoke44 (FPLibrary+iOS.m:145) 7 Curator 0x00000001002132a4 +FPLibrary uploadLocalURLToFilepicker:named:ofMimetype:shouldUpload:success:failure:progress: 8 Curator 0x0000000100211f28 80+[FPLibrary(iOS) uploadAsset:withOptions:shouldUpload:success:failure:progress:]_block_invoke (FPLibrary+iOS.m:148) 9 libdispatch.dylib 0x0000000194d45954 _dispatch_client_callout + 16 10 libdispatch.dylib 0x0000000194d4f1e4 _dispatch_barrier_sync_f_invoke + 76 11 Curator 0x0000000100211cfc +FPLibrary(iOS) uploadAsset:withOptions:shouldUpload:success:failure:progress: 12 Curator 0x0000000100219894 -FPLocalController uploadPhotoAsset:shouldUpload:success:failure:progress: 13 Curator 0x000000010021950c -FPLocalController uploadAsset:success:failure:progress: 14 libdispatch.dylib 0x0000000194d45994 _dispatch_call_block_and_release + 24 15 libdispatch.dylib 0x0000000194d45954 _dispatch_client_callout + 16 16 libdispatch.dylib 0x0000000194d4f6f0 _dispatch_after_timer_callback + 92 17 libdispatch.dylib 0x0000000194d45954 _dispatch_client_callout + 16 18 libdispatch.dylib 0x0000000194d5c010 _dispatch_source_latch_and_call + 2052 19 libdispatch.dylib 0x0000000194d47abc _dispatch_source_invoke + 288 20 libdispatch.dylib 0x0000000194d52318 _dispatch_root_queue_drain + 720 21 libdispatch.dylib 0x0000000194d53c4c _dispatch_worker_thread3 + 108 22 libsystem_pthread.dylib 0x0000000194f2522c _pthread_wqthread + 816 23 libsystem_pthread.dylib 0x0000000194f24ef0 start_wqthread + 4

danielnordh commented 9 years ago

Any updates on this? It's now our most common bug.

dzana commented 9 years ago

Hi,

We are investigating the problem. New version will be release as soon we find what causes those crashes.

Are you able to reproduce this crash? Any information about this will be very helpful.

Regards, Damian

danielnordh commented 9 years ago

Not able to reproduce, yet. If you look at the link to the crash logs it gives you pretty detailed info. It's to do with users selecting local photos from the device.

'Fatal Exception: NSInvalidArgumentException *\ setObjectForKey: key cannot be nil' for [FPProgressTracker setProgress:forKey:]

iPhone 6/6+ and iPhone 4s seem overrepresented.

dzana commented 9 years ago

Fixed in v4.2.6 version.

danielnordh commented 9 years ago

Awesome, thanks!