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

[Camera] Failed to read exposureBiasesByMode dictionary #1072

Closed
3 tasks done
WuglyakBolgoink opened this issue Feb 4, 2021 · 2 comments
Closed
3 tasks done

[Camera] Failed to read exposureBiasesByMode dictionary #1072

WuglyakBolgoink opened this issue Feb 4, 2021 · 2 comments

Comments

@WuglyakBolgoink
Copy link

Bug Report

Problem

What is expected to happen?

click on input type=file and then choosing "do Photo or Video" should ask Permissions on first install and then open a camera.

What does actually happen?

on iPad no permissions for first install for back camera, if I switch to the front camera then I see permission dialog and can take image from front camera. Switching back to the "back camera" help me not. I see black screen.

On first click on input field I have 1-2s downtime and then in xcode logs this exceptions:

Running cordova-ios@6.1.1
[Camera] Failed to read exposureBiasesByMode dictionary: Error Domain=NSCocoaErrorDomain Code=4864 "*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL" UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: data is NULL}
[Camera] Failed to get device from -[AVCaptureDevice defaultDeviceWithDeviceType:AVCaptureDeviceTypeBuiltInWideAngleCamera mediaType:AVMediaTypeVideo position:1]
[Camera] Failed to get device from -[AVCaptureDevice defaultDeviceWithDeviceType:AVCaptureDeviceTypeBuiltInWideAngleCamera mediaType:AVMediaTypeVideo position:1]
[Camera] Failed to find device BackWide for mode Photo. Falling back to BackWide
[Camera] Failed to get device from -[AVCaptureDevice defaultDeviceWithDeviceType:AVCaptureDeviceTypeBuiltInWideAngleCamera mediaType:AVMediaTypeVideo position:1]
[Camera] Failed to get device from -[AVCaptureDevice defaultDeviceWithDeviceType:AVCaptureDeviceTypeBuiltInWideAngleCamera mediaType:AVMediaTypeVideo position:1]
[Camera] Failed to find device BackWide for mode Photo. Falling back to BackWide
[Camera] Attempting to configure a mode with out a preset or device format! Results may be unexpected.
[Camera] Failed to get device from -[AVCaptureDevice defaultDeviceWithDeviceType:AVCaptureDeviceTypeBuiltInWideAngleCamera mediaType:AVMediaTypeVideo position:1]
[Camera] Failed to get device from -[AVCaptureDevice defaultDeviceWithDeviceType:AVCaptureDeviceTypeBuiltInWideAngleCamera mediaType:AVMediaTypeVideo position:1]
[Camera] Failed to find device BackWide for mode Photo. Falling back to BackWide
[Camera] Attempting to use an unsupported session preset AVCaptureSessionPresetInputPriority on device (null)
[Camera] Failed to find video output connection for <AVCapturePhotoOutput: 0x282cbb5a0>
[Camera] CAMModeAndDeviceCommand configuration failed! (Error Domain=CAMModeAndDeviceCommandCannotCaptureErrorDomain Code=-32200 "(null)")

Information

how to reproduce

  1. create new project cordova create test con.example.test test
  2. install cordova-ios@6.1.1
  3. add in template <input type="file">
  4. run app
  5. check logs

Environment, Platform, Device

  • cordova v10.0.0
  • cordova-ios v6.1.1
  • node v14.15.4
  • npm v6.14.10
  • macOS Catalina v10.15.7 (19H512)
  • Xcode v12.4 (12D4e)

Update:

after upgrading Xcode to v12.4 on iPhone 6s (IOS 13.2) the file-input started work as expected. I see permisison dialog on first start. Before Xcode to v12.4 was just black screen without any buttons and without permission. After restart App camera ask permissions and work. But this steps work not always.

currently on iPad Air 2 (IOS 14.3)

  1. click on file-input image
  2. cordova open camera app
    image
    Nothing happens
  3. click on fron camera button
    image
    cordova ask permission
    front camera work. Switching back to the back camera - black screen

Same for video settings. work only front camera.

click on "take image" button give me exception:

[Camera] No signpostID found for persistenceUUID C40227CA-9D4C-4F79-88AF-9ABFDA244EA8
[Camera] Failed to capture still image with request <CAMMutableStillImageCaptureRequest burstIdentifier:(null) irisIdentifier(null)> (Capture request failed because session configuration did not succeed)

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@jcesarmobile
Copy link
Member

Input file is handled by the WKWebView itself, not by cordova, there is nothing we can do.
For WKWebView issues, report them to apple directly on https://bugs.webkit.org/

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