{"action":"closed","issue":{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/465","repository_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk","labels_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/465/labels{/name}","comments_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/465/comments","events_url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/issues/465/events","html_url":"https://github.com/QuickBlox/quickblox-ios-sdk/issues/465","id":155719337,"number":465,"title":"TUploadFile: crash while uploading video file which is picked from the library","user":{"login":"ghulammustafa","id":585960,"avatar_url":"https://avatars.githubusercontent.com/u/585960?v=3","gravatar_id":"","url":"https://api.github.com/users/ghulammustafa","html_url":"https://github.com/ghulammustafa","followers_url":"https://api.github.com/users/ghulammustafa/followers","following_url":"https://api.github.com/users/ghulammustafa/following{/other_user}","gists_url":"https://api.github.com/users/ghulammustafa/gists{/gist_id}","starred_url":"https://api.github.com/users/ghulammustafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghulammustafa/subscriptions","organizations_url":"https://api.github.com/users/ghulammustafa/orgs","repos_url":"https://api.github.com/users/ghulammustafa/repos","events_url":"https://api.github.com/users/ghulammustafa/events{/privacy}","received_events_url":"https://api.github.com/users/ghulammustafa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/QuickBlox/quickblox-ios-sdk/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T11:57:24Z","updated_at":"2016-06-02T10:55:46Z","closed_at":"2016-06-02T10:55:46Z","body":"**Environment details**\r\n\r\n\"QB-SDK\" = \"iOS 2.2.2\";\r\n\"QuickBlox-REST-API-Version\" = \"0.1.1\";\r\n\r\n**Did this work before?**\r\n\r\nYes\r\n\r\n**Expected behavior**\r\n\r\nVideo should upload successfully, or an error should be returned.\r\n\r\n**Actual behavior**\r\n\r\nApplication crash.\r\n\r\n**Logs**\r\n\r\n```\r\njson: {\"blob\":{\"name\":\"video\",\"content_type\":\"video\\/quicktime\"}}\r\nRequest URL:https://api.quickblox.com/blobs.json\r\nRequest method: POST\r\nRequest parameters:{\r\n    blob =     {\r\n        \"content_type\" = \"video/quicktime\";\r\n        name = video;\r\n    };\r\n}\r\n```\r\n```\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType _enableCropOverlayIfNecessary]: unrecognized selector sent to instance 0x7fcd54526650'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x0000000105745d85 __exceptionPreprocess + 165\r\n\t1   libobjc.A.dylib                     0x0000000108f3bdeb objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x000000010574ed3d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205\r\n\t3   CoreFoundation                      0x0000000105694cfa ___forwarding___ + 970\r\n\t4   CoreFoundation                      0x00000001056948a8 _CF_forwarding_prep_0 + 120\r\n\t5   PhotoLibrary                        0x000000011f852a50 -[PLVideoRemaker _exportCompletedWithSuccess:] + 135\r\n\t6   AssetsLibraryServices               0x0000000115768709 __pl_dispatch_async_block_invoke + 25\r\n\t7   libdispatch.dylib                   0x000000010a837d9d _dispatch_call_block_and_release + 12\r\n\t8   libdispatch.dylib                   0x000000010a8583eb _dispatch_client_callout + 8\r\n\t9   libdispatch.dylib                   0x000000010a8401ef _dispatch_main_queue_callback_4CF + 1738\r\n\t10  CoreFoundation                      0x000000010569f0f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9\r\n\t11  CoreFoundation                      0x0000000105660b99 __CFRunLoopRun + 2073\r\n\t12  CoreFoundation                      0x00000001056600f8 CFRunLoopRunSpecific + 488\r\n\t13  GraphicsServices                    0x000000010afaead2 GSEventRunModal + 161\r\n\t14  UIKit                               0x000000010754bf09 UIApplicationMain + 171\r\n\t15  MyApp               0x00000001043cc85f main + 111\r\n\t16  libdyld.dylib                       0x000000010a88d92d start + 1\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n```\r\n**Steps to reproduce the behavior**\r\n\r\nCall the upload method with video data:\r\n```\r\n+ (QBRequest *)TUploadFile:(NSData*)data\r\n                  fileName:(NSString*)fileName\r\n               contentType:(NSString*)contentType\r\n                  isPublic:(BOOL)isPublic\r\n              successBlock:(void(^)(QBResponse *response, QBCBlob* blob))successBlock\r\n               statusBlock:(QBRequestStatusUpdateBlock)statusBlock\r\n                errorBlock:(void(^)(QBResponse *response))errorBlock;\r\n```\r\n**Any others comments?**\r\n \r\n The same method works flawlessly if we try to upload an image or if we try to upload a video captured from the camera. But it crashes when we try to upload an existing video file picked from the library.\r\n"}}
{"actor":{"display_login":"Raikerian"}}