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

CropTransformation.java sometimes crashes #25

Open
kutukoff opened this issue Aug 30, 2016 · 2 comments
Open

CropTransformation.java sometimes crashes #25

kutukoff opened this issue Aug 30, 2016 · 2 comments

Comments

@kutukoff
Copy link

kutukoff commented Aug 30, 2016

.transform(new CropTransformation(1.2f, CropTransformation.GravityHorizontal.CENTER, CropTransformation.GravityVertical.TOP))

Fatal Exception: java.lang.RuntimeException
Transformation CropTransformation(width=600, height=451, mWidthRatio=0.0, mHeightRatio=0.0, mAspectRatio=1.33, gravityHorizontal=CENTER, mGravityVertical=TOP) crashed with exception.

Caused by java.lang.NullPointerException
android.graphics.Canvas. (Canvas.java:136)
jp.wasabeef.picasso.transformations.CropTransformation.transform (CropTransformation.java:301)
com.squareup.picasso.BitmapHunter.applyCustomTransformations (BitmapHunter.java:429)
com.squareup.picasso.BitmapHunter.hunt (BitmapHunter.java:238)
com.squareup.picasso.BitmapHunter.run (BitmapHunter.java:159)
java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:422)
java.lang.Thread.run (Thread.java:848)
com.squareup.picasso.Utils$PicassoThread.run (Utils.java:411)
@DenK91
Copy link

DenK91 commented Oct 23, 2017

The same issue is reproduced on Blur case only on 4.4.2:
stat
crash.txt

@vahid-m
Copy link

vahid-m commented Jan 21, 2019

we have the same issue.

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

3 participants