You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/13 13:23:19 UTC

[GitHub] [cordova-plugin-camera] NeckbreakerPascal opened a new issue #546: iOS13 - Select Video / getPicture

NeckbreakerPascal opened a new issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546
 
 
   # Bug Report
   
   ## Problem
   on iOS 13 I am not longer able to select a video on device. SourceType is `PHOTOLIBRARY`
   
   ### What is expected to happen?
   The Plugin takes a pictures from the lib and returns it.
   
   
   ### What does actually happen?
   - the getPicture-Function return the error: `No Image Selected`
   
   
   ## Information
   It could be a problem in the "/cordova-plugin-camera/src/ios/CDVCamera.m".
   
   
   ### Command or Code
   Found this in the "CVDCamera.m", but it is in the block where _imagePickerControllerDidCancel_ but I did not cancel. So not totally sure if that is the right place to look for this problem.
   
   ```
       dispatch_block_t invoke = ^ (void) {
           CDVPluginResult* result;
           if (picker.sourceType == UIImagePickerControllerSourceTypeCamera && [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo] != ALAuthorizationStatusAuthorized) {
               result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"has no access to camera"];
           } else if (picker.sourceType != UIImagePickerControllerSourceTypeCamera && ! IsAtLeastiOSVersion(@"11.0") && [ALAssetsLibrary authorizationStatus] != ALAuthorizationStatusAuthorized) {
               result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"has no access to assets"];
           } else {
               result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"No Image Selected"];
           }
   ```
   
   ### Environment, Platform, Device
   iPhone 7, iOS 13.3
   
   ### Version information
   Ionic:
   
      Ionic CLI          : 5.4.2 (/usr/local/lib/node_modules/ionic)
      Ionic Framework    : ionic-angular 3.9.2
      @ionic/app-scripts : 3.1.8
   
   Cordova:
   
      Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
      Cordova Platforms : android 8.1.0, ios 5.1.1
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins)
   
   Utility:
   
      cordova-res : 0.6.0 (update available: 0.8.1)
      native-run  : 0.2.8 (update available: 0.3.0)
   
   System:
   
      ios-deploy : 1.9.2
      ios-sim    : 8.0.2
      NodeJS     : v8.11.3 (/usr/local/bin/node)
      npm        : 5.6.0
      OS         : macOS Mojave
      Xcode      : Xcode 11.3 Build version 11C29
   
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] albertleao commented on issue #546: iOS13 - Select Video / getPicture

Posted by GitBox <gi...@apache.org>.
albertleao commented on issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546#issuecomment-575378977
 
 
   > There is a solution for both! The slow and the problem with the Select Video.
   > 
   > First, select Video can be fixed with this one here:
   > #546
   > 
   > and the slow Camera thing is caused by the UI Main THread checker. This one helps:
   > https://stackoverflow.com/questions/58038810/xcode-10-main-thread-checker-cordova-camera-plugin
   > 
   > Tried both with iOS 13.3.
   
   The link you (#546) referenced is to this page, did you mean to paste something else?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] NeckbreakerPascal closed issue #546: iOS13 - Select Video / getPicture

Posted by GitBox <gi...@apache.org>.
NeckbreakerPascal closed issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] Burnie777 commented on issue #546: iOS13 - Select Video / getPicture

Posted by GitBox <gi...@apache.org>.
Burnie777 commented on issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546#issuecomment-574046605
 
 
   I am also getting this issue on the PictureSourceType.CAMERA...
   
   =================================================================
   Main Thread Checker: UI API called on a background thread: -[UIImagePickerController init]
   PID: 568, TID: 171674, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
   Backtrace:
   4   STssSmartMeter                      0x000000010028d334 +[CDVCameraPicker createFromPictureOptions:] + 112
   5   STssSmartMeter                      0x000000010028753c -[CDVCamera showCameraPicker:withOptions:] + 108
   6   STssSmartMeter                      0x0000000100286d58 __25-[CDVCamera takePicture:]_block_invoke_2 + 336
   7   TCC                                 0x000000019ff8ab60 B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 7008
   8   TCC                                 0x000000019ff8eb28 B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 23336
   9   libxpc.dylib                        0x0000000199962c84 D263F3EB-967C-33B9-AF70-D48644FA8411 + 97412
   10  libxpc.dylib                        0x0000000199956f18 D263F3EB-967C-33B9-AF70-D48644FA8411 + 48920
   11  libdispatch.dylib                   0x000000010088ec58 _dispatch_client_callout3 + 16
   12  libdispatch.dylib                   0x00000001008aa29c _dispatch_mach_msg_async_reply_invoke + 388
   13  libdispatch.dylib                   0x00000001008a103c _dispatch_kevent_worker_thread + 1376
   14  libsystem_pthread.dylib             0x0000000199aa6bc0 _pthread_wqthread + 332
   15  libsystem_pthread.dylib             0x0000000199aa9760 start_wqthread + 8
   2020-01-14 09:21:30.451972+0200 STssSmartMeter[568:171674] [reports] Main Thread Checker: UI API called on a background thread: -[UIImagePickerController init]
   PID: 568, TID: 171674, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
   Backtrace:
   4   STssSmartMeter                      0x000000010028d334 +[CDVCameraPicker createFromPictureOptions:] + 112
   5   STssSmartMeter                      0x000000010028753c -[CDVCamera showCameraPicker:withOptions:] + 108
   6   STssSmartMeter                      0x0000000100286d58 __25-[CDVCamera takePicture:]_block_invoke_2 + 336
   7   TCC                                 0x000000019ff8ab60 B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 7008
   8   TCC                                 0x000000019ff8eb28 B49C034E-858E-3F03-BA88-BB8BD0A811C1 + 23336
   9   libxpc.dylib                        0x0000000199962c84 D263F3EB-967C-33B9-AF70-D48644FA8411 + 97412
   10  libxpc.dylib                        0x0000000199956f18 D263F3EB-967C-33B9-AF70-D48644FA8411 + 48920
   11  libdispatch.dylib                   0x000000010088ec58 _dispatch_client_callout3 + 16
   12  libdispatch.dylib                   0x00000001008aa29c _dispatch_mach_msg_async_reply_invoke + 388
   13  libdispatch.dylib                   0x00000001008a103c _dispatch_kevent_worker_thread + 1376
   14  libsystem_pthread.dylib             0x0000000199aa6bc0 _pthread_wqthread + 332
   15  libsystem_pthread.dylib             0x0000000199aa9760 start_wqthread + 8
   
   It eventually opens the Camera, but it takes a while sometimes up to 3 minutes for the camera too open...
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] NeckbreakerPascal commented on issue #546: iOS13 - Select Video / getPicture

Posted by GitBox <gi...@apache.org>.
NeckbreakerPascal commented on issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546#issuecomment-575086965
 
 
   There is a solution for both! The slow and the problem with the Select Video. 
   
   First, select Video can be fixed with this one here: 
   https://github.com/apache/cordova-plugin-camera/issues/546
   
   and the slow Camera thing is caused by the UI Main THread checker. This one helps: 
   https://stackoverflow.com/questions/58038810/xcode-10-main-thread-checker-cordova-camera-plugin
   
   Tried both with iOS 13.3. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] NeckbreakerPascal commented on issue #546: iOS13 - Select Video / getPicture

Posted by GitBox <gi...@apache.org>.
NeckbreakerPascal commented on issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546#issuecomment-575523266
 
 
   > > There is a solution for both! The slow and the problem with the Select Video.
   > > First, select Video can be fixed with this one here:
   > > #546
   > > and the slow Camera thing is caused by the UI Main THread checker. This one helps:
   > > https://stackoverflow.com/questions/58038810/xcode-10-main-thread-checker-cordova-camera-plugin
   > > Tried both with iOS 13.3.
   > 
   > The link you (#546) referenced is to this page, did you mean to paste something else?
   
   Sorry! Yes! It is this one here: 
   https://github.com/apache/cordova-plugin-camera/issues/506
   
   I edited my answer. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] NeckbreakerPascal edited a comment on issue #546: iOS13 - Select Video / getPicture

Posted by GitBox <gi...@apache.org>.
NeckbreakerPascal edited a comment on issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546#issuecomment-575086965
 
 
   There is a solution for both! The slow and the problem with the Select Video. 
   
   First, select Video can be fixed with this one here: 
   https://github.com/apache/cordova-plugin-camera/issues/506
   
   and the slow Camera thing is caused by the UI Main THread checker. This one helps: 
   https://stackoverflow.com/questions/58038810/xcode-10-main-thread-checker-cordova-camera-plugin
   
   Tried both with iOS 13.3. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org