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

app:cameraCropOutput="true" causes crash #187

Closed
1 of 3 tasks
skined90 opened this issue Mar 26, 2018 · 0 comments
Closed
1 of 3 tasks

app:cameraCropOutput="true" causes crash #187

skined90 opened this issue Mar 26, 2018 · 0 comments

Comments

@skined90
Copy link

skined90 commented Mar 26, 2018

I'm using Google Pixel XL (2016) Oreo 8.1

  • I am using the latest version
  • I can reproduce the bug in the demo app, and if not...
  • I have tried to reproduce the bug in the demo app

Detailed steps to reproduce the issue:

  1. Add app:cameraCropOutput="true" to the xml
  2. Add addCameraListener and override onPictureTaken

Interesting logs:

E/AndroidRuntime: FATAL EXCEPTION: CameraViewWorker Process: com.example.igorjankovic.customcamera, PID: 15427 java.lang.IllegalStateException: Can't compress a recycled bitmap at android.graphics.Bitmap.checkRecycled(Bitmap.java:386) at android.graphics.Bitmap.compress(Bitmap.java:1237) at com.otaliastudios.cameraview.CropHelper.cropToJpeg(CropHelper.java:29) at com.otaliastudios.cameraview.CameraView$Callbacks$4.run(CameraView.java:1569) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.os.HandlerThread.run(HandlerThread.java:65)

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

1 participant