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

"E/PostureManager: fail to get service" when selecting a photo from library #527

Closed
jlgarcia-vs opened this issue Jul 24, 2021 · 4 comments

Comments

@jlgarcia-vs
Copy link

Bug Report

Plugin(s)

@capacitor/camera: 1.0.3

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 3.1.2
  @capacitor/core: 3.1.2
  @capacitor/android: 3.1.2
  @capacitor/ios: 3.1.2

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 3.1.2
  @capacitor/core: 3.1.2
  @capacitor/android: 3.1.2

Platform(s)

Android

Current Behavior

After upgrading to latest camera plugin version, when I try to select a photo from gallery, I'm receiving the error "Unable to process image" in chrome console and "E/PostureManager: fail to get service" in Android Studio logcat (this error is displayed every time I tried to get a photo from gallery. I'm not sure if it's related to my issue).
The app is saving photos to Pictures album by default. The error only occurs when I select a photo from Camera album. If I select a photo from Pictures album it's working fine.

Expected Behavior

Return a photo from gallery.

Code Reproduction

const options: ImageOptions = {
          quality: 90,
          allowEditing: false,
          resultType: CameraResultType.Base64,
          saveToGallery: true,
          promptLabelHeader: 'CCR Vela Mobile',
          promptLabelPhoto: 'De la biblioteca',
          promptLabelPicture: 'Hacer una foto',
          presentationStyle: 'popover'
        };
const image = await Camera.getPhoto(options);

Other Technical Details

Tested in LG K40S and Samsung devices.

Additional Context

@jlgarcia-vs
Copy link
Author

Hi guys, another issue with the previous settings (options) is the picture is saved to the library rotated. I take the photo portrait but is saved into the library landscape.

@mattmilan-dev
Copy link

Hey @visiblesoft-org. Can you see if ionic-team/capacitor#2060 (comment) helps you with this issue? Your issue looks suspiciously close to what people have been talking about here?

@jcesarmobile
Copy link
Member

It's probably fixed by #545

@ionitron-bot
Copy link

ionitron-bot bot commented Sep 30, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants