-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Picasso call crushes the app with no stacktrace #33
Comments
Have you tried creating a sample empty app that downloads the same image? I recommend doing so first and see if you can reproduce it then. I'll take a look tonight or tomorrow and see if I can reproduce it. |
Sample app crushes too with this url:
I tried another url and it works fine. So there is definitely some kind of problem with specific images like mine example. 05-22 13:42:29.094: ERROR/AndroidRuntime(22448): FATAL EXCEPTION: main |
Innnnteresting. I will take a look today and see if I can reproduce it! Thanks! |
@lexer same problem here. I also use Nexus 4 Device and it crashes without stacktrace. Here my code, from broadcast receiver: Picasso.with(ItemDetailsActivity.this).load(item.getImage()).centerCrop().into(imageView); |
Confirmed. I have found and fixed the problem. |
Sample now works but my app still crushes on same image. Seems that my original issues was caused by another reason. I don't do any transformations. Just call load and into. |
@dnkoutso @lexer My application still doesn't work. I updated to lib 1.0.2 but I got nothing... only stack trace in my broadcast receiver: java.lang.RuntimeException: Error receiving broadcast Intent { act=com.menor.android.ggassignment.intent.action.SUCCESS flg=0x10 (has extras) } in com.menor.android.ggassignment.ui.ItemDetailsActivity$ResponseDetailsReceiver@417eadb8 1at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768) 2at android.os.Handler.handleCallback(Handler.java:725) 3at android.os.Handler.dispatchMessage(Handler.java:92) 4at android.os.Looper.loop(Looper.java:137) 5at android.app.ActivityThread.main(ActivityThread.java:5041) 6at java.lang.reflect.Method.invokeNative(Native Method) 7at java.lang.reflect.Method.invoke(Method.java:511) 8at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 9at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 10at dalvik.system.NativeStart.main(Native Method) 11Caused by: java.lang.IllegalStateException: Center crop can only be used after calling resize. 12at com.squareup.picasso.RequestBuilder.centerCrop(RequestBuilder.java:181) 13at com.menor.android.ggassignment.ui.ItemDetailsActivity$ResponseDetailsReceiver.onReceive(ItemDetailsActivity.java:125) 14at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:758) 15... 9 more |
Look at the stacktrace. It tells you you have to perform a |
@dnkoutso I didn't realize of that... sorry. |
Seems that my crush somehow connected with OkHttp. Recently when I moved my own image loader implementation to OkHttp I start facing the same problem. |
Seems that this issue relates to square/okhttp#184 |
Turn off hardware acceleration for the activity and that should fix your issue. This seems to be an open issue with Android 4.0-4.1.2 (causing issues on my samsung galaxy s3 test phone for my own application) |
My app crushes every time when I call .into method. No stacktrace is available.
The only thing I see is:
05-21 14:06:40.728: ASSERT/libc(13236): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 13581 (pool-5-thread-7)
For some reasons it doesn't crush on Galaxy S2, but crushes on LG Nexus 4.
Image i try to load is: https://graph.facebook.com/100004056647322/picture?type=large
The text was updated successfully, but these errors were encountered: